Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 17 of 17) 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.c2341 struct fuse_dirent *dirent = (struct fuse_dirent *) buf; in parse_dirfile() local
2342 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile()
2344 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirfile()
2348 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirfile()
2351 ctx->pos = dirent->off; in parse_dirfile()
2352 if (!dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in parse_dirfile()
2353 dirent->type)) { in parse_dirfile()
/fs/smb/client/
Dcached_dir.c554 struct cached_dirent *dirent, *q; in free_cached_dir() local
562 list_for_each_entry_safe(dirent, q, &cfid->dirents.entries, entry) { in free_cached_dir()
563 list_del(&dirent->entry); in free_cached_dir()
564 kfree(dirent->name); in free_cached_dir()
565 kfree(dirent); in free_cached_dir()
Dreaddir.c848 struct cached_dirent *dirent; in emit_cached_dirents() local
851 list_for_each_entry(dirent, &cde->entries, entry) { in emit_cached_dirents()
856 if (ctx->pos > dirent->pos) in emit_cached_dirents()
870 ctx->pos = dirent->pos; in emit_cached_dirents()
871 rc = dir_emit(ctx, dirent->name, dirent->namelen, in emit_cached_dirents()
872 dirent->fattr.cf_uniqueid, in emit_cached_dirents()
873 dirent->fattr.cf_dtype); in emit_cached_dirents()
/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.c461 struct ext4_dir_entry_2 *dirent, in ext4_htree_store_dirent() argument
479 new_fn->inode = le32_to_cpu(dirent->inode); in ext4_htree_store_dirent()
481 new_fn->file_type = dirent->file_type; in ext4_htree_store_dirent()
Dext4.h2809 struct ext4_dir_entry_2 *dirent,
/fs/nfsd/
Dvfs.c1865 char *dirent; member
1876 struct buffered_dirent *de = (void *)(buf->dirent + buf->used); in nfsd_buffered_filldir()
1905 .dirent = (void *)__get_free_page(GFP_KERNEL) in nfsd_buffered_readdir()
1908 if (!buf.dirent) in nfsd_buffered_readdir()
1932 de = (struct buffered_dirent *)buf.dirent; in nfsd_buffered_readdir()
1956 free_page((unsigned long)(buf.dirent)); in nfsd_buffered_readdir()
/fs/smb/server/
Dvfs.h58 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.c2680 static inline struct jfs_dirent *next_jfs_dirent(struct jfs_dirent *dirent) in next_jfs_dirent() argument
2683 ((char *)dirent + in next_jfs_dirent()
2684 ((sizeof (struct jfs_dirent) + dirent->name_len + 1 + in next_jfs_dirent()