Lines Matching refs:inodes_per_block
433 unsigned int inodes_in_buf, inodes_per_block; in check_inode_block_sanity() local
452 inodes_per_block = EXT2_INODES_PER_BLOCK(scan->fs->super); in check_inode_block_sanity()
454 if (inodes_per_block < 2) in check_inode_block_sanity()
485 if (badness > inodes_per_block / 2) { in check_inode_block_sanity()
489 ino_adj = inodes_per_block - in check_inode_block_sanity()
490 ((ino - 1) % inodes_per_block); in check_inode_block_sanity()
500 if ((ino % inodes_per_block) == 0) { in check_inode_block_sanity()
762 int clen, inodes_per_block; in ext2fs_read_inode2() local
797 inodes_per_block = fs->blocksize / EXT2_INODE_SIZE(fs->super); in ext2fs_read_inode2()
799 block_nr += (ino - 1) / inodes_per_block; in ext2fs_read_inode2()
800 offset = ((ino - 1) % inodes_per_block) * in ext2fs_read_inode2()