Searched refs:dire (Results 1 – 3 of 3) sorted by relevance
/linux-4.19.296/fs/squashfs/ |
D | dir.c | 118 struct squashfs_dir_entry *dire; in squashfs_readdir() local 122 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_readdir() 123 if (dire == NULL) { in squashfs_readdir() 183 err = squashfs_read_metadata(inode->i_sb, dire, &block, in squashfs_readdir() 184 &offset, sizeof(*dire)); in squashfs_readdir() 188 size = le16_to_cpu(dire->size) + 1; in squashfs_readdir() 194 err = squashfs_read_metadata(inode->i_sb, dire->name, in squashfs_readdir() 199 length += sizeof(*dire) + size; in squashfs_readdir() 204 dire->name[size] = '\0'; in squashfs_readdir() 206 ((short) le16_to_cpu(dire->inode_number)); in squashfs_readdir() [all …]
|
D | namei.c | 147 struct squashfs_dir_entry *dire; in squashfs_lookup() local 155 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_lookup() 156 if (dire == NULL) { in squashfs_lookup() 191 err = squashfs_read_metadata(dir->i_sb, dire, &block, in squashfs_lookup() 192 &offset, sizeof(*dire)); in squashfs_lookup() 196 size = le16_to_cpu(dire->size) + 1; in squashfs_lookup() 202 err = squashfs_read_metadata(dir->i_sb, dire->name, in squashfs_lookup() 207 length += sizeof(*dire) + size; in squashfs_lookup() 209 if (name[0] < dire->name[0]) in squashfs_lookup() 212 if (len == size && !strncmp(name, dire->name, len)) { in squashfs_lookup() [all …]
|
/linux-4.19.296/fs/afs/ |
D | dir.c | 322 union afs_xdr_dirent *dire; in afs_dir_iterate_block() local 350 dire = &block->dirents[offset]; in afs_dir_iterate_block() 351 nlen = strnlen(dire->u.name, in afs_dir_iterate_block() 358 nlen, dire->u.name); in afs_dir_iterate_block() 393 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block() 394 ntohl(dire->u.vnode), in afs_dir_iterate_block() 397 ntohl(dire->u.unique) : DT_UNKNOWN)) { in afs_dir_iterate_block()
|