• Home
  • Raw
  • Download

Lines Matching refs:inode

64 	struct ext4_inode *inode;  member
83 static struct ext4_xattr_header *xattr_list_find(struct ext4_inode *inode) in xattr_list_find() argument
87 if (element->inode == inode) in xattr_list_find()
93 static void xattr_list_insert(struct ext4_inode *inode, struct ext4_xattr_header *header) in xattr_list_insert() argument
96 element->inode = inode; in xattr_list_insert()
690 struct ext4_inode *get_inode(u32 inode) in get_inode() argument
692 inode -= 1; in get_inode()
693 int bg = inode / info.inodes_per_group; in get_inode()
694 inode %= info.inodes_per_group; in get_inode()
697 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode * in get_inode()
701 struct ext4_xattr_header *get_xattr_block_for_inode(struct ext4_inode *inode) in get_xattr_block_for_inode() argument
703 struct ext4_xattr_header *block = xattr_list_find(inode); in get_xattr_block_for_inode()
717 inode->i_blocks_lo = cpu_to_le32(le32_to_cpu(inode->i_blocks_lo) + (info.block_size / 512)); in get_xattr_block_for_inode()
718 inode->i_file_acl_lo = cpu_to_le32(block_num); in get_xattr_block_for_inode()
726 xattr_list_insert(inode, block); in get_xattr_block_for_inode()
734 u32 inode; in reserve_inodes() local
740 inode = aux_info.bgs[bg].first_free_inode + i - 1; in reserve_inodes()
741 aux_info.bgs[bg].inode_bitmap[inode / 8] |= 1 << (inode % 8); in reserve_inodes()
744 inode = aux_info.bgs[bg].first_free_inode; in reserve_inodes()
749 return inode; in reserve_inodes()
757 u32 inode; in allocate_inode() local
760 inode = reserve_inodes(bg, 1); in allocate_inode()
761 if (inode != EXT4_ALLOCATE_FAILED) in allocate_inode()
762 return bg * info.inodes_per_group + inode; in allocate_inode()
775 void add_directory(u32 inode) in add_directory() argument
777 int bg = (inode - 1) / info.inodes_per_group; in add_directory()