Home
last modified time | relevance | path

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

/fs/squashfs/
Ddir.c113 struct squashfs_dir_entry *dire; in squashfs_readdir() local
117 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_readdir()
118 if (dire == NULL) { in squashfs_readdir()
180 err = squashfs_read_metadata(inode->i_sb, dire, &block, in squashfs_readdir()
181 &offset, sizeof(*dire)); in squashfs_readdir()
185 size = le16_to_cpu(dire->size) + 1; in squashfs_readdir()
187 err = squashfs_read_metadata(inode->i_sb, dire->name, in squashfs_readdir()
192 length += sizeof(*dire) + size; in squashfs_readdir()
197 dire->name[size] = '\0'; in squashfs_readdir()
199 ((short) le16_to_cpu(dire->inode_number)); in squashfs_readdir()
[all …]
Dnamei.c143 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()
[all …]
/fs/afs/
Ddir.c240 union afs_dirent *dire; in afs_dir_iterate_block() local
268 dire = &block->dirents[offset]; in afs_dir_iterate_block()
269 nlen = strnlen(dire->u.name, in afs_dir_iterate_block()
276 nlen, dire->u.name); in afs_dir_iterate_block()
309 dire->u.name, in afs_dir_iterate_block()
312 ntohl(dire->u.vnode), in afs_dir_iterate_block()
314 ntohl(dire->u.unique) : DT_UNKNOWN); in afs_dir_iterate_block()