Home | History | Annotate | Download | only in ext4_utils

Lines Matching full:inode

675 /* Returns an ext4_inode structure for an inode number */
676 struct ext4_inode *get_inode(u32 inode)
678 inode -= 1;
679 int bg = inode / info.inodes_per_group;
680 inode %= info.inodes_per_group;
683 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode *
691 u32 inode;
697 inode
698 aux_info.bgs[bg].inode_bitmap[inode / 8] |= 1 << (inode % 8);
701 inode = aux_info.bgs[bg].first_free_inode;
706 return inode;
709 /* Returns the first free inode number
714 u32 inode;
717 inode = reserve_inodes(bg, 1);
718 if (inode != EXT4_ALLOCATE_FAILED)
719 return bg * info.inodes_per_group + inode;
731 /* Increments the directory count of the block group that contains inode */
732 void add_directory(u32 inode)
734 int bg = (inode - 1) / info.inodes_per_group;