Home
last modified time | relevance | path

Searched refs:dire (Results 1 – 3 of 3) sorted by relevance

/fs/squashfs/
Ddir.c105 struct squashfs_dir_entry *dire; in squashfs_readdir() local
109 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_readdir()
110 if (dire == NULL) { in squashfs_readdir()
170 err = squashfs_read_metadata(inode->i_sb, dire, &block, in squashfs_readdir()
171 &offset, sizeof(*dire)); in squashfs_readdir()
175 size = le16_to_cpu(dire->size) + 1; in squashfs_readdir()
181 err = squashfs_read_metadata(inode->i_sb, dire->name, in squashfs_readdir()
186 length += sizeof(*dire) + size; in squashfs_readdir()
191 dire->name[size] = '\0'; in squashfs_readdir()
193 ((short) le16_to_cpu(dire->inode_number)); in squashfs_readdir()
[all …]
Dnamei.c134 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()
[all …]
/fs/afs/
Ddir.c354 union afs_xdr_dirent *dire; in afs_dir_iterate_block() local
382 dire = &block->dirents[offset]; in afs_dir_iterate_block()
383 nlen = strnlen(dire->u.name, in afs_dir_iterate_block()
390 nlen, dire->u.name); in afs_dir_iterate_block()
425 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block()
426 ntohl(dire->u.vnode), in afs_dir_iterate_block()
429 ntohl(dire->u.unique) : DT_UNKNOWN)) { in afs_dir_iterate_block()