Lines Matching refs:parent_inode
631 static int search_dir(struct ext2_inode *parent_inode, char *dirname) in search_dir() argument
644 directory_blocks = le32_to_cpu(parent_inode->size) >> in search_dir()
653 blknr = read_allocated_block(parent_inode, blk_idx, NULL); in search_dir()
764 struct ext2_inode *parent_inode = NULL; in ext4fs_get_parent_inode_num() local
791 parent_inode = zalloc(sizeof(struct ext2_inode)); in ext4fs_get_parent_inode_num()
792 if (!parent_inode) in ext4fs_get_parent_inode_num()
797 memcpy(parent_inode, ext4fs_root->inode, sizeof(struct ext2_inode)); in ext4fs_get_parent_inode_num()
798 memcpy(first_inode, parent_inode, sizeof(struct ext2_inode)); in ext4fs_get_parent_inode_num()
802 matched_inode_no = search_dir(parent_inode, ptr[i]); in ext4fs_get_parent_inode_num()
816 memset(parent_inode, '\0', in ext4fs_get_parent_inode_num()
819 parent_inode)) { in ext4fs_get_parent_inode_num()
834 matched_inode_no = search_dir(parent_inode, ptr[i]); in ext4fs_get_parent_inode_num()
860 free(parent_inode); in ext4fs_get_parent_inode_num()