tag | line | file | source code |
i_sb | 569 | fs/exec.c | if (!bprm.inode->i_sb) { |
i_sb | 778 | fs/exec.c | (N_TXTOFF(ex) < bprm->inode->i_sb->s_blocksize)) { |
i_sb | 885 | fs/exec.c | (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { |
i_sb | 205 | fs/ext/freelists.c | if (!inode->i_sb) { |
i_sb | 209 | fs/ext/freelists.c | sb = inode->i_sb; |
i_sb | 256 | fs/ext/freelists.c | sb = dir->i_sb; |
i_sb | 257 | fs/ext/freelists.c | inode->i_sb = sb; |
i_sb | 239 | fs/ext/inode.c | tmp = ext_new_block(inode->i_sb); |
i_sb | 244 | fs/ext/inode.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 287 | fs/ext/inode.c | tmp = ext_new_block(inode->i_sb); |
i_sb | 294 | 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 | 544 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 596 | 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,0); /* don't cross mnt-points */ |
i_sb | 797 | fs/ext/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */ |
i_sb | 58 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 107 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 120 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 170 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 217 | fs/ext/truncate.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 80 | fs/ext2/dir.c | dir->i_sb->s_blocksize) |
i_sb | 84 | fs/ext2/dir.c | ext2_error (dir->i_sb, function, "bad directory entry: %s\n" |
i_sb | 103 | fs/ext2/dir.c | sb = inode->i_sb; |
i_sb | 92 | fs/ext2/file.c | sb = inode->i_sb; |
i_sb | 232 | fs/ext2/file.c | sb = inode->i_sb; |
i_sb | 27 | fs/ext2/fsync.c | #define blocksize (EXT2_BLOCK_SIZE(inode->i_sb)) |
i_sb | 28 | fs/ext2/fsync.c | #define addr_per_block (EXT2_ADDR_PER_BLOCK(inode->i_sb)) |
i_sb | 191 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) / |
i_sb | 192 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 193 | fs/ext2/ialloc.c | bh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize); |
i_sb | 195 | fs/ext2/ialloc.c | ext2_panic (inode->i_sb, "set_inode_dtime", |
i_sb | 201 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) % |
i_sb | 202 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 240 | fs/ext2/ialloc.c | if (!inode->i_sb) { |
i_sb | 247 | fs/ext2/ialloc.c | sb = inode->i_sb; |
i_sb | 299 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) / |
i_sb | 300 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 301 | fs/ext2/ialloc.c | bh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize); |
i_sb | 303 | fs/ext2/ialloc.c | ext2_error (inode->i_sb, "inc_inode_version", |
i_sb | 312 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) % |
i_sb | 313 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 344 | fs/ext2/ialloc.c | sb = dir->i_sb; |
i_sb | 345 | fs/ext2/ialloc.c | inode->i_sb = sb; |
i_sb | 474 | fs/ext2/ialloc.c | inode->i_sb = sb; |
i_sb | 74 | fs/ext2/inode.c | ext2_free_blocks (inode->i_sb, |
i_sb | 89 | fs/ext2/inode.c | wait_on_super (inode->i_sb); |
i_sb | 104 | fs/ext2/inode.c | if (!(bh = getblk (inode->i_sb->s_dev, result, |
i_sb | 105 | fs/ext2/inode.c | inode->i_sb->s_blocksize))) { |
i_sb | 106 | fs/ext2/inode.c | ext2_error (inode->i_sb, "ext2_alloc_block", |
i_sb | 110 | fs/ext2/inode.c | clear_block (bh->b_data, inode->i_sb->s_blocksize); |
i_sb | 120 | fs/ext2/inode.c | (inode->i_sb, goal, |
i_sb | 124 | fs/ext2/inode.c | result = ext2_new_block (inode->i_sb, goal, 0, 0); |
i_sb | 127 | fs/ext2/inode.c | result = ext2_new_block (inode->i_sb, goal, 0, 0); |
i_sb | 137 | fs/ext2/inode.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 140 | fs/ext2/inode.c | ext2_warning (inode->i_sb, "ext2_bmap", "block < 0"); |
i_sb | 146 | fs/ext2/inode.c | ext2_warning (inode->i_sb, "ext2_bmap", "block > big"); |
i_sb | 157 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
i_sb | 165 | fs/ext2/inode.c | inode->i_sb->s_blocksize), |
i_sb | 170 | fs/ext2/inode.c | inode->i_sb->s_blocksize), |
i_sb | 177 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i_sb | 181 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i_sb | 185 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i_sb | 195 | fs/ext2/inode.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 201 | fs/ext2/inode.c | result = getblk (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 209 | fs/ext2/inode.c | EXT2_BLOCK_SIZE_BITS(inode->i_sb))) { |
i_sb | 227 | fs/ext2/inode.c | EXT2_BLOCKS_PER_GROUP(inode->i_sb)) + |
i_sb | 228 | fs/ext2/inode.c | inode->i_sb->u.ext2_sb.s_es->s_first_data_block; |
i_sb | 236 | fs/ext2/inode.c | result = getblk (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 238 | fs/ext2/inode.c | ext2_free_blocks (inode->i_sb, tmp, 1); |
i_sb | 262 | fs/ext2/inode.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 288 | fs/ext2/inode.c | EXT2_BLOCK_SIZE_BITS(inode->i_sb))) { |
i_sb | 312 | fs/ext2/inode.c | ext2_free_blocks (inode->i_sb, tmp, 1); |
i_sb | 336 | fs/ext2/inode.c | unsigned long addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 340 | fs/ext2/inode.c | ext2_warning (inode->i_sb, "ext2_getblk", "block < 0"); |
i_sb | 346 | fs/ext2/inode.c | ext2_warning (inode->i_sb, "ext2_getblk", "block > big"); |
i_sb | 372 | fs/ext2/inode.c | inode->i_sb->s_blocksize, b, err); |
i_sb | 378 | fs/ext2/inode.c | inode->i_sb->s_blocksize, b, err); |
i_sb | 380 | fs/ext2/inode.c | create, inode->i_sb->s_blocksize, b, err); |
i_sb | 385 | fs/ext2/inode.c | create, inode->i_sb->s_blocksize, b, err); |
i_sb | 387 | fs/ext2/inode.c | create, inode->i_sb->s_blocksize, b, err); |
i_sb | 389 | fs/ext2/inode.c | inode->i_sb->s_blocksize, b, err); |
i_sb | 421 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
i_sb | 422 | fs/ext2/inode.c | ext2_error (inode->i_sb, "ext2_read_inode", |
i_sb | 426 | fs/ext2/inode.c | block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); |
i_sb | 427 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
i_sb | 428 | fs/ext2/inode.c | ext2_panic (inode->i_sb, "ext2_read_inode", |
i_sb | 430 | fs/ext2/inode.c | group_desc = block_group / EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 431 | fs/ext2/inode.c | desc = block_group % EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 432 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
i_sb | 434 | fs/ext2/inode.c | ext2_panic (inode->i_sb, "ext2_read_inode", |
i_sb | 438 | fs/ext2/inode.c | (((inode->i_ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) |
i_sb | 439 | fs/ext2/inode.c | / EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 440 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
i_sb | 441 | fs/ext2/inode.c | ext2_panic (inode->i_sb, "ext2_read_inode", |
i_sb | 445 | fs/ext2/inode.c | (inode->i_ino - 1) % EXT2_INODES_PER_BLOCK(inode->i_sb); |
i_sb | 455 | fs/ext2/inode.c | inode->i_blksize = inode->i_sb->s_blocksize; |
i_sb | 468 | fs/ext2/inode.c | ext2_error (inode->i_sb, "ext2_read_inode", |
i_sb | 506 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_es->s_inodes_count) { |
i_sb | 507 | fs/ext2/inode.c | ext2_error (inode->i_sb, "ext2_write_inode", |
i_sb | 511 | fs/ext2/inode.c | block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); |
i_sb | 512 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
i_sb | 513 | fs/ext2/inode.c | ext2_panic (inode->i_sb, "ext2_write_inode", |
i_sb | 515 | fs/ext2/inode.c | group_desc = block_group / EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 516 | fs/ext2/inode.c | desc = block_group % EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 517 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
i_sb | 519 | fs/ext2/inode.c | ext2_panic (inode->i_sb, "ext2_write_inode", |
i_sb | 523 | fs/ext2/inode.c | (((inode->i_ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) |
i_sb | 524 | fs/ext2/inode.c | / EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 525 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
i_sb | 526 | fs/ext2/inode.c | ext2_panic (inode->i_sb, "ext2_write_inode", |
i_sb | 530 | fs/ext2/inode.c | (inode->i_ino - 1) % EXT2_INODES_PER_BLOCK(inode->i_sb); |
i_sb | 88 | fs/ext2/namei.c | sb = dir->i_sb; |
i_sb | 200 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
i_sb | 233 | fs/ext2/namei.c | sb = dir->i_sb; |
i_sb | 510 | fs/ext2/namei.c | inode->i_size = inode->i_sb->s_blocksize; |
i_sb | 522 | fs/ext2/namei.c | inode->i_blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 530 | fs/ext2/namei.c | de->rec_len = inode->i_sb->s_blocksize - EXT2_DIR_REC_LEN(1); |
i_sb | 577 | fs/ext2/namei.c | sb = inode->i_sb; |
i_sb | 580 | fs/ext2/namei.c | ext2_warning (inode->i_sb, "empty_dir", |
i_sb | 588 | fs/ext2/namei.c | ext2_warning (inode->i_sb, "empty_dir", |
i_sb | 636 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
i_sb | 687 | fs/ext2/namei.c | ext2_warning (inode->i_sb, "ext2_rmdir", |
i_sb | 720 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
i_sb | 737 | fs/ext2/namei.c | ext2_warning (inode->i_sb, "ext2_unlink", |
i_sb | 783 | fs/ext2/namei.c | for (l = 0; l < inode->i_sb->s_blocksize - 1 && |
i_sb | 806 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) |
i_sb | 968 | fs/ext2/namei.c | old_inode = __iget (old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
i_sb | 978 | fs/ext2/namei.c | new_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */ |
i_sb | 1112 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
i_sb | 1113 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
i_sb | 1114 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
i_sb | 1117 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
i_sb | 1118 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
i_sb | 105 | fs/ext2/symlink.c | if (buflen > inode->i_sb->s_blocksize - 1) |
i_sb | 106 | fs/ext2/symlink.c | buflen = inode->i_sb->s_blocksize - 1; |
i_sb | 61 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 62 | fs/ext2/truncate.c | #define DIRECT_BLOCK ((inode->i_size + inode->i_sb->s_blocksize - 1) / \ |
i_sb | 63 | fs/ext2/truncate.c | inode->i_sb->s_blocksize) |
i_sb | 74 | fs/ext2/truncate.c | inode->i_sb->s_blocksize); |
i_sb | 77 | fs/ext2/truncate.c | inode->i_sb->s_blocksize); |
i_sb | 91 | fs/ext2/truncate.c | clear_block (bh->b_data, inode->i_sb->s_blocksize, |
i_sb | 102 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, block_to_free, free_count); |
i_sb | 109 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, block_to_free, free_count); |
i_sb | 122 | fs/ext2/truncate.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 123 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 130 | fs/ext2/truncate.c | ind_bh = bread (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 151 | fs/ext2/truncate.c | inode->i_sb->s_blocksize); |
i_sb | 154 | fs/ext2/truncate.c | inode->i_sb->s_blocksize); |
i_sb | 167 | fs/ext2/truncate.c | clear_block (bh->b_data, inode->i_sb->s_blocksize, |
i_sb | 178 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, block_to_free, free_count); |
i_sb | 187 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, block_to_free, free_count); |
i_sb | 200 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, tmp, 1); |
i_sb | 217 | fs/ext2/truncate.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 218 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 225 | fs/ext2/truncate.c | dind_bh = bread (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 260 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, tmp, 1); |
i_sb | 276 | fs/ext2/truncate.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 277 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 286 | fs/ext2/truncate.c | tind_bh = bread (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 319 | fs/ext2/truncate.c | ext2_free_blocks (inode->i_sb, tmp, 1); |
i_sb | 342 | fs/ext2/truncate.c | EXT2_ADDR_PER_BLOCK(inode->i_sb), |
i_sb | 619 | fs/hpfs/hpfs_fs.c | struct super_block *s = inode->i_sb; |
i_sb | 627 | fs/hpfs/hpfs_fs.c | || ino_secno(inode->i_ino) >= inode->i_sb->s_hpfs_fs_size) { |
i_sb | 1150 | fs/hpfs/hpfs_fs.c | if (!(inode = iget(dir->i_sb, ino))) |
i_sb | 1337 | fs/hpfs/hpfs_fs.c | || inode->i_sb == 0 |
i_sb | 1341 | fs/hpfs/hpfs_fs.c | lc = inode->i_sb->s_hpfs_lowercase; |
i_sb | 219 | fs/inode.c | if (!inode->i_sb || !inode->i_sb->s_op || !inode->i_sb->s_op->write_inode) { |
i_sb | 224 | fs/inode.c | inode->i_sb->s_op->write_inode(inode); |
i_sb | 231 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && inode->i_sb->s_op->read_inode) |
i_sb | 232 | fs/inode.c | inode->i_sb->s_op->read_inode(inode); |
i_sb | 246 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && |
i_sb | 247 | fs/inode.c | inode->i_sb->s_op->notify_change) |
i_sb | 248 | fs/inode.c | return inode->i_sb->s_op->notify_change(flags, inode); |
i_sb | 328 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && inode->i_sb->s_op->put_inode) { |
i_sb | 329 | fs/inode.c | inode->i_sb->s_op->put_inode(inode); |
i_sb | 451 | fs/inode.c | inode->i_sb = sb; |
i_sb | 35 | fs/ioctl.c | if (filp->f_inode->i_sb == NULL) |
i_sb | 40 | fs/ioctl.c | put_fs_long(filp->f_inode->i_sb->s_blocksize, |
i_sb | 153 | fs/isofs/dir.c | if((inode->i_sb->u.isofs_sb.s_firstdatazone |
i_sb | 190 | fs/isofs/dir.c | if(inode->i_sb->u.isofs_sb.s_mapping == 'n') |
i_sb | 352 | fs/isofs/inode.c | high_sierra = inode->i_sb->u.isofs_sb.s_high_sierra; |
i_sb | 399 | fs/isofs/inode.c | inode->i_sb->u.isofs_sb.s_cruft == 'n') { |
i_sb | 401 | fs/isofs/inode.c | inode->i_sb->u.isofs_sb.s_cruft = 'y'; |
i_sb | 408 | fs/isofs/inode.c | if(inode->i_sb->u.isofs_sb.s_cruft == 'y' && |
i_sb | 453 | fs/isofs/inode.c | switch (inode->i_sb->u.isofs_sb.s_conversion){ |
i_sb | 480 | fs/isofs/inode.c | if (inode->i_sb->u.isofs_sb.s_cruft != 'y' && |
i_sb | 144 | fs/isofs/namei.c | dir->i_sb->s_firstdatazone << bufbits, |
i_sb | 147 | fs/isofs/namei.c | if((dir->i_sb->u.isofs_sb.s_firstdatazone |
i_sb | 162 | fs/isofs/namei.c | if(dir->i_sb->u.isofs_sb.s_mapping == 'n') { |
i_sb | 251 | fs/isofs/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 262 | fs/isofs/namei.c | if (ino_back && !(*result)->i_pipe && (*result)->i_sb == dir->i_sb) { |
i_sb | 107 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return retval; |
i_sb | 173 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return 0; |
i_sb | 253 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return 0; |
i_sb | 356 | fs/isofs/rock.c | reloc = iget(inode->i_sb, inode->u.isofs_i.i_first_extent << ISOFS_BUFFER_BITS(inode)); |
i_sb | 401 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) |
i_sb | 162 | fs/minix/bitmap.c | if (!inode->i_sb) { |
i_sb | 166 | fs/minix/bitmap.c | if (inode->i_ino < 1 || inode->i_ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 171 | fs/minix/bitmap.c | if (!(bh=inode->i_sb->u.minix_sb.s_imap[ino >> 13])) { |
i_sb | 190 | fs/minix/bitmap.c | sb = dir->i_sb; |
i_sb | 191 | fs/minix/bitmap.c | inode->i_sb = sb; |
i_sb | 192 | fs/minix/bitmap.c | inode->i_flags = inode->i_sb->s_flags; |
i_sb | 195 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i_sb | 209 | fs/minix/bitmap.c | if (!j || j >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 66 | fs/minix/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_sb | 68 | fs/minix/dir.c | info = &inode->i_sb->u.minix_sb; |
i_sb | 292 | fs/minix/inode.c | tmp = minix_new_block(inode->i_sb); |
i_sb | 297 | fs/minix/inode.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 340 | fs/minix/inode.c | tmp = minix_new_block(inode->i_sb); |
i_sb | 347 | fs/minix/inode.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 406 | fs/minix/inode.c | if (!ino || ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 411 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
i_sb | 412 | fs/minix/inode.c | inode->i_sb->u.minix_sb.s_zmap_blocks + |
i_sb | 454 | fs/minix/inode.c | if (!ino || ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 460 | 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 | 76 | fs/minix/namei.c | if (!dir || !dir->i_sb) |
i_sb | 78 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
i_sb | 131 | fs/minix/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 162 | fs/minix/namei.c | if (!dir || !dir->i_sb) |
i_sb | 164 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
i_sb | 313 | fs/minix/namei.c | if (!dir || !dir->i_sb) { |
i_sb | 317 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
i_sb | 383 | fs/minix/namei.c | if (!inode || !inode->i_sb) |
i_sb | 385 | fs/minix/namei.c | info = &inode->i_sb->u.minix_sb; |
i_sb | 444 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 499 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 680 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
i_sb | 697 | fs/minix/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
i_sb | 707 | fs/minix/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
i_sb | 52 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 101 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 113 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 160 | fs/minix/truncate.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 230 | fs/msdos/fat.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
i_sb | 243 | fs/msdos/fat.c | sb = MSDOS_SB(inode->i_sb); |
i_sb | 267 | fs/msdos/fat.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
i_sb | 274 | fs/msdos/fat.c | fat_access(inode->i_sb,last,MSDOS_SB(inode->i_sb)->fat_bits == |
i_sb | 280 | fs/msdos/fat.c | lock_fat(inode->i_sb); |
i_sb | 282 | fs/msdos/fat.c | if (!(nr = fat_access(inode->i_sb,nr,0))) { |
i_sb | 283 | fs/msdos/fat.c | fs_panic(inode->i_sb,"fat_free: deleting beyond EOF"); |
i_sb | 286 | fs/msdos/fat.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
i_sb | 287 | fs/msdos/fat.c | MSDOS_SB(inode->i_sb)->free_clusters++; |
i_sb | 288 | fs/msdos/fat.c | inode->i_blocks -= MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 290 | fs/msdos/fat.c | unlock_fat(inode->i_sb); |
i_sb | 219 | fs/msdos/file.c | cluster = SECTOR_SIZE*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 31 | fs/msdos/inode.c | sb = inode->i_sb; |
i_sb | 292 | fs/msdos/inode.c | sb = MSDOS_SB(inode->i_sb); |
i_sb | 315 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
i_sb | 316 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
i_sb | 318 | fs/msdos/inode.c | inode->i_mode = (S_IRWXUGO & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_sb | 323 | fs/msdos/inode.c | inode->i_size = MSDOS_SB(inode->i_sb)->dir_entries* |
i_sb | 325 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size* |
i_sb | 328 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 343 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFDIR; |
i_sb | 358 | fs/msdos/inode.c | i_sb)->cluster_size; |
i_sb | 359 | fs/msdos/inode.c | if (!(nr = fat_access(inode->i_sb,nr,-1))) { |
i_sb | 368 | fs/msdos/inode.c | ? S_IRUGO|S_IWUGO : S_IRWXUGO) & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_sb | 370 | fs/msdos/inode.c | inode->i_op = MSDOS_CAN_BMAP(MSDOS_SB(inode->i_sb)) ? |
i_sb | 377 | fs/msdos/inode.c | MSDOS_I(inode)->i_binary = is_binary(MSDOS_SB(inode->i_sb)->conversion, |
i_sb | 381 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size*SECTOR_SIZE; |
i_sb | 383 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 428 | fs/msdos/inode.c | if ((flags & NOTIFY_UIDGID) && (inode->i_uid != MSDOS_SB(inode->i_sb)-> |
i_sb | 429 | fs/msdos/inode.c | fs_uid || inode->i_gid != MSDOS_SB(inode->i_sb)->fs_gid)) { |
i_sb | 430 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
i_sb | 431 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
i_sb | 435 | fs/msdos/inode.c | return MSDOS_SB(inode->i_sb)->quiet ? 0 : error; |
i_sb | 444 | fs/msdos/inode.c | & ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IRUSR) >> 6)*S_IXUGO)) & |
i_sb | 445 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask; |
i_sb | 446 | fs/msdos/inode.c | return MSDOS_SB(inode->i_sb)->quiet ? 0 : error; |
i_sb | 116 | fs/msdos/misc.c | if (!MSDOS_SB(inode->i_sb)->free_clusters) return -ENOSPC; |
i_sb | 117 | fs/msdos/misc.c | lock_fat(inode->i_sb); |
i_sb | 118 | fs/msdos/misc.c | limit = MSDOS_SB(inode->i_sb)->clusters; |
i_sb | 121 | fs/msdos/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
i_sb | 122 | fs/msdos/misc.c | if (fat_access(inode->i_sb,nr,-1) == 0) break; |
i_sb | 127 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->prev_free = (count+MSDOS_SB(inode->i_sb)-> |
i_sb | 130 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->free_clusters = 0; |
i_sb | 131 | fs/msdos/misc.c | unlock_fat(inode->i_sb); |
i_sb | 134 | fs/msdos/misc.c | fat_access(inode->i_sb,nr,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
i_sb | 136 | fs/msdos/misc.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
i_sb | 137 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->free_clusters--; |
i_sb | 138 | fs/msdos/misc.c | unlock_fat(inode->i_sb); |
i_sb | 140 | fs/msdos/misc.c | printk("set to %x\n",fat_access(inode->i_sb,nr,-1)); |
i_sb | 146 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
i_sb | 148 | fs/msdos/misc.c | fs_panic(inode->i_sb,"File without EOF"); |
i_sb | 155 | fs/msdos/misc.c | if (last) fat_access(inode->i_sb,last,nr); |
i_sb | 161 | fs/msdos/misc.c | if (last) printk("next set to %d\n",fat_access(inode->i_sb,last,-1)); |
i_sb | 163 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 165 | fs/msdos/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)* |
i_sb | 166 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
i_sb | 170 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
i_sb | 192 | fs/msdos/misc.c | inode->i_blocks += MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 195 | fs/msdos/misc.c | fs_panic(inode->i_sb,"Odd directory size"); |
i_sb | 199 | fs/msdos/misc.c | inode->i_size += SECTOR_SIZE*MSDOS_SB(inode->i_sb)-> |
i_sb | 463 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
i_sb | 470 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
i_sb | 475 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
i_sb | 497 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL); |
i_sb | 500 | fs/msdos/misc.c | else (void) raw_scan_nonroot(dir->i_sb,MSDOS_I(dir)->i_start, |
i_sb | 518 | fs/msdos/misc.c | res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,name,NULL,ino, |
i_sb | 520 | fs/msdos/misc.c | else res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,NULL,NULL,ino, |
i_sb | 99 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 127 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) return -EACCES; |
i_sb | 136 | fs/msdos/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 148 | fs/msdos/namei.c | if (!(*result = iget(next->i_sb,next->i_ino))) { |
i_sb | 149 | fs/msdos/namei.c | fs_panic(dir->i_sb,"msdos_lookup: Can't happen"); |
i_sb | 185 | fs/msdos/namei.c | if ((*result = iget(dir->i_sb,ino)) != NULL) |
i_sb | 205 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 252 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 295 | fs/msdos/namei.c | fs_panic(dir->i_sb,"rmdir in mkdir failed"); |
i_sb | 340 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) goto rmdir_done; |
i_sb | 374 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) { |
i_sb | 412 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
i_sb | 438 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
i_sb | 439 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
i_sb | 459 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,new_dir->i_ino))) return -EIO; |
i_sb | 465 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,ino))) return -EIO; |
i_sb | 475 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
i_sb | 488 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
i_sb | 510 | fs/msdos/namei.c | if (!(free_inode = iget(new_dir->i_sb,free_ino))) { |
i_sb | 542 | fs/msdos/namei.c | if (!(dotdot_inode = iget(old_inode->i_sb,dotdot_ino))) { |
i_sb | 574 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
i_sb | 576 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(new_dir->i_sb)->name_check, |
i_sb | 109 | fs/namei.c | } else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) { |
i_sb | 110 | fs/namei.c | sb = dir->i_sb; |
i_sb | 320 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
i_sb | 354 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
i_sb | 58 | fs/nfs/mmap.c | if (off & (inode->i_sb->s_blocksize - 1)) |
i_sb | 60 | fs/nfs/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_sb | 40 | fs/open.c | if (!inode->i_sb->s_op->statfs) { |
i_sb | 44 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
i_sb | 62 | fs/open.c | if (!inode->i_sb->s_op->statfs) |
i_sb | 64 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
i_sb | 124 | fs/proc/base.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 68 | fs/proc/fd.c | sb = dir->i_sb; |
i_sb | 122 | fs/proc/net.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 123 | fs/proc/root.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 272 | fs/super.c | if (!inode || !inode->i_sb || inode != inode->i_sb->s_mounted) { |
i_sb | 276 | fs/super.c | dev = inode->i_sb->s_dev; |
i_sb | 374 | fs/super.c | if (dir_i != dir_i->i_sb->s_mounted) { |
i_sb | 378 | fs/super.c | retval = do_remount_sb(dir_i->i_sb, flags, data); |
i_sb | 74 | fs/sysv/dir.c | if (!inode || !(sb = inode->i_sb) || !S_ISDIR(inode->i_mode)) |
i_sb | 96 | fs/sysv/dir.c | if (de->inode > inode->i_sb->sv_ninodes) |
i_sb | 111 | fs/sysv/file.c | struct super_block * sb = inode->i_sb; |
i_sb | 244 | fs/sysv/file.c | struct super_block * sb = inode->i_sb; |
i_sb | 40 | fs/sysv/fsync.c | sb = inode->i_sb; |
i_sb | 77 | fs/sysv/fsync.c | *bh = sysv_bread(inode->i_sb, inode->i_dev, block, bh_data); |
i_sb | 116 | fs/sysv/fsync.c | sb = inode->i_sb; |
i_sb | 143 | fs/sysv/fsync.c | sb = inode->i_sb; |
i_sb | 170 | fs/sysv/fsync.c | sb = inode->i_sb; |
i_sb | 58 | fs/sysv/ialloc.c | if (!(sb = inode->i_sb)) { |
i_sb | 97 | fs/sysv/ialloc.c | sb = dir->i_sb; |
i_sb | 98 | fs/sysv/ialloc.c | inode->i_sb = sb; |
i_sb | 99 | fs/sysv/ialloc.c | inode->i_flags = inode->i_sb->s_flags; |
i_sb | 415 | fs/sysv/inode.c | struct super_block * sb = inode->i_sb; |
i_sb | 479 | fs/sysv/inode.c | sb = inode->i_sb; |
i_sb | 528 | fs/sysv/inode.c | sb = inode->i_sb; |
i_sb | 569 | fs/sysv/inode.c | struct super_block * sb = inode->i_sb; |
i_sb | 642 | fs/sysv/inode.c | struct super_block * sb = inode->i_sb; |
i_sb | 717 | fs/sysv/inode.c | if (inode->i_sb->sv_kludge_symlinks) |
i_sb | 727 | fs/sysv/inode.c | struct super_block * sb = inode->i_sb; |
i_sb | 76 | fs/sysv/namei.c | sb = dir->i_sb; |
i_sb | 129 | fs/sysv/namei.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 163 | fs/sysv/namei.c | sb = dir->i_sb; |
i_sb | 226 | fs/sysv/namei.c | if (inode->i_sb->sv_block_size_ratio_bits == 0) /* block_size == BLOCK_SIZE ? */ |
i_sb | 272 | fs/sysv/namei.c | if (inode->i_sb->sv_block_size_ratio_bits == 0) /* block_size == BLOCK_SIZE ? */ |
i_sb | 326 | fs/sysv/namei.c | if (dir->i_nlink >= dir->i_sb->sv_link_max) { |
i_sb | 404 | fs/sysv/namei.c | sb = inode->i_sb; |
i_sb | 448 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 503 | fs/sysv/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 568 | fs/sysv/namei.c | sb = inode->i_sb; |
i_sb | 613 | fs/sysv/namei.c | if (oldinode->i_nlink >= oldinode->i_sb->sv_link_max) { |
i_sb | 705 | fs/sysv/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
i_sb | 715 | fs/sysv/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
i_sb | 758 | fs/sysv/namei.c | if (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max) |
i_sb | 97 | fs/sysv/symlink.c | if (buflen > inode->i_sb->sv_block_size_1) |
i_sb | 98 | fs/sysv/symlink.c | buflen = inode->i_sb->sv_block_size_1; |
i_sb | 45 | fs/sysv/truncate.c | sysv_free_block(inode->i_sb,block); |
i_sb | 55 | fs/sysv/truncate.c | struct super_block * sb = inode->i_sb; |
i_sb | 110 | fs/sysv/truncate.c | struct super_block * sb = inode->i_sb; |
i_sb | 167 | fs/sysv/truncate.c | struct super_block * sb = inode->i_sb; |
i_sb | 219 | fs/sysv/truncate.c | struct super_block * sb = inode->i_sb; |
i_sb | 264 | fs/sysv/truncate.c | sb = inode->i_sb; |
i_sb | 307 | fs/sysv/truncate.c | sb = inode->i_sb; |
i_sb | 375 | fs/sysv/truncate.c | sb = inode->i_sb; |
i_sb | 429 | fs/sysv/truncate.c | sb = inode->i_sb; |
i_sb | 491 | fs/sysv/truncate.c | if (inode->i_sb->sv_block_size_ratio_bits > 0) { /* block_size < BLOCK_SIZE ? */ |
i_sb | 293 | fs/xiafs/bitmap.c | if (!inode->i_dev || inode->i_count!=1 || inode->i_nlink || !inode->i_sb || |
i_sb | 294 | fs/xiafs/bitmap.c | inode->i_ino < 3 || inode->i_ino > inode->i_sb->u.xiafs_sb.s_ninodes) { |
i_sb | 298 | fs/xiafs/bitmap.c | sb = inode->i_sb; |
i_sb | 318 | fs/xiafs/bitmap.c | sb = dir->i_sb; |
i_sb | 321 | fs/xiafs/bitmap.c | inode->i_sb = sb; |
i_sb | 322 | fs/xiafs/bitmap.c | inode->i_flags = inode->i_sb->s_flags; |
i_sb | 339 | fs/xiafs/bitmap.c | inode->i_blksize = XIAFS_ZSIZE(inode->i_sb); |
i_sb | 72 | fs/xiafs/dir.c | if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) |
i_sb | 74 | fs/xiafs/dir.c | if (inode->i_size & (XIAFS_ZSIZE(inode->i_sb) - 1) ) |
i_sb | 77 | fs/xiafs/dir.c | offset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1); |
i_sb | 78 | fs/xiafs/dir.c | bh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0); |
i_sb | 80 | fs/xiafs/dir.c | filp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset; |
i_sb | 84 | fs/xiafs/dir.c | while (offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) { |
i_sb | 85 | fs/xiafs/dir.c | if (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes || |
i_sb | 87 | fs/xiafs/dir.c | (char *)de+de->d_rec_len > XIAFS_ZSIZE(inode->i_sb)+bh->b_data || |
i_sb | 113 | fs/xiafs/dir.c | if (offset > XIAFS_ZSIZE(inode->i_sb)) { |
i_sb | 94 | fs/xiafs/file.c | zone_nr = offset >> XIAFS_ZSIZE_BITS(inode->i_sb); |
i_sb | 95 | fs/xiafs/file.c | offset &= XIAFS_ZSIZE(inode->i_sb) -1 ; |
i_sb | 96 | fs/xiafs/file.c | f_zones =(inode->i_size+XIAFS_ZSIZE(inode->i_sb)-1)>>XIAFS_ZSIZE_BITS(inode->i_sb); |
i_sb | 97 | fs/xiafs/file.c | zones = (left+offset+XIAFS_ZSIZE(inode->i_sb)-1) >> XIAFS_ZSIZE_BITS(inode->i_sb); |
i_sb | 100 | fs/xiafs/file.c | zones += read_ahead[MAJOR(inode->i_dev)] >> (1+XIAFS_ZSHIFT(inode->i_sb)); |
i_sb | 151 | fs/xiafs/file.c | if (left < XIAFS_ZSIZE(inode->i_sb) - offset) |
i_sb | 154 | fs/xiafs/file.c | chars = XIAFS_ZSIZE(inode->i_sb) - offset; |
i_sb | 214 | fs/xiafs/file.c | bh = xiafs_getblk(inode, pos >> XIAFS_ZSIZE_BITS(inode->i_sb), 1); |
i_sb | 220 | fs/xiafs/file.c | c = XIAFS_ZSIZE(inode->i_sb) - (pos & (XIAFS_ZSIZE(inode->i_sb) - 1)); |
i_sb | 223 | fs/xiafs/file.c | if (c != XIAFS_ZSIZE(inode->i_sb) && !bh->b_uptodate) { |
i_sb | 233 | fs/xiafs/file.c | cp = (pos & (XIAFS_ZSIZE(inode->i_sb)-1)) + bh->b_data; |
i_sb | 26 | fs/xiafs/fsync.c | #define blocksize (XIAFS_ZSIZE(inode->i_sb)) |
i_sb | 27 | fs/xiafs/fsync.c | #define addr_per_block (XIAFS_ADDRS_PER_Z(inode->i_sb)) |
i_sb | 193 | fs/xiafs/inode.c | if (zone >= 8+(1+XIAFS_ADDRS_PER_Z(inode->i_sb))*XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 204 | fs/xiafs/inode.c | if (zone < XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 207 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i_sb | 210 | fs/xiafs/inode.c | zone -= XIAFS_ADDRS_PER_Z(inode->i_sb); |
i_sb | 213 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i_sb | 214 | fs/xiafs/inode.c | zone >> XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)); |
i_sb | 216 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i_sb | 217 | fs/xiafs/inode.c | zone & (XIAFS_ADDRS_PER_Z(inode->i_sb)-1)); |
i_sb | 229 | fs/xiafs/inode.c | random_nr=(random_nr+23)%inode->i_sb->u.xiafs_sb.s_ndatazones; |
i_sb | 230 | fs/xiafs/inode.c | return random_nr + inode->i_sb->u.xiafs_sb.s_firstdatazone; |
i_sb | 241 | fs/xiafs/inode.c | result = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 249 | fs/xiafs/inode.c | tmp = xiafs_new_zone(inode->i_sb, prev_addr); |
i_sb | 252 | fs/xiafs/inode.c | result = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 254 | fs/xiafs/inode.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 259 | fs/xiafs/inode.c | inode->i_blocks+=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 284 | fs/xiafs/inode.c | result = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 296 | fs/xiafs/inode.c | tmp = xiafs_new_zone(inode->i_sb, prev_addr); |
i_sb | 301 | fs/xiafs/inode.c | result = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 303 | fs/xiafs/inode.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 308 | fs/xiafs/inode.c | inode->i_blocks+=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 323 | fs/xiafs/inode.c | if (zone >= 8+(1+XIAFS_ADDRS_PER_Z(inode->i_sb))*XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 333 | fs/xiafs/inode.c | if (zone < XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 338 | fs/xiafs/inode.c | zone -= XIAFS_ADDRS_PER_Z(inode->i_sb); |
i_sb | 340 | fs/xiafs/inode.c | bh = indt_getblk(inode, bh, zone>>XIAFS_ADDRS_PER_Z_BITS(inode->i_sb), |
i_sb | 342 | fs/xiafs/inode.c | bh = indt_getblk(inode, bh, zone&(XIAFS_ADDRS_PER_Z(inode->i_sb)-1), |
i_sb | 372 | fs/xiafs/inode.c | if (!ino || ino > inode->i_sb->u.xiafs_sb.s_ninodes) { |
i_sb | 376 | fs/xiafs/inode.c | zone = 1 + inode->i_sb->u.xiafs_sb.s_imap_zones + |
i_sb | 377 | fs/xiafs/inode.c | inode->i_sb->u.xiafs_sb.s_zmap_zones + |
i_sb | 378 | fs/xiafs/inode.c | (ino-1)/ XIAFS_INODES_PER_Z(inode->i_sb); |
i_sb | 379 | fs/xiafs/inode.c | if (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) { |
i_sb | 384 | fs/xiafs/inode.c | ((ino-1) & (XIAFS_INODES_PER_Z(inode->i_sb) - 1)); |
i_sb | 393 | fs/xiafs/inode.c | inode->i_blksize = XIAFS_ZSIZE(inode->i_sb); |
i_sb | 433 | fs/xiafs/inode.c | if (!ino || ino > inode->i_sb->u.xiafs_sb.s_ninodes) { |
i_sb | 438 | fs/xiafs/inode.c | zone = 1 + inode->i_sb->u.xiafs_sb.s_imap_zones + |
i_sb | 439 | fs/xiafs/inode.c | inode->i_sb->u.xiafs_sb.s_zmap_zones + |
i_sb | 440 | fs/xiafs/inode.c | (ino-1) / XIAFS_INODES_PER_Z(inode->i_sb); |
i_sb | 441 | fs/xiafs/inode.c | if (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) { |
i_sb | 447 | fs/xiafs/inode.c | ((ino-1) & (XIAFS_INODES_PER_Z(inode->i_sb) -1)); |
i_sb | 70 | fs/xiafs/namei.c | if (inode->i_size & (XIAFS_ZSIZE(inode->i_sb) - 1)) { |
i_sb | 74 | fs/xiafs/namei.c | zones=inode->i_size >> XIAFS_ZSIZE_BITS(inode->i_sb); |
i_sb | 87 | fs/xiafs/namei.c | while ( pos < XIAFS_ZSIZE(inode->i_sb) ) { |
i_sb | 88 | fs/xiafs/namei.c | if (dep->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes || |
i_sb | 90 | fs/xiafs/namei.c | dep->d_rec_len+(char *)dep > bh->b_data+XIAFS_ZSIZE(inode->i_sb) || |
i_sb | 107 | fs/xiafs/namei.c | if (pos > XIAFS_ZSIZE(inode->i_sb)) { |
i_sb | 135 | fs/xiafs/namei.c | if (!(*result = iget(dir->i_sb, ino))) { |
i_sb | 165 | fs/xiafs/namei.c | if (dir->i_size & (XIAFS_ZSIZE(dir->i_sb) - 1)) { |
i_sb | 171 | fs/xiafs/namei.c | bh = xiafs_bread(dir, pos >> XIAFS_ZSIZE_BITS(dir->i_sb), pos ? 1:0); |
i_sb | 186 | fs/xiafs/namei.c | while (offset < XIAFS_ZSIZE(dir->i_sb)) { |
i_sb | 191 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb); |
i_sb | 192 | fs/xiafs/namei.c | dir->i_size += XIAFS_ZSIZE(dir->i_sb); |
i_sb | 195 | fs/xiafs/namei.c | if (de->d_ino > dir->i_sb->u.xiafs_sb.s_ninodes || |
i_sb | 197 | fs/xiafs/namei.c | (char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(dir->i_sb) || |
i_sb | 235 | fs/xiafs/namei.c | if (offset > XIAFS_ZSIZE(dir->i_sb)) { |
i_sb | 239 | fs/xiafs/namei.c | pos+=XIAFS_ZSIZE(dir->i_sb); |
i_sb | 357 | fs/xiafs/namei.c | inode->i_size = XIAFS_ZSIZE(dir->i_sb); |
i_sb | 376 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12; |
i_sb | 410 | fs/xiafs/namei.c | if (inode->i_size & (XIAFS_ZSIZE(inode->i_sb)-1) ) { |
i_sb | 415 | fs/xiafs/namei.c | zones=inode->i_size >> XIAFS_ZSIZE_BITS(inode->i_sb); |
i_sb | 442 | fs/xiafs/namei.c | while (offset < XIAFS_ZSIZE(inode->i_sb)) { |
i_sb | 444 | fs/xiafs/namei.c | if (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes || |
i_sb | 446 | fs/xiafs/namei.c | (char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) || |
i_sb | 497 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
i_sb | 548 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
i_sb | 727 | fs/xiafs/namei.c | old_inode = __iget(old_dir->i_sb, old_de->d_ino, 0); /* don't cross mnt-points */ |
i_sb | 737 | fs/xiafs/namei.c | new_inode = __iget(new_dir->i_sb, new_de->d_ino, 0); |
i_sb | 35 | fs/xiafs/truncate.c | #define DT_ZONE ((inode->i_size + XIAFS_ZSIZE(inode->i_sb) - 1) \ |
i_sb | 36 | fs/xiafs/truncate.c | >> XIAFS_ZSIZE_BITS(inode->i_sb) ) |
i_sb | 52 | fs/xiafs/truncate.c | bh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 62 | fs/xiafs/truncate.c | inode->i_blocks-=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 63 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 82 | fs/xiafs/truncate.c | ind_bh = bread(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 92 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i_sb | 98 | fs/xiafs/truncate.c | bh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 108 | fs/xiafs/truncate.c | inode->i_blocks-= 2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 109 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 114 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i_sb | 115 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 121 | fs/xiafs/truncate.c | inode->i_blocks-= 2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 122 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 133 | fs/xiafs/truncate.c | ((DT_ZONE-XIAFS_ADDRS_PER_Z(inode->i_sb)-8)>>XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)) |
i_sb | 143 | fs/xiafs/truncate.c | dind_bh = bread(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 153 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i_sb | 158 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i_sb | 163 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i_sb | 164 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 171 | fs/xiafs/truncate.c | inode->i_blocks-=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 172 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 92 | include/linux/fs.h | #define IS_RDONLY(inode) (((inode)->i_sb) && ((inode)->i_sb->s_flags & MS_RDONLY)) |
i_sb | 176 | include/linux/fs.h | struct super_block * i_sb; |
i_sb | 139 | include/linux/iso_fs.h | #define ISOFS_BUFFER_SIZE(INODE) ((INODE)->i_sb->s_blocksize) |
i_sb | 140 | include/linux/iso_fs.h | #define ISOFS_BUFFER_BITS(INODE) ((INODE)->i_sb->s_blocksize_bits) |
i_sb | 53 | include/linux/nfs_fs.h | #define NFS_SERVER(inode) (&(inode)->i_sb->u.nfs_sb.s_server) |
i_sb | 1156 | mm/memory.c | block >>= inode->i_sb->s_blocksize_bits; |
i_sb | 1170 | mm/memory.c | for (i=0, j=0; i< PAGE_SIZE ; j++, block++, i += inode->i_sb->s_blocksize) |
i_sb | 1174 | mm/memory.c | page = bread_page(page, inode->i_dev, nr, inode->i_sb->s_blocksize, prot); |
i_sb | 320 | mm/mmap.c | if (off & (inode->i_sb->s_blocksize - 1)) |
i_sb | 322 | mm/mmap.c | if (!inode->i_sb || !S_ISREG(inode->i_mode)) |
i_sb | 326 | mm/mmap.c | if (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) |
i_sb | 91 | mm/swap.c | block = offset << (12 - p->swap_file->i_sb->s_blocksize_bits); |
i_sb | 93 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=p->swap_file->i_sb->s_blocksize) |