Lines Matching refs:ino
73 fs->icache->cache[i].ino = 0; in ext2fs_flush_icache()
144 errcode_t (*save_get_blocks)(ext2_filsys f, ext2_ino_t ino, blk_t *blocks); in ext2fs_open_inode_scan()
431 ext2_ino_t ino, inodes_to_scan; in check_inode_block_sanity() local
448 ino = scan->current_inode + 1; in check_inode_block_sanity()
464 bad_csum = ext2fs_inode_csum_verify(scan->fs, ino, in check_inode_block_sanity()
490 ((ino - 1) % inodes_per_block); in check_inode_block_sanity()
495 ino += ino_adj; in check_inode_block_sanity()
500 if ((ino % inodes_per_block) == 0) { in check_inode_block_sanity()
507 ino++; in check_inode_block_sanity()
597 errcode_t ext2fs_get_next_inode_full(ext2_inode_scan scan, ext2_ino_t *ino, in ext2fs_get_next_inode_full() argument
624 *ino = 0; in ext2fs_get_next_inode_full()
734 *ino = scan->current_inode; in ext2fs_get_next_inode_full()
742 errcode_t ext2fs_get_next_inode(ext2_inode_scan scan, ext2_ino_t *ino, in ext2fs_get_next_inode() argument
745 return ext2fs_get_next_inode_full(scan, ino, inode, in ext2fs_get_next_inode()
752 errcode_t ext2fs_read_inode2(ext2_filsys fs, ext2_ino_t ino, in ext2fs_read_inode2() argument
776 retval = (fs->read_inode)(fs, ino, inode); in ext2fs_read_inode2()
780 if ((ino == 0) || (ino > fs->super->s_inodes_count)) in ext2fs_read_inode2()
790 if (fs->icache->cache[i].ino == ino) { 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()
804 group = (ino - 1) / EXT2_INODES_PER_GROUP(fs->super); in ext2fs_read_inode2()
807 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(fs->super)) * in ext2fs_read_inode2()
850 fail_csum = !ext2fs_inode_csum_verify(fs, ino, iptr); in ext2fs_read_inode2()
861 fs->icache->cache[cache_slot].ino = ino; in ext2fs_read_inode2()
872 errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, in ext2fs_read_inode_full() argument
875 return ext2fs_read_inode2(fs, ino, inode, bufsize, 0); in ext2fs_read_inode_full()
878 errcode_t ext2fs_read_inode(ext2_filsys fs, ext2_ino_t ino, in ext2fs_read_inode() argument
881 return ext2fs_read_inode2(fs, ino, inode, in ext2fs_read_inode()
885 errcode_t ext2fs_write_inode2(ext2_filsys fs, ext2_ino_t ino, in ext2fs_write_inode2() argument
903 retval = (fs->write_inode)(fs, ino, inode); in ext2fs_write_inode2()
908 if ((ino == 0) || (ino > fs->super->s_inodes_count)) in ext2fs_write_inode2()
917 retval = ext2fs_read_inode2(fs, ino, in ext2fs_write_inode2()
927 if (fs->icache->cache[i].ino == ino) { in ext2fs_write_inode2()
950 retval = ext2fs_inode_csum_set(fs, ino, w_inode); in ext2fs_write_inode2()
955 group = (ino - 1) / EXT2_INODES_PER_GROUP(fs->super); in ext2fs_write_inode2()
956 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(fs->super)) * in ext2fs_write_inode2()
1010 errcode_t ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino, in ext2fs_write_inode_full() argument
1013 return ext2fs_write_inode2(fs, ino, inode, bufsize, 0); in ext2fs_write_inode_full()
1016 errcode_t ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino, in ext2fs_write_inode() argument
1019 return ext2fs_write_inode2(fs, ino, inode, in ext2fs_write_inode()
1027 errcode_t ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino, in ext2fs_write_new_inode() argument
1044 return ext2fs_write_inode_full(fs, ino, inode, in ext2fs_write_new_inode()
1060 retval = ext2fs_write_inode_full(fs, ino, buf, size); in ext2fs_write_new_inode()
1066 errcode_t ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks) in ext2fs_get_blocks() argument
1074 if (ino > fs->super->s_inodes_count) in ext2fs_get_blocks()
1078 if (!(*fs->get_blocks)(fs, ino, blocks)) in ext2fs_get_blocks()
1081 retval = ext2fs_read_inode(fs, ino, &inode); in ext2fs_get_blocks()
1089 errcode_t ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino) in ext2fs_check_directory() argument
1096 if (ino > fs->super->s_inodes_count) in ext2fs_check_directory()
1100 retval = (fs->check_directory)(fs, ino); in ext2fs_check_directory()
1104 retval = ext2fs_read_inode(fs, ino, &inode); in ext2fs_check_directory()