tag | line | file | source code |
i_sb | 197 | fs/exec.c | if (!inode->i_sb || !S_ISREG(inode->i_mode) || !permission(inode,MAY_READ)) { |
i_sb | 205 | fs/exec.c | if (!(bh = bread(inode->i_dev,bmap(inode,0),inode->i_sb->s_blocksize))) { |
i_sb | 457 | 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 | 236 | fs/ext/inode.c | tmp = ext_new_block(inode->i_sb); |
i_sb | 241 | fs/ext/inode.c | ext_free_block(inode->i_sb,tmp); |
i_sb | 284 | fs/ext/inode.c | tmp = ext_new_block(inode->i_sb); |
i_sb | 291 | 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 | 536 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 588 | fs/ext/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 779 | fs/ext/namei.c | old_inode = iget(old_dir->i_sb, old_de->inode); |
i_sb | 789 | 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 | 81 | fs/ext2/dir.c | dir->i_sb->s_blocksize) |
i_sb | 103 | fs/ext2/dir.c | sb = inode->i_sb; |
i_sb | 88 | fs/ext2/file.c | sb = inode->i_sb; |
i_sb | 212 | fs/ext2/file.c | sb = inode->i_sb; |
i_sb | 170 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) / |
i_sb | 171 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 172 | fs/ext2/ialloc.c | bh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize); |
i_sb | 179 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) % |
i_sb | 180 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 215 | fs/ext2/ialloc.c | if (!inode->i_sb) { |
i_sb | 222 | fs/ext2/ialloc.c | sb = inode->i_sb; |
i_sb | 278 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) / |
i_sb | 279 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 280 | fs/ext2/ialloc.c | bh = bread (inode->i_sb->s_dev, inode_block, inode->i_sb->s_blocksize); |
i_sb | 290 | fs/ext2/ialloc.c | EXT2_INODES_PER_GROUP(inode->i_sb)) % |
i_sb | 291 | fs/ext2/ialloc.c | EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 334 | fs/ext2/ialloc.c | sb = dir->i_sb; |
i_sb | 335 | fs/ext2/ialloc.c | inode->i_sb = sb; |
i_sb | 439 | fs/ext2/ialloc.c | inode->i_sb = sb; |
i_sb | 373 | fs/ext2/inode.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 393 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
i_sb | 401 | fs/ext2/inode.c | inode->i_sb->s_blocksize), |
i_sb | 406 | fs/ext2/inode.c | inode->i_sb->s_blocksize), |
i_sb | 413 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i_sb | 417 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i_sb | 421 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i_sb | 431 | fs/ext2/inode.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 437 | fs/ext2/inode.c | result = getblk (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 445 | fs/ext2/inode.c | EXT2_BLOCK_SIZE_BITS(inode->i_sb))) { |
i_sb | 463 | fs/ext2/inode.c | EXT2_BLOCKS_PER_GROUP(inode->i_sb)) |
i_sb | 464 | fs/ext2/inode.c | + inode->i_sb->u.ext2_sb.s_first_data_block; |
i_sb | 470 | fs/ext2/inode.c | tmp = ext2_new_block (inode->i_sb, goal); |
i_sb | 473 | fs/ext2/inode.c | result = getblk (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 475 | fs/ext2/inode.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 496 | fs/ext2/inode.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 522 | fs/ext2/inode.c | EXT2_BLOCK_SIZE_BITS(inode->i_sb))) { |
i_sb | 539 | fs/ext2/inode.c | tmp = ext2_new_block (inode->i_sb, goal); |
i_sb | 549 | fs/ext2/inode.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 569 | fs/ext2/inode.c | unsigned long addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 603 | fs/ext2/inode.c | inode->i_sb->s_blocksize, b, err); |
i_sb | 609 | fs/ext2/inode.c | inode->i_sb->s_blocksize, b, err); |
i_sb | 611 | fs/ext2/inode.c | create, inode->i_sb->s_blocksize, b, err); |
i_sb | 616 | fs/ext2/inode.c | create, inode->i_sb->s_blocksize, b, err); |
i_sb | 618 | fs/ext2/inode.c | create, inode->i_sb->s_blocksize, b, err); |
i_sb | 620 | fs/ext2/inode.c | inode->i_sb->s_blocksize, b, err); |
i_sb | 652 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_inodes_count) { |
i_sb | 657 | fs/ext2/inode.c | block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); |
i_sb | 658 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
i_sb | 660 | fs/ext2/inode.c | group_desc = block_group / EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 661 | fs/ext2/inode.c | desc = block_group % EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 662 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
i_sb | 667 | fs/ext2/inode.c | (((inode->i_ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) |
i_sb | 668 | fs/ext2/inode.c | / EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 669 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
i_sb | 672 | fs/ext2/inode.c | (inode->i_ino - 1) % EXT2_INODES_PER_BLOCK(inode->i_sb); |
i_sb | 682 | fs/ext2/inode.c | inode->i_blksize = inode->i_sb->s_blocksize; |
i_sb | 727 | fs/ext2/inode.c | inode->i_ino > inode->i_sb->u.ext2_sb.s_inodes_count) { |
i_sb | 732 | fs/ext2/inode.c | block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); |
i_sb | 733 | fs/ext2/inode.c | if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) |
i_sb | 735 | fs/ext2/inode.c | group_desc = block_group / EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 736 | fs/ext2/inode.c | desc = block_group % EXT2_DESC_PER_BLOCK(inode->i_sb); |
i_sb | 737 | fs/ext2/inode.c | bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; |
i_sb | 742 | fs/ext2/inode.c | (((inode->i_ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) |
i_sb | 743 | fs/ext2/inode.c | / EXT2_INODES_PER_BLOCK(inode->i_sb)); |
i_sb | 744 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
i_sb | 747 | fs/ext2/inode.c | (inode->i_ino - 1) % EXT2_INODES_PER_BLOCK(inode->i_sb); |
i_sb | 84 | fs/ext2/namei.c | sb = dir->i_sb; |
i_sb | 159 | fs/ext2/namei.c | if (!(*result = iget (dir->i_sb, ino))) { |
i_sb | 193 | fs/ext2/namei.c | sb = dir->i_sb; |
i_sb | 414 | fs/ext2/namei.c | inode->i_size = inode->i_sb->s_blocksize; |
i_sb | 424 | fs/ext2/namei.c | inode->i_blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 432 | fs/ext2/namei.c | de->rec_len = inode->i_sb->s_blocksize - EXT2_DIR_REC_LEN(1); |
i_sb | 474 | fs/ext2/namei.c | sb = inode->i_sb; |
i_sb | 532 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
i_sb | 587 | fs/ext2/namei.c | if (!(inode = iget (dir->i_sb, de->inode))) |
i_sb | 636 | fs/ext2/namei.c | for (l = 0; l < inode->i_sb->s_blocksize - 1 && |
i_sb | 659 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname ++))) |
i_sb | 810 | fs/ext2/namei.c | old_inode = iget (old_dir->i_sb, old_de->inode); |
i_sb | 820 | fs/ext2/namei.c | new_inode = iget (new_dir->i_sb, new_de->inode); |
i_sb | 934 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
i_sb | 935 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
i_sb | 936 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
i_sb | 939 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
i_sb | 940 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
i_sb | 103 | fs/ext2/symlink.c | if (buflen > inode->i_sb->s_blocksize - 1) |
i_sb | 104 | fs/ext2/symlink.c | buflen = inode->i_sb->s_blocksize - 1; |
i_sb | 39 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 40 | fs/ext2/truncate.c | #define DIRECT_BLOCK ((inode->i_size + inode->i_sb->s_blocksize - 1) / \ |
i_sb | 41 | fs/ext2/truncate.c | inode->i_sb->s_blocksize) |
i_sb | 50 | fs/ext2/truncate.c | bh = get_hash_table (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 64 | fs/ext2/truncate.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 76 | fs/ext2/truncate.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 77 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 84 | fs/ext2/truncate.c | ind_bh = bread (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 104 | fs/ext2/truncate.c | inode->i_sb->s_blocksize); |
i_sb | 117 | fs/ext2/truncate.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 133 | fs/ext2/truncate.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 146 | fs/ext2/truncate.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 147 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 154 | fs/ext2/truncate.c | dind_bh = bread (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 189 | fs/ext2/truncate.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 201 | fs/ext2/truncate.c | int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); |
i_sb | 202 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
i_sb | 211 | fs/ext2/truncate.c | tind_bh = bread (inode->i_dev, tmp, inode->i_sb->s_blocksize); |
i_sb | 246 | fs/ext2/truncate.c | ext2_free_block (inode->i_sb, tmp); |
i_sb | 264 | fs/ext2/truncate.c | EXT2_ADDR_PER_BLOCK(inode->i_sb), |
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 | 216 | fs/inode.c | if (inode->i_sb && inode->i_sb->s_op && inode->i_sb->s_op->put_inode) { |
i_sb | 217 | fs/inode.c | inode->i_sb->s_op->put_inode(inode); |
i_sb | 349 | 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 | 140 | fs/isofs/dir.c | if((inode->i_sb->u.isofs_sb.s_firstdatazone << BLOCK_SIZE_BITS) != inode->i_ino) |
i_sb | 176 | fs/isofs/dir.c | if(inode->i_sb->u.isofs_sb.s_mapping == 'n') |
i_sb | 282 | fs/isofs/inode.c | high_sierra = inode->i_sb->u.isofs_sb.s_high_sierra; |
i_sb | 322 | fs/isofs/inode.c | inode->i_sb->u.isofs_sb.s_cruft = 'y'; |
i_sb | 329 | fs/isofs/inode.c | if(inode->i_sb->u.isofs_sb.s_cruft == 'y' && |
i_sb | 378 | 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 | 96 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return retval; |
i_sb | 162 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return 0; |
i_sb | 242 | fs/isofs/rock.c | if (!inode->i_sb->u.isofs_sb.s_rock) return 0; |
i_sb | 334 | fs/isofs/rock.c | reloc = iget(inode->i_sb, inode->u.isofs_i.i_first_extent << ISOFS_BUFFER_BITS); |
i_sb | 375 | 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 | 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 | 210 | fs/minix/inode.c | tmp = minix_new_block(inode->i_sb); |
i_sb | 215 | fs/minix/inode.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 258 | fs/minix/inode.c | tmp = minix_new_block(inode->i_sb); |
i_sb | 265 | fs/minix/inode.c | minix_free_block(inode->i_sb,tmp); |
i_sb | 324 | fs/minix/inode.c | if (!ino || ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 329 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
i_sb | 330 | fs/minix/inode.c | inode->i_sb->u.minix_sb.s_zmap_blocks + |
i_sb | 372 | fs/minix/inode.c | if (!ino || ino >= inode->i_sb->u.minix_sb.s_ninodes) { |
i_sb | 378 | 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 | 315 | fs/minix/namei.c | if (!dir || !dir->i_sb) { |
i_sb | 319 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
i_sb | 386 | fs/minix/namei.c | if (!inode || !inode->i_sb) |
i_sb | 388 | fs/minix/namei.c | info = &inode->i_sb->u.minix_sb; |
i_sb | 447 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 498 | fs/minix/namei.c | if (!(inode = iget(dir->i_sb, de->inode))) |
i_sb | 675 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
i_sb | 692 | fs/minix/namei.c | old_inode = iget(old_dir->i_sb, old_de->inode); |
i_sb | 702 | 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 | 230 | fs/msdos/fat.c | if ((this = fat_access(inode->i_sb,this,-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 ((this = fat_access(inode->i_sb,this,-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 (!(this = fat_access(inode->i_sb,this,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 | 211 | 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 | 290 | fs/msdos/inode.c | sb = MSDOS_SB(inode->i_sb); |
i_sb | 313 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
i_sb | 314 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
i_sb | 316 | fs/msdos/inode.c | inode->i_mode = (0777 & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_sb | 321 | fs/msdos/inode.c | inode->i_size = MSDOS_SB(inode->i_sb)->dir_entries* |
i_sb | 323 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size* |
i_sb | 326 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 341 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFDIR; |
i_sb | 356 | fs/msdos/inode.c | i_sb)->cluster_size; |
i_sb | 357 | fs/msdos/inode.c | if (!(this = fat_access(inode->i_sb,this,-1))) |
i_sb | 364 | fs/msdos/inode.c | ? 0666 : 0777) & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
i_sb | 366 | fs/msdos/inode.c | inode->i_op = MSDOS_CAN_BMAP(MSDOS_SB(inode->i_sb)) ? |
i_sb | 373 | fs/msdos/inode.c | MSDOS_I(inode)->i_binary = is_binary(MSDOS_SB(inode->i_sb)->conversion, |
i_sb | 377 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size*SECTOR_SIZE; |
i_sb | 379 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
i_sb | 424 | fs/msdos/inode.c | if ((flags & NOTIFY_UIDGID) && (inode->i_uid != MSDOS_SB(inode->i_sb)-> |
i_sb | 425 | fs/msdos/inode.c | fs_uid || inode->i_gid != MSDOS_SB(inode->i_sb)->fs_gid)) { |
i_sb | 426 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
i_sb | 427 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
i_sb | 431 | fs/msdos/inode.c | return MSDOS_SB(inode->i_sb)->quiet ? 0 : error; |
i_sb | 440 | fs/msdos/inode.c | & ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IRUSR) >> 6)*0111)) & |
i_sb | 441 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask; |
i_sb | 442 | 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 | this = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
i_sb | 122 | fs/msdos/misc.c | if (fat_access(inode->i_sb,this,-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,this,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,this,-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,this); |
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+(this-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,&this,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 | 180 | fs/msdos/namei.c | if ((*result = iget(dir->i_sb,ino)) != NULL) |
i_sb | 200 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 247 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
i_sb | 290 | fs/msdos/namei.c | fs_panic(dir->i_sb,"rmdir in mkdir failed"); |
i_sb | 335 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) goto rmdir_done; |
i_sb | 369 | fs/msdos/namei.c | if (!(inode = iget(dir->i_sb,ino))) { |
i_sb | 406 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
i_sb | 432 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
i_sb | 433 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
i_sb | 453 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,new_dir->i_ino))) return -EIO; |
i_sb | 459 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,ino))) return -EIO; |
i_sb | 469 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
i_sb | 482 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
i_sb | 504 | fs/msdos/namei.c | if (!(free_inode = iget(new_dir->i_sb,free_ino))) { |
i_sb | 536 | fs/msdos/namei.c | if (!(dotdot_inode = iget(old_inode->i_sb,dotdot_ino))) { |
i_sb | 568 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
i_sb | 570 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(new_dir->i_sb)->name_check, |
i_sb | 113 | fs/namei.c | } else if ((sb = dir->i_sb) && (dir == sb->s_mounted)) { |
i_sb | 114 | fs/namei.c | sb = dir->i_sb; |
i_sb | 319 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
i_sb | 353 | fs/nfs/dir.c | if (!(*result = nfs_fhget(dir->i_sb, &fhandle, &fattr))) { |
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 | 123 | fs/proc/base.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 68 | fs/proc/fd.c | sb = dir->i_sb; |
i_sb | 115 | fs/proc/root.c | if (!(*result = iget(dir->i_sb,ino))) { |
i_sb | 253 | fs/super.c | if (!inode || !inode->i_sb || inode != inode->i_sb->s_mounted) { |
i_sb | 257 | fs/super.c | dev = inode->i_sb->s_dev; |
i_sb | 340 | fs/super.c | if (dir_i != dir_i->i_sb->s_mounted) { |
i_sb | 344 | fs/super.c | dir_i->i_sb->s_flags = (dir_i->i_sb->s_flags & ~MS_RMT_MASK) | |
i_sb | 290 | fs/xiafs/bitmap.c | if (!inode->i_dev || inode->i_count!=1 || inode->i_nlink || !inode->i_sb || |
i_sb | 291 | fs/xiafs/bitmap.c | inode->i_ino < 3 || inode->i_ino > inode->i_sb->u.xiafs_sb.s_ninodes) { |
i_sb | 295 | fs/xiafs/bitmap.c | bh = get_imap_zone(inode->i_sb, inode->i_ino, NULL); |
i_sb | 298 | fs/xiafs/bitmap.c | tmp = inode->i_ino & (XIAFS_BITS_PER_Z(inode->i_sb)-1); |
i_sb | 303 | fs/xiafs/bitmap.c | xiafs_unlock_super(inode->i_sb, inode->i_sb->u.xiafs_sb.s_imap_cached); |
i_sb | 313 | fs/xiafs/bitmap.c | sb = dir->i_sb; |
i_sb | 316 | fs/xiafs/bitmap.c | inode->i_sb = sb; |
i_sb | 317 | fs/xiafs/bitmap.c | inode->i_flags = inode->i_sb->s_flags; |
i_sb | 334 | 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 | 148 | fs/xiafs/file.c | if (left < XIAFS_ZSIZE(inode->i_sb) - offset) |
i_sb | 151 | fs/xiafs/file.c | chars = XIAFS_ZSIZE(inode->i_sb) - offset; |
i_sb | 211 | fs/xiafs/file.c | bh = xiafs_getblk(inode, pos >> XIAFS_ZSIZE_BITS(inode->i_sb), 1); |
i_sb | 217 | fs/xiafs/file.c | c = XIAFS_ZSIZE(inode->i_sb) - (pos & (XIAFS_ZSIZE(inode->i_sb) - 1)); |
i_sb | 220 | fs/xiafs/file.c | if (c != XIAFS_ZSIZE(inode->i_sb) && !bh->b_uptodate) { |
i_sb | 230 | fs/xiafs/file.c | cp = (pos & (XIAFS_ZSIZE(inode->i_sb)-1)) + bh->b_data; |
i_sb | 179 | fs/xiafs/inode.c | if (zone >= 8+(1+XIAFS_ADDRS_PER_Z(inode->i_sb))*XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 190 | fs/xiafs/inode.c | if (zone < XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 193 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i_sb | 196 | fs/xiafs/inode.c | zone -= XIAFS_ADDRS_PER_Z(inode->i_sb); |
i_sb | 199 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i_sb | 200 | fs/xiafs/inode.c | zone >> XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)); |
i_sb | 202 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i_sb | 203 | fs/xiafs/inode.c | zone & (XIAFS_ADDRS_PER_Z(inode->i_sb)-1)); |
i_sb | 215 | fs/xiafs/inode.c | random_nr=(random_nr+23)%inode->i_sb->u.xiafs_sb.s_ndatazones; |
i_sb | 216 | fs/xiafs/inode.c | return random_nr + inode->i_sb->u.xiafs_sb.s_firstdatazone; |
i_sb | 227 | fs/xiafs/inode.c | result = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 235 | fs/xiafs/inode.c | tmp = xiafs_new_zone(inode->i_sb, prev_addr); |
i_sb | 238 | fs/xiafs/inode.c | result = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 240 | fs/xiafs/inode.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 245 | fs/xiafs/inode.c | inode->i_blocks+=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 270 | fs/xiafs/inode.c | result = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 282 | fs/xiafs/inode.c | tmp = xiafs_new_zone(inode->i_sb, prev_addr); |
i_sb | 287 | fs/xiafs/inode.c | result = getblk(bh->b_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 289 | fs/xiafs/inode.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 294 | fs/xiafs/inode.c | inode->i_blocks+=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 309 | fs/xiafs/inode.c | if (zone >= 8+(1+XIAFS_ADDRS_PER_Z(inode->i_sb))*XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 319 | fs/xiafs/inode.c | if (zone < XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 324 | fs/xiafs/inode.c | zone -= XIAFS_ADDRS_PER_Z(inode->i_sb); |
i_sb | 326 | fs/xiafs/inode.c | bh = indt_getblk(inode, bh, zone>>XIAFS_ADDRS_PER_Z_BITS(inode->i_sb), |
i_sb | 328 | fs/xiafs/inode.c | bh = indt_getblk(inode, bh, zone&(XIAFS_ADDRS_PER_Z(inode->i_sb)-1), |
i_sb | 358 | fs/xiafs/inode.c | if (!ino || ino > inode->i_sb->u.xiafs_sb.s_ninodes) { |
i_sb | 362 | fs/xiafs/inode.c | zone = 1 + inode->i_sb->u.xiafs_sb.s_imap_zones + |
i_sb | 363 | fs/xiafs/inode.c | inode->i_sb->u.xiafs_sb.s_zmap_zones + |
i_sb | 364 | fs/xiafs/inode.c | (ino-1)/ XIAFS_INODES_PER_Z(inode->i_sb); |
i_sb | 365 | fs/xiafs/inode.c | if (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) { |
i_sb | 370 | fs/xiafs/inode.c | ((ino-1) & (XIAFS_INODES_PER_Z(inode->i_sb) - 1)); |
i_sb | 379 | fs/xiafs/inode.c | inode->i_blksize = XIAFS_ZSIZE(inode->i_sb); |
i_sb | 419 | fs/xiafs/inode.c | if (!ino || ino > inode->i_sb->u.xiafs_sb.s_ninodes) { |
i_sb | 424 | fs/xiafs/inode.c | zone = 1 + inode->i_sb->u.xiafs_sb.s_imap_zones + |
i_sb | 425 | fs/xiafs/inode.c | inode->i_sb->u.xiafs_sb.s_zmap_zones + |
i_sb | 426 | fs/xiafs/inode.c | (ino-1) / XIAFS_INODES_PER_Z(inode->i_sb); |
i_sb | 427 | fs/xiafs/inode.c | if (!(bh=bread(inode->i_dev, zone, XIAFS_ZSIZE(inode->i_sb)))) { |
i_sb | 433 | 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 | 231 | fs/xiafs/namei.c | if (offset > XIAFS_ZSIZE(dir->i_sb)) { |
i_sb | 235 | fs/xiafs/namei.c | pos+=XIAFS_ZSIZE(dir->i_sb); |
i_sb | 353 | fs/xiafs/namei.c | inode->i_size = XIAFS_ZSIZE(dir->i_sb); |
i_sb | 372 | fs/xiafs/namei.c | de->d_rec_len=XIAFS_ZSIZE(dir->i_sb)-12; |
i_sb | 406 | fs/xiafs/namei.c | if (inode->i_size & (XIAFS_ZSIZE(inode->i_sb)-1) ) { |
i_sb | 411 | fs/xiafs/namei.c | zones=inode->i_size >> XIAFS_ZSIZE_BITS(inode->i_sb); |
i_sb | 438 | fs/xiafs/namei.c | while (offset < XIAFS_ZSIZE(inode->i_sb)) { |
i_sb | 440 | fs/xiafs/namei.c | if (de->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes || |
i_sb | 442 | fs/xiafs/namei.c | (char *)de+de->d_rec_len > bh->b_data+XIAFS_ZSIZE(inode->i_sb) || |
i_sb | 493 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
i_sb | 544 | fs/xiafs/namei.c | if (!(inode = iget(dir->i_sb, de->d_ino))) |
i_sb | 723 | fs/xiafs/namei.c | old_inode = iget(old_dir->i_sb, old_de->d_ino); |
i_sb | 733 | fs/xiafs/namei.c | new_inode = iget(new_dir->i_sb, new_de->d_ino); |
i_sb | 36 | fs/xiafs/truncate.c | #define DT_ZONE ((inode->i_size + XIAFS_ZSIZE(inode->i_sb) - 1) \ |
i_sb | 37 | fs/xiafs/truncate.c | >> XIAFS_ZSIZE_BITS(inode->i_sb) ) |
i_sb | 53 | fs/xiafs/truncate.c | bh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 63 | fs/xiafs/truncate.c | inode->i_blocks-=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 64 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 83 | fs/xiafs/truncate.c | ind_bh = bread(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 93 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i_sb | 99 | fs/xiafs/truncate.c | bh = getblk(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 109 | fs/xiafs/truncate.c | inode->i_blocks-= 2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 110 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 115 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i_sb | 116 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 122 | fs/xiafs/truncate.c | inode->i_blocks-= 2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 123 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 134 | fs/xiafs/truncate.c | ((DT_ZONE-XIAFS_ADDRS_PER_Z(inode->i_sb)-8)>>XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)) |
i_sb | 144 | fs/xiafs/truncate.c | dind_bh = bread(inode->i_dev, tmp, XIAFS_ZSIZE(inode->i_sb)); |
i_sb | 154 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i_sb | 159 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i_sb | 164 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i_sb | 165 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i_sb | 172 | fs/xiafs/truncate.c | inode->i_blocks-=2 << XIAFS_ZSHIFT(inode->i_sb); |
i_sb | 173 | fs/xiafs/truncate.c | xiafs_free_zone(inode->i_sb, tmp); |
i_sb | 113 | include/linux/fs.h | #define IS_RDONLY(inode) (((inode)->i_sb) && ((inode)->i_sb->s_flags & MS_RDONLY)) |
i_sb | 182 | 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) |