Searched refs:dire (Results 1 – 3 of 3) sorted by relevance
/fs/squashfs/ |
D | dir.c | 105 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 …]
|
D | namei.c | 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() [all …]
|
/fs/afs/ |
D | dir.c | 351 union afs_xdr_dirent *dire; in afs_dir_iterate_block() local 379 dire = &block->dirents[offset]; in afs_dir_iterate_block() 380 nlen = strnlen(dire->u.name, in afs_dir_iterate_block() 387 nlen, dire->u.name); in afs_dir_iterate_block() 423 dire->u.name[0] == '.' && in afs_dir_iterate_block() 426 memcmp(dire->u.name, ".__afs", 6) == 0) { in afs_dir_iterate_block() 432 if (!dir_emit(ctx, dire->u.name, nlen, in afs_dir_iterate_block() 433 ntohl(dire->u.vnode), in afs_dir_iterate_block() 436 ntohl(dire->u.unique) : DT_UNKNOWN)) { in afs_dir_iterate_block()
|