Home
last modified time | relevance | path

Searched refs:dentry (Results 1 – 25 of 1387) sorted by relevance

12345678910>>...56

/Linux-v4.19/include/linux/
Ddcache.h88 struct dentry { struct
93 struct dentry *d_parent; /* parent directory */ argument
135 int (*d_revalidate)(struct dentry *, unsigned int);
136 int (*d_weak_revalidate)(struct dentry *, unsigned int);
137 int (*d_hash)(const struct dentry *, struct qstr *);
138 int (*d_compare)(const struct dentry *,
140 int (*d_delete)(const struct dentry *);
141 int (*d_init)(struct dentry *);
142 void (*d_release)(struct dentry *);
143 void (*d_prune)(struct dentry *);
[all …]
Ddebugfs.h40 extern struct dentry *arch_debugfs_dir;
59 struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
61 struct dentry *debugfs_create_file(const char *name, umode_t mode,
62 struct dentry *parent, void *data,
64 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
65 struct dentry *parent, void *data,
68 struct dentry *debugfs_create_file_size(const char *name, umode_t mode,
69 struct dentry *parent, void *data,
73 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
75 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
[all …]
Devm.h19 extern enum integrity_status evm_verifyxattr(struct dentry *dentry,
24 extern int evm_inode_setattr(struct dentry *dentry, struct iattr *attr);
25 extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid);
26 extern int evm_inode_setxattr(struct dentry *dentry, const char *name,
28 extern void evm_inode_post_setxattr(struct dentry *dentry,
32 extern int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name);
33 extern void evm_inode_post_removexattr(struct dentry *dentry,
54 static inline enum integrity_status evm_verifyxattr(struct dentry *dentry, in evm_verifyxattr() argument
64 static inline int evm_inode_setattr(struct dentry *dentry, struct iattr *attr) in evm_inode_setattr() argument
69 static inline void evm_inode_post_setattr(struct dentry *dentry, int ia_valid) in evm_inode_post_setattr() argument
[all …]
/Linux-v4.19/fs/overlayfs/
Doverlayfs.h91 static inline int ovl_do_rmdir(struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument
93 int err = vfs_rmdir(dir, dentry); in ovl_do_rmdir()
95 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir()
99 static inline int ovl_do_unlink(struct inode *dir, struct dentry *dentry) in ovl_do_unlink() argument
101 int err = vfs_unlink(dir, dentry, NULL); in ovl_do_unlink()
103 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink()
107 static inline int ovl_do_link(struct dentry *old_dentry, struct inode *dir, in ovl_do_link()
108 struct dentry *new_dentry) in ovl_do_link()
116 static inline int ovl_do_create(struct inode *dir, struct dentry *dentry, in ovl_do_create() argument
119 int err = vfs_create(dir, dentry, mode, true); in ovl_do_create()
[all …]
Dutil.c21 int ovl_want_write(struct dentry *dentry) in ovl_want_write() argument
23 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write()
27 void ovl_drop_write(struct dentry *dentry) in ovl_drop_write() argument
29 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write()
33 struct dentry *ovl_workdir(struct dentry *dentry) in ovl_workdir() argument
35 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir()
75 struct dentry *ovl_indexdir(struct super_block *sb) in ovl_indexdir()
109 bool ovl_dentry_remote(struct dentry *dentry) in ovl_dentry_remote() argument
111 return dentry->d_flags & in ovl_dentry_remote()
116 bool ovl_dentry_weird(struct dentry *dentry) in ovl_dentry_weird() argument
[all …]
Dexport.c22 static int ovl_encode_maybe_copy_up(struct dentry *dentry) in ovl_encode_maybe_copy_up() argument
26 if (ovl_dentry_upper(dentry)) in ovl_encode_maybe_copy_up()
29 err = ovl_want_write(dentry); in ovl_encode_maybe_copy_up()
31 err = ovl_copy_up(dentry); in ovl_encode_maybe_copy_up()
32 ovl_drop_write(dentry); in ovl_encode_maybe_copy_up()
37 dentry, err); in ovl_encode_maybe_copy_up()
80 static int ovl_connectable_layer(struct dentry *dentry) in ovl_connectable_layer() argument
82 struct ovl_entry *oe = OVL_E(dentry); in ovl_connectable_layer()
85 if (dentry == dentry->d_sb->s_root) in ovl_connectable_layer()
92 if (ovl_dentry_upper(dentry) && in ovl_connectable_layer()
[all …]
Ddir.c27 static int ovl_set_redirect(struct dentry *dentry, bool samedir);
29 int ovl_cleanup(struct inode *wdir, struct dentry *wdentry) in ovl_cleanup()
48 static struct dentry *ovl_lookup_temp(struct dentry *workdir) in ovl_lookup_temp()
50 struct dentry *temp; in ovl_lookup_temp()
68 static struct dentry *ovl_whiteout(struct dentry *workdir) in ovl_whiteout()
71 struct dentry *whiteout; in ovl_whiteout()
88 int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir, in ovl_cleanup_and_whiteout()
89 struct dentry *dentry) in ovl_cleanup_and_whiteout() argument
92 struct dentry *whiteout; in ovl_cleanup_and_whiteout()
101 if (d_is_dir(dentry)) in ovl_cleanup_and_whiteout()
[all …]
Dcopy_up.c42 int ovl_copy_xattr(struct dentry *old, struct dentry *new) in ovl_copy_xattr()
183 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size()
193 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps()
205 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr()
230 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper) in ovl_encode_real_fh()
286 int ovl_set_origin(struct dentry *dentry, struct dentry *lower, in ovl_set_origin() argument
287 struct dentry *upper) in ovl_set_origin()
306 err = ovl_check_setxattr(dentry, upper, OVL_XATTR_ORIGIN, fh, in ovl_set_origin()
314 static int ovl_set_upper_fh(struct dentry *upper, struct dentry *index) in ovl_set_upper_fh()
334 static int ovl_create_index(struct dentry *dentry, struct dentry *origin, in ovl_create_index() argument
[all …]
/Linux-v4.19/fs/
Ddcache.c107 static inline struct hlist_bl_head *in_lookup_hash(const struct dentry *parent, in in_lookup_hash()
217 static inline int dentry_cmp(const struct dentry *dentry, const unsigned char *ct, unsigned tcount) in dentry_cmp() argument
235 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp()
248 static inline struct external_name *external_name(struct dentry *dentry) in external_name() argument
250 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name()
255 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free() local
257 kmem_cache_free(dentry_cache, dentry); in __d_free()
274 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free_external() local
276 __d_free_external_name(&external_name(dentry)->u.head); in __d_free_external()
278 kmem_cache_free(dentry_cache, dentry); in __d_free_external()
[all …]
Dnamei.c472 dget(path->dentry); in path_get()
484 dput(path->dentry); in path_put()
571 return is_subdir(path->dentry, mnt->mnt_root); in path_connected()
622 path->dentry = NULL; in legitimize_path()
625 if (unlikely(!lockref_get_not_dead(&path->dentry->d_lockref))) { in legitimize_path()
626 path->dentry = NULL; in legitimize_path()
629 return !read_seqcount_retry(&path->dentry->d_seq, seq); in legitimize_path()
670 struct dentry *parent = nd->path.dentry; in unlazy_walk()
689 nd->path.dentry = NULL; in unlazy_walk()
711 static int unlazy_child(struct nameidata *nd, struct dentry *dentry, unsigned seq) in unlazy_child() argument
[all …]
/Linux-v4.19/fs/debugfs/
Dinode.c149 static int debugfs_show_options(struct seq_file *m, struct dentry *root) in debugfs_show_options()
181 static void debugfs_release_dentry(struct dentry *dentry) in debugfs_release_dentry() argument
183 void *fsd = dentry->d_fsdata; in debugfs_release_dentry()
186 kfree(dentry->d_fsdata); in debugfs_release_dentry()
192 f = (debugfs_automount_t)path->dentry->d_fsdata; in debugfs_automount()
193 return f(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount()
236 static struct dentry *debug_mount(struct file_system_type *fs_type, in debug_mount()
263 struct dentry *debugfs_lookup(const char *name, struct dentry *parent) in debugfs_lookup()
265 struct dentry *dentry; in debugfs_lookup() local
273 dentry = lookup_one_len_unlocked(name, parent, strlen(name)); in debugfs_lookup()
[all …]
/Linux-v4.19/drivers/net/wireless/ti/wl1251/
Dwl1251.h160 struct dentry *rootdir;
161 struct dentry *fw_statistics;
163 struct dentry *tx_internal_desc_overflow;
165 struct dentry *rx_out_of_mem;
166 struct dentry *rx_hdr_overflow;
167 struct dentry *rx_hw_stuck;
168 struct dentry *rx_dropped;
169 struct dentry *rx_fcs_err;
170 struct dentry *rx_xfr_hint_trig;
171 struct dentry *rx_path_reset;
[all …]
/Linux-v4.19/fs/autofs/
Droot.c16 static int autofs_dir_symlink(struct inode *, struct dentry *, const char *);
17 static int autofs_dir_unlink(struct inode *, struct dentry *);
18 static int autofs_dir_rmdir(struct inode *, struct dentry *);
19 static int autofs_dir_mkdir(struct inode *, struct dentry *, umode_t);
26 static struct dentry *autofs_lookup(struct inode *,
27 struct dentry *, unsigned int);
30 static void autofs_dentry_release(struct dentry *);
66 static void autofs_add_active(struct dentry *dentry) in autofs_add_active() argument
68 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_add_active()
71 ino = autofs_dentry_ino(dentry); in autofs_add_active()
[all …]
Dexpire.c14 static inline int autofs_can_expire(struct dentry *dentry, in autofs_can_expire() argument
17 struct autofs_info *ino = autofs_dentry_ino(dentry); in autofs_can_expire()
33 struct dentry *dentry, unsigned int how) in autofs_mount_busy() argument
35 struct dentry *top = dentry; in autofs_mount_busy()
36 struct path path = {.mnt = mnt, .dentry = dentry}; in autofs_mount_busy()
39 pr_debug("dentry %p %pd\n", dentry, dentry); in autofs_mount_busy()
46 if (is_autofs_dentry(path.dentry)) { in autofs_mount_busy()
47 struct autofs_sb_info *sbi = autofs_sbi(path.dentry->d_sb); in autofs_mount_busy()
79 static struct dentry *get_next_positive_subdir(struct dentry *prev, in get_next_positive_subdir()
80 struct dentry *root) in get_next_positive_subdir()
[all …]
/Linux-v4.19/fs/ocfs2/
Ddcache.c42 void ocfs2_dentry_attach_gen(struct dentry *dentry) in ocfs2_dentry_attach_gen() argument
45 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen()
46 BUG_ON(d_inode(dentry)); in ocfs2_dentry_attach_gen()
47 dentry->d_fsdata = (void *)gen; in ocfs2_dentry_attach_gen()
51 static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags) in ocfs2_dentry_revalidate() argument
60 inode = d_inode(dentry); in ocfs2_dentry_revalidate()
61 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate()
63 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate()
64 dentry->d_name.name); in ocfs2_dentry_revalidate()
71 unsigned long gen = (unsigned long) dentry->d_fsdata; in ocfs2_dentry_revalidate()
[all …]
/Linux-v4.19/fs/tracefs/
Dinode.c58 static char *get_dname(struct dentry *dentry) in get_dname() argument
62 int len = dentry->d_name.len; in get_dname()
64 dname = dentry->d_name.name; in get_dname()
73 static int tracefs_syscall_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode) in tracefs_syscall_mkdir() argument
78 name = get_dname(dentry); in tracefs_syscall_mkdir()
96 static int tracefs_syscall_rmdir(struct inode *inode, struct dentry *dentry) in tracefs_syscall_rmdir() argument
101 name = get_dname(dentry); in tracefs_syscall_rmdir()
113 inode_unlock(dentry->d_inode); in tracefs_syscall_rmdir()
118 inode_lock(dentry->d_inode); in tracefs_syscall_rmdir()
244 static int tracefs_show_options(struct seq_file *m, struct dentry *root) in tracefs_show_options()
[all …]
/Linux-v4.19/fs/exportfs/
Dexpfs.c23 static int get_name(const struct path *path, char *name, struct dentry *child);
26 static int exportfs_get_name(struct vfsmount *mnt, struct dentry *dir, in exportfs_get_name()
27 char *name, struct dentry *child) in exportfs_get_name()
30 struct path path = {.mnt = mnt, .dentry = dir}; in exportfs_get_name()
41 static struct dentry *
42 find_acceptable_alias(struct dentry *result, in find_acceptable_alias()
43 int (*acceptable)(void *context, struct dentry *dentry), in find_acceptable_alias() argument
46 struct dentry *dentry, *toput = NULL; in find_acceptable_alias() local
54 hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) { in find_acceptable_alias()
55 dget(dentry); in find_acceptable_alias()
[all …]
/Linux-v4.19/fs/9p/
Dfid.c44 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument
46 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid()
49 void v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) in v9fs_fid_add() argument
51 spin_lock(&dentry->d_lock); in v9fs_fid_add()
52 __add_fid(dentry, fid); in v9fs_fid_add()
53 spin_unlock(&dentry->d_lock); in v9fs_fid_add()
64 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() argument
69 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find()
73 if (dentry->d_fsdata) { in v9fs_fid_find()
74 struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata; in v9fs_fid_find()
[all …]
/Linux-v4.19/fs/ecryptfs/
Dinode.c38 static struct dentry *lock_parent(struct dentry *dentry) in lock_parent() argument
40 struct dentry *dir; in lock_parent()
42 dir = dget_parent(dentry); in lock_parent()
47 static void unlock_dir(struct dentry *dir) in unlock_dir()
129 static int ecryptfs_interpose(struct dentry *lower_dentry, in ecryptfs_interpose()
130 struct dentry *dentry, struct super_block *sb) in ecryptfs_interpose() argument
136 d_instantiate(dentry, inode); in ecryptfs_interpose()
141 static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, in ecryptfs_do_unlink() argument
144 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_do_unlink()
146 struct dentry *lower_dir_dentry; in ecryptfs_do_unlink()
[all …]
/Linux-v4.19/fs/ceph/
Ddir.c35 static int ceph_d_init(struct dentry *dentry) in ceph_d_init() argument
43 di->dentry = dentry; in ceph_d_init()
46 dentry->d_fsdata = di; in ceph_d_init()
47 ceph_dentry_lru_add(dentry); in ceph_d_init()
120 static struct dentry *
121 __dcache_find_get_entry(struct dentry *parent, u64 idx, in __dcache_find_get_entry()
125 struct dentry *dentry; in __dcache_find_get_entry() local
126 unsigned idx_mask = (PAGE_SIZE / sizeof(struct dentry *)) - 1; in __dcache_find_get_entry()
127 loff_t ptr_pos = idx * sizeof(struct dentry *); in __dcache_find_get_entry()
153 dentry = cache_ctl->dentries[cache_ctl->index]; in __dcache_find_get_entry()
[all …]
/Linux-v4.19/fs/reiserfs/
Dxattr.c66 static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) in xattr_create() argument
69 return dir->i_op->create(dir, dentry, mode, true); in xattr_create()
73 static int xattr_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in xattr_mkdir() argument
76 return dir->i_op->mkdir(dir, dentry, mode); in xattr_mkdir()
85 static int xattr_unlink(struct inode *dir, struct dentry *dentry) in xattr_unlink() argument
91 inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD); in xattr_unlink()
92 error = dir->i_op->unlink(dir, dentry); in xattr_unlink()
93 inode_unlock(d_inode(dentry)); in xattr_unlink()
96 d_delete(dentry); in xattr_unlink()
100 static int xattr_rmdir(struct inode *dir, struct dentry *dentry) in xattr_rmdir() argument
[all …]
/Linux-v4.19/fs/cachefiles/
Dxattr.c31 struct dentry *dentry = object->dentry; in cachefiles_check_object_type() local
35 ASSERT(dentry); in cachefiles_check_object_type()
36 ASSERT(d_backing_inode(dentry)); in cachefiles_check_object_type()
46 ret = vfs_setxattr(dentry, cachefiles_xattr_cache, type, 2, in cachefiles_check_object_type()
55 dentry, d_backing_inode(dentry)->i_ino, in cachefiles_check_object_type()
61 ret = vfs_getxattr(dentry, cachefiles_xattr_cache, xtype, 3); in cachefiles_check_object_type()
67 dentry, d_backing_inode(dentry)->i_ino, in cachefiles_check_object_type()
87 d_backing_inode(dentry)->i_ino); in cachefiles_check_object_type()
94 dentry, d_backing_inode(dentry)->i_ino, in cachefiles_check_object_type()
106 struct dentry *dentry = object->dentry; in cachefiles_set_object_xattr() local
[all …]
/Linux-v4.19/fs/nfs/
Dnamespace.c50 char *nfs_path(char **p, struct dentry *dentry, char *buffer, ssize_t buflen, in nfs_path() argument
66 spin_lock(&dentry->d_lock); in nfs_path()
67 if (IS_ROOT(dentry)) in nfs_path()
69 namelen = dentry->d_name.len; in nfs_path()
74 memcpy(end, dentry->d_name.name, namelen); in nfs_path()
76 spin_unlock(&dentry->d_lock); in nfs_path()
77 dentry = dentry->d_parent; in nfs_path()
80 spin_unlock(&dentry->d_lock); in nfs_path()
86 spin_unlock(&dentry->d_lock); in nfs_path()
93 base = dentry->d_fsdata; in nfs_path()
[all …]
/Linux-v4.19/fs/nfsd/
Dnfsfh.c27 static int nfsd_acceptable(void *expv, struct dentry *dentry) in nfsd_acceptable() argument
31 struct dentry *tdentry; in nfsd_acceptable()
32 struct dentry *parent; in nfsd_acceptable()
37 tdentry = dget(dentry); in nfsd_acceptable()
38 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable()
50 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable()
52 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable()
63 nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd_mode_check() argument
66 umode_t mode = d_inode(dentry)->i_mode & S_IFMT; in nfsd_mode_check()
71 if (mode == S_IFDIR && !d_can_lookup(dentry)) { in nfsd_mode_check()
[all …]
/Linux-v4.19/fs/configfs/
Dconfigfs_internal.h46 struct dentry * s_dentry;
73 extern int configfs_create(struct dentry *, umode_t mode, void (*init)(struct inode *));
79 struct dentry *, void *, umode_t, int);
82 extern void configfs_hash_and_remove(struct dentry * dir, const char * name);
85 extern void configfs_drop_dentry(struct configfs_dirent *sd, struct dentry *parent);
86 extern int configfs_setattr(struct dentry *dentry, struct iattr *iattr);
88 extern struct dentry *configfs_pin_fs(void);
100 extern int configfs_symlink(struct inode *dir, struct dentry *dentry,
102 extern int configfs_unlink(struct inode *dir, struct dentry *dentry);
110 struct dentry *parent,
[all …]

12345678910>>...56