Lines Matching refs:dire
143 struct squashfs_dir_entry *dire; in squashfs_lookup() local
150 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_lookup()
151 if (dire == NULL) { in squashfs_lookup()
182 err = squashfs_read_metadata(dir->i_sb, dire, &block, in squashfs_lookup()
183 &offset, sizeof(*dire)); in squashfs_lookup()
187 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()
224 kfree(dire); in squashfs_lookup()
235 kfree(dire); in squashfs_lookup()