Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 15 of 15) sorted by relevance

/fs/
Dreaddir.c139 struct old_linux_dirent __user * dirent; member
148 struct old_linux_dirent __user * dirent; in fillonedir() local
162 dirent = buf->dirent; in fillonedir()
163 if (!user_write_access_begin(dirent, in fillonedir()
164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
165 (unsigned long)dirent)) in fillonedir()
167 unsafe_put_user(d_ino, &dirent->d_ino, efault_end); in fillonedir()
168 unsafe_put_user(offset, &dirent->d_offset, efault_end); in fillonedir()
169 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir()
170 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir()
[all …]
/fs/fuse/
Dreaddir.c35 struct fuse_dirent *dirent, loff_t pos) in fuse_add_dirent_to_cache() argument
38 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache()
86 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache()
89 fi->rdc.pos = dirent->off; in fuse_add_dirent_to_cache()
117 struct fuse_dirent *dirent) in fuse_emit() argument
122 fuse_add_dirent_to_cache(file, dirent, ctx->pos); in fuse_emit()
124 return dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in fuse_emit()
125 dirent->type); in fuse_emit()
132 struct fuse_dirent *dirent = (struct fuse_dirent *) buf; in parse_dirfile() local
133 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile()
[all …]
Dbacking.c2340 struct fuse_dirent *dirent = (struct fuse_dirent *) buf; in parse_dirfile() local
2341 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile()
2343 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirfile()
2347 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirfile()
2350 ctx->pos = dirent->off; in parse_dirfile()
2351 if (!dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in parse_dirfile()
2352 dirent->type)) { in parse_dirfile()
/fs/hpfs/
Dalloc.c446 d->dirent[0] = 32; in hpfs_alloc_dnode()
447 d->dirent[2] = 8; in hpfs_alloc_dnode()
448 d->dirent[30] = 1; in hpfs_alloc_dnode()
449 d->dirent[31] = 255; in hpfs_alloc_dnode()
Dhpfs.h300 u8 dirent[2028]; /* one or more dirents */ member
Dhpfs_fn.h116 return (void *) dnode->dirent; in dnode_first_de()
/fs/fat/
Ddir.c544 void __user *dirent; member
713 struct dirent_type __user *d1 = buf->dirent; \
762 void __user *dirent, filldir_t filldir, in FAT_IOCTL_FILLDIR_FUNC()
767 .dirent = dirent in FAT_IOCTL_FILLDIR_FUNC()
771 buf.dirent = dirent; in FAT_IOCTL_FILLDIR_FUNC()
/fs/ext4/
Dnamei.c105 struct ext4_dir_entry *dirent);
131 struct ext4_dir_entry *dirent; in __ext4_read_dirblock() local
162 dirent = (struct ext4_dir_entry *) bh->b_data; in __ext4_read_dirblock()
167 else if (ext4_rec_len_from_disk(dirent->rec_len, in __ext4_read_dirblock()
188 if (ext4_dx_csum_verify(inode, dirent) && in __ext4_read_dirblock()
376 static __le32 ext4_dirblock_csum(struct inode *inode, void *dirent, int size) in ext4_dirblock_csum() argument
382 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dirblock_csum()
443 struct ext4_dir_entry *dirent, in get_dx_countlimit() argument
450 unsigned int rlen = ext4_rec_len_from_disk(dirent->rec_len, blocksize); in get_dx_countlimit()
455 dp = (struct ext4_dir_entry *)(((void *)dirent) + 12); in get_dx_countlimit()
[all …]
Ddir.c462 struct ext4_dir_entry_2 *dirent, in ext4_htree_store_dirent() argument
480 new_fn->inode = le32_to_cpu(dirent->inode); in ext4_htree_store_dirent()
482 new_fn->file_type = dirent->file_type; in ext4_htree_store_dirent()
Dext4.h2840 struct ext4_dir_entry_2 *dirent,
/fs/nfsd/
Dvfs.c1954 char *dirent; member
1965 struct buffered_dirent *de = (void *)(buf->dirent + buf->used); in nfsd_buffered_filldir()
1994 .dirent = (void *)__get_free_page(GFP_KERNEL) in nfsd_buffered_readdir()
1997 if (!buf.dirent) in nfsd_buffered_readdir()
2021 de = (struct buffered_dirent *)buf.dirent; in nfsd_buffered_readdir()
2045 free_page((unsigned long)(buf.dirent)); in nfsd_buffered_readdir()
/fs/ksmbd/
Dvfs.h97 char *dirent; member
/fs/hostfs/
Dhostfs_user.c112 struct dirent *ent; in read_dir()
/fs/jffs2/
DREADME.Locking127 determine whether the 'deletion dirent' under consideration can be
/fs/jfs/
Djfs_dtree.c2978 static inline struct jfs_dirent *next_jfs_dirent(struct jfs_dirent *dirent) in next_jfs_dirent() argument
2981 ((char *)dirent + in next_jfs_dirent()
2982 ((sizeof (struct jfs_dirent) + dirent->name_len + 1 + in next_jfs_dirent()