Lines Matching refs:ino
349 static int32_t get_itable_entry(struct ext2_data *fs, uint32_t ino) in get_itable_entry() argument
352 uint32_t ino_group = (ino - 1) / fs->sblock.s_inodes_per_group; in get_itable_entry()
353 uint32_t ino_index = (ino - 1) % fs->sblock.s_inodes_per_group; in get_itable_entry()
377 int ext2_fetch_inode(struct ext2_data *fs, uint32_t ino, struct ext2_inode *inode) in ext2_fetch_inode() argument
380 int32_t itable_offset = get_itable_entry(fs, ino); in ext2_fetch_inode()
382 LOG_DBG("fetch inode: %d", ino); in ext2_fetch_inode()
395 inode->i_id = ino; in ext2_fetch_inode()
854 int ext2_clear_inode(struct ext2_data *fs, uint32_t ino) in ext2_clear_inode() argument
857 int32_t itable_offset = get_itable_entry(fs, ino); in ext2_clear_inode()
941 static int check_zero_inode(struct ext2_data *fs, uint32_t ino) in check_zero_inode() argument
943 int32_t itable_offset = get_itable_entry(fs, ino); in check_zero_inode()
1097 int ext2_free_inode(struct ext2_data *fs, uint32_t ino, bool directory) in ext2_free_inode() argument
1099 LOG_DBG("Free inode %d", ino); in ext2_free_inode()
1102 uint32_t group = (ino - 1) / fs->sblock.s_inodes_per_group; in ext2_free_inode()
1103 uint32_t bitmap_off = (ino - 1) % fs->sblock.s_inodes_per_group; in ext2_free_inode()
1121 rc = ext2_clear_inode(fs, ino); in ext2_free_inode()
1140 LOG_INF("Inode %d is free", ino); in ext2_free_inode()