Lines Matching refs:dire
134 struct squashfs_dir_entry *dire; in squashfs_lookup() local
142 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_lookup()
143 if (dire == NULL) { in squashfs_lookup()
178 err = squashfs_read_metadata(dir->i_sb, dire, &block, in squashfs_lookup()
179 &offset, sizeof(*dire)); in squashfs_lookup()
183 size = le16_to_cpu(dire->size) + 1; in squashfs_lookup()
189 err = squashfs_read_metadata(dir->i_sb, dire->name, in squashfs_lookup()
194 length += sizeof(*dire) + size; in squashfs_lookup()
196 if (name[0] < dire->name[0]) in squashfs_lookup()
199 if (len == size && !strncmp(name, dire->name, len)) { in squashfs_lookup()
203 off = le16_to_cpu(dire->offset); in squashfs_lookup()
205 (short) le16_to_cpu(dire->inode_number); in squashfs_lookup()
219 kfree(dire); in squashfs_lookup()
230 kfree(dire); in squashfs_lookup()