Lines Matching refs:fdiro
2041 struct ext2fs_node *fdiro; in ext4fs_iterate_dir() local
2052 fdiro = zalloc(sizeof(struct ext2fs_node)); in ext4fs_iterate_dir()
2053 if (!fdiro) in ext4fs_iterate_dir()
2056 fdiro->data = diro->data; in ext4fs_iterate_dir()
2057 fdiro->ino = le32_to_cpu(dirent.inode); in ext4fs_iterate_dir()
2062 fdiro->inode_read = 0; in ext4fs_iterate_dir()
2074 &fdiro->inode); in ext4fs_iterate_dir()
2076 free(fdiro); in ext4fs_iterate_dir()
2079 fdiro->inode_read = 1; in ext4fs_iterate_dir()
2081 if ((le16_to_cpu(fdiro->inode.mode) & in ext4fs_iterate_dir()
2085 } else if ((le16_to_cpu(fdiro->inode.mode) in ext4fs_iterate_dir()
2089 } else if ((le16_to_cpu(fdiro->inode.mode) in ext4fs_iterate_dir()
2102 *fnode = fdiro; in ext4fs_iterate_dir()
2106 if (fdiro->inode_read == 0) { in ext4fs_iterate_dir()
2110 &fdiro->inode); in ext4fs_iterate_dir()
2112 free(fdiro); in ext4fs_iterate_dir()
2115 fdiro->inode_read = 1; in ext4fs_iterate_dir()
2132 le32_to_cpu(fdiro->inode.size), in ext4fs_iterate_dir()
2135 free(fdiro); in ext4fs_iterate_dir()
2300 struct ext2fs_node *fdiro = NULL; in ext4fs_open() local
2307 status = ext4fs_find_file(filename, &ext4fs_root->diropen, &fdiro, in ext4fs_open()
2312 if (!fdiro->inode_read) { in ext4fs_open()
2313 status = ext4fs_read_inode(fdiro->data, fdiro->ino, in ext4fs_open()
2314 &fdiro->inode); in ext4fs_open()
2318 *len = le32_to_cpu(fdiro->inode.size); in ext4fs_open()
2319 ext4fs_file = fdiro; in ext4fs_open()
2323 ext4fs_free_node(fdiro, &ext4fs_root->diropen); in ext4fs_open()