tag | line | file | source code |
i_sb | 196 | fs/exec.c | if (!inode->i_sb || !S_ISREG(inode->i_mode) || !permission(inode,MAY_READ)) { |
i_sb | 204 | fs/exec.c | if (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) { |
i_sb | 453 | fs/exec.c | if (!inode->i_sb) { |
i_sb | 201 | fs/ext/freelists.c | if (!inode->i_sb) { |
i_sb | 205 | fs/ext/freelists.c | lock_super (inode->i_sb); |
i_sb | 206 | fs/ext/freelists.c | if (inode->i_ino < 1 || inode->i_ino > inode->i_sb->u.ext_sb.s_ninodes) { |
i_sb | 208 | fs/ext/freelists.c | unlock_super (inode->i_sb); |
i_sb | 211 | fs/ext/freelists.c | if (inode->i_sb->u.ext_sb.s_firstfreeinodeblock) |
i_sb | 212 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) inode->i_sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
i_sb | 213 | fs/ext/freelists.c | (inode->i_sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
i_sb | 214 | fs/ext/freelists.c | if (!inode->i_sb->u.ext_sb.s_firstfreeinodeblock || efi->count == 14) { |
i_sb | 218 | fs/ext/freelists.c | if (inode->i_sb->u.ext_sb.s_firstfreeinodeblock) |
i_sb | 219 | fs/ext/freelists.c | brelse (inode->i_sb->u.ext_sb.s_firstfreeinodeblock); |
i_sb | 221 | fs/ext/freelists.c | if (!(bh = bread(inode->i_dev, block, inode->i_sb->s_blocksize))) |
i_sb | 225 | fs/ext/freelists.c | efi->next = inode->i_sb->u.ext_sb.s_firstfreeinodenumber; |
i_sb | 227 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_firstfreeinodenumber = inode->i_ino; |
i_sb | 228 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_firstfreeinodeblock = bh; |
i_sb | 232 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_freeinodescount ++; |
i_sb | 233 | fs/ext/freelists.c | inode->i_sb->s_dirt = 1; |
i_sb | 234 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_firstfreeinodeblock->b_dirt = 1; |
i_sb | 235 | fs/ext/freelists.c | unlock_super (inode->i_sb); |
i_sb | 249 | fs/ext/freelists.c | sb = dir->i_sb; |
i_sb | 250 | fs/ext/freelists.c | inode->i_sb = sb; |
i_sb | 232 | fs/ext/inode.c | tmp = ext_new_block(inode->i_sb); |
i_sb | 237 | fs/ext/inode.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 280 | fs/ext/inode.c | tmp = ext_new_block(inode->i_sb); |
i_sb | 287 | fs/ext/inode.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 177 | fs/ext/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 542 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 594 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 787 | fs/ext/namei.c | old_inode = iget(old_dir->i_sb, old_de->inode); |
i_sb | 797 | fs/ext/namei.c | new_inode = iget(new_dir->i_sb, new_de->inode); |
i_sb | 59 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 108 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 121 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 171 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 218 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 107 | fs/inode.c | if (!inode->i_sb || !inode->i_sb->s_op || !inode->i_sb->s_op->write_inode) { |
i_sb | 112 | fs/inode.c | inode->i_sb->s_op->write_inode(inode); |
i_sb | 119 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && inode->i_sb->s_op->read_inode) |
i_sb | 120 | fs/inode.c | inode->i_sb->s_op->read_inode(inode); |
i_sb | 134 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && |
i_sb | 135 | fs/inode.c | inode->i_sb->s_op->notify_change) |
i_sb | 136 | fs/inode.c | return inode->i_sb->s_op->notify_change(flags, inode); |
i_sb | 212 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && inode->i_sb->s_op->put_inode) { |
i_sb | 213 | fs/inode.c | inode->i_sb->s_op->put_inode(inode); |
i_sb | 327 | fs/inode.c | inode->i_sb = sb; |
i_sb | 32 | fs/ioctl.c | if (filp->f_inode->i_sb == NULL) |
i_sb | 35 | fs/ioctl.c | put_fs_long(filp->f_inode->i_sb->s_blocksize, |
i_sb | 139 | fs/isofs/dir.c | if((inode->i_sb->u.isofs_sb.s_firstdatazone << BLOCK_SIZE_BITS) != inode->i_ino) |
i_sb | 175 | fs/isofs/dir.c | if(inode->i_sb->u.isofs_sb.s_mapping == 'n') |
i_sb | 279 | fs/isofs/inode.c | high_sierra = inode->i_sb->u.isofs_sb.s_high_sierra; |
i_sb | 319 | fs/isofs/inode.c | inode->i_sb->u.isofs_sb.s_cruft = 'y'; |
i_sb | 326 | fs/isofs/inode.c | if(inode->i_sb->u.isofs_sb.s_cruft == 'y' && |
i_sb | 375 | fs/isofs/inode.c | switch (inode->i_sb->u.isofs_sb.s_conversion){ |
i_sb | 136 | fs/isofs/namei.c | printk("Doing .. (%d %d)",dir->i_sb->s_firstdatazone << ISOFS_BUFFER_BITS, dir->i_ino); |
i_sb | 138 | fs/isofs/namei.c | if((dir->i_sb->u.isofs_sb.s_firstdatazone << ISOFS_BUFFER_BITS) != dir->i_ino) |
i_sb | 152 | fs/isofs/namei.c | if(dir->i_sb->u.isofs_sb.s_mapping == 'n') { |
i_sb | 237 | fs/isofs/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 93 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return retval; |
i_sb | 159 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return 0; |
i_sb | 239 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return 0; |
i_sb | 331 | fs/isofs/rock.c | reloc = iget(inode->i_sb, inode->u.isofs_i.i_first_extent << ISOFS_BUFFER_BITS); |
i_sb | 372 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) |
i_sb | 160 | fs/minix/bitmap.c | if (!inode->i_sb) { |
i_sb | 164 | fs/minix/bitmap.c | if (inode->i_ino < 1 || inode->i_ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 168 | fs/minix/bitmap.c | if (!(bh=inode->i_sb->u.minix_sb.s_imap[inode->i_ino>>13])) { |
i_sb | 187 | fs/minix/bitmap.c | sb = dir->i_sb; |
i_sb | 188 | fs/minix/bitmap.c | inode->i_sb = sb; |
i_sb | 189 | fs/minix/bitmap.c | inode->i_flags = inode->i_sb->s_flags; |
i_sb | 192 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i_sb | 206 | fs/minix/bitmap.c | if (!j || j >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 200 | fs/minix/inode.c | tmp = minix_new_block(inode->i_sb); |
i_sb | 205 | fs/minix/inode.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 248 | fs/minix/inode.c | tmp = minix_new_block(inode->i_sb); |
i_sb | 255 | fs/minix/inode.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 314 | fs/minix/inode.c | if (!ino || ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 319 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
i_sb | 320 | fs/minix/inode.c | inode->i_sb->u.minix_sb.s_zmap_blocks + |
i_sb | 368 | fs/minix/inode.c | if (!ino || ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 374 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks + |
i_sb | 122 | fs/minix/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 413 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 464 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 662 | fs/minix/namei.c | old_inode = iget(old_dir->i_sb, old_de->inode); |
i_sb | 672 | fs/minix/namei.c | new_inode = iget(new_dir->i_sb, new_de->inode); |
i_sb | 53 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 102 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 114 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 161 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 226 | fs/msdos/fat.c | if ((this = fat_access(inode->i_sb,this,-1)) == -1) return 0; |
i_sb | 242 | fs/msdos/fat.c | sb = MSDOS_SB(inode->i_sb); |
i_sb | 266 | fs/msdos/fat.c | if ((this = fat_access(inode->i_sb,this,-1)) == -1) return 0; |
i_sb | 273 | fs/msdos/fat.c | fat_access(inode->i_sb,last,MSDOS_SB(inode->i_sb)->fat_bits == |
i_sb | 279 | fs/msdos/fat.c | lock_fat(inode->i_sb); |
i_sb | 281 | fs/msdos/fat.c | if (!(this = fat_access(inode->i_sb,this,0))) |
i_sb | 283 | fs/msdos/fat.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
i_sb | 284 | fs/msdos/fat.c | MSDOS_SB(inode->i_sb)->free_clusters++; |
i_sb | 285 | fs/msdos/fat.c | inode->i_blocks -= MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 287 | fs/msdos/fat.c | unlock_fat(inode->i_sb); |
i_sb | 210 | fs/msdos/file.c | cluster = SECTOR_SIZE*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 221 | fs/msdos/inode.c | sb = MSDOS_SB(inode->i_sb); |
i_sb | 244 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
i_sb | 245 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
i_sb | 247 | fs/msdos/inode.c | inode->i_mode = (0777 & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_sb | 252 | fs/msdos/inode.c | inode->i_size = MSDOS_SB(inode->i_sb)->dir_entries* |
i_sb | 254 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size* |
i_sb | 257 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 270 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFDIR; |
i_sb | 285 | fs/msdos/inode.c | i_sb)->cluster_size; |
i_sb | 286 | fs/msdos/inode.c | if (!(this = fat_access(inode->i_sb,this,-1))) |
i_sb | 293 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFREG; |
i_sb | 294 | fs/msdos/inode.c | inode->i_op = MSDOS_CAN_BMAP(MSDOS_SB(inode->i_sb)) ? |
i_sb | 301 | fs/msdos/inode.c | MSDOS_I(inode)->i_binary = is_binary(MSDOS_SB(inode->i_sb)->conversion, |
i_sb | 305 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size*SECTOR_SIZE; |
i_sb | 307 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 89 | fs/msdos/misc.c | if (!MSDOS_SB(inode->i_sb)->free_clusters) return -ENOSPC; |
i_sb | 92 | fs/msdos/misc.c | lock_fat(inode->i_sb); |
i_sb | 93 | fs/msdos/misc.c | limit = MSDOS_SB(inode->i_sb)->clusters; |
i_sb | 97 | fs/msdos/misc.c | if (fat_access(inode->i_sb,this,-1) == 0) break; |
i_sb | 104 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->free_clusters = 0; |
i_sb | 105 | fs/msdos/misc.c | unlock_fat(inode->i_sb); |
i_sb | 110 | fs/msdos/misc.c | fat_access(inode->i_sb,this,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
i_sb | 112 | fs/msdos/misc.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
i_sb | 113 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->free_clusters--; |
i_sb | 114 | fs/msdos/misc.c | unlock_fat(inode->i_sb); |
i_sb | 118 | fs/msdos/misc.c | printk("set to %x\n",fat_access(inode->i_sb,this,-1)); |
i_sb | 124 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
i_sb | 131 | fs/msdos/misc.c | if (last) fat_access(inode->i_sb,last,this); |
i_sb | 137 | fs/msdos/misc.c | if (last) printk("next set to %d\n",fat_access(inode->i_sb,last,-1)); |
i_sb | 139 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 141 | fs/msdos/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(this-2)* |
i_sb | 142 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
i_sb | 146 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
i_sb | 166 | fs/msdos/misc.c | inode->i_blocks += MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 170 | fs/msdos/misc.c | inode->i_size += SECTOR_SIZE*MSDOS_SB(inode->i_sb)-> |
i_sb | 285 | fs/msdos/misc.c | if (!(inode = iget(dir->i_sb,*ino))) break; |
i_sb | 397 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT,0, |
i_sb | 404 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,0,NULL)) < |
i_sb | 409 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,current,&this)) < 0) { |
i_sb | 425 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL); |
i_sb | 428 | fs/msdos/misc.c | else (void) raw_scan_nonroot(dir->i_sb,MSDOS_I(dir)->i_start, |
i_sb | 105 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 134 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) return -EACCES; |
i_sb | 143 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 155 | fs/msdos/namei.c | if (!(*result = iget(next->i_sb,next->i_ino))) |
i_sb | 183 | fs/msdos/namei.c | if ((*result = iget(dir->i_sb,ino)) != NULL) |
i_sb | 203 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 250 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 312 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) goto rmdir_done; |
i_sb | 355 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) { |
i_sb | 393 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
i_sb | 412 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
i_sb | 413 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
i_sb | 433 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,new_dir->i_ino))) return -EIO; |
i_sb | 439 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,ino))) return -EIO; |
i_sb | 446 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
i_sb | 459 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
i_sb | 478 | fs/msdos/namei.c | if (!(free_inode = iget(new_dir->i_sb,free_ino))) { |
i_sb | 506 | fs/msdos/namei.c | if (!(dotdot_inode = iget(old_inode->i_sb,dotdot_ino))) { |
i_sb | 538 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
i_sb | 540 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(new_dir->i_sb)->name_check, |
i_sb | 67 | fs/namei.c | else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) { |
i_sb | 68 | fs/namei.c | sb = dir->i_sb; |
i_sb | 318 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
i_sb | 355 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
i_sb | 46 | fs/open.c | if (!inode->i_sb->s_op->statfs) { |
i_sb | 50 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
i_sb | 65 | fs/open.c | if (!inode->i_sb->s_op->statfs) |
i_sb | 67 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
i_sb | 122 | fs/proc/base.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 67 | fs/proc/fd.c | sb = dir->i_sb; |
i_sb | 114 | fs/proc/root.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 241 | fs/super.c | if (!inode || !inode->i_sb || inode != inode->i_sb->s_mounted) { |
i_sb | 245 | fs/super.c | dev = inode->i_sb->s_dev; |
i_sb | 328 | fs/super.c | if (dir_i != dir_i->i_sb->s_mounted) { |
i_sb | 332 | fs/super.c | dir_i->i_sb->s_flags = (dir_i->i_sb->s_flags & ~MS_RMT_MASK) | |
i_sb | 112 | include/linux/fs.h | #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY) |
i_sb | 179 | include/linux/fs.h | struct super_block * i_sb; |
i_sb | 53 | include/linux/nfs_fs.h | #define NFS_SERVER(inode) (&(inode)->i_sb->u.nfs_sb.s_server) |