/linux-6.6.21/include/linux/ |
D | dcache.h | 82 struct dentry { struct 87 struct dentry *d_parent; /* parent directory */ argument 129 int (*d_revalidate)(struct dentry *, unsigned int); 130 int (*d_weak_revalidate)(struct dentry *, unsigned int); 131 int (*d_hash)(const struct dentry *, struct qstr *); 132 int (*d_compare)(const struct dentry *, 134 int (*d_delete)(const struct dentry *); 135 int (*d_init)(struct dentry *); 136 void (*d_release)(struct dentry *); 137 void (*d_prune)(struct dentry *); [all …]
|
D | evm.h | 19 extern enum integrity_status evm_verifyxattr(struct dentry *dentry, 25 struct dentry *dentry, struct iattr *attr); 26 extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid); 28 struct dentry *dentry, const char *name, 30 extern void evm_inode_post_setxattr(struct dentry *dentry, 35 struct dentry *dentry, const char *xattr_name); 36 extern void evm_inode_post_removexattr(struct dentry *dentry, 39 struct dentry *dentry, in evm_inode_post_remove_acl() argument 42 evm_inode_post_removexattr(dentry, acl_name); in evm_inode_post_remove_acl() 45 struct dentry *dentry, const char *acl_name, [all …]
|
D | debugfs.h | 46 extern struct dentry *arch_debugfs_dir; 69 typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *); 73 struct dentry *debugfs_lookup(const char *name, struct dentry *parent); 75 struct dentry *debugfs_create_file(const char *name, umode_t mode, 76 struct dentry *parent, void *data, 78 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode, 79 struct dentry *parent, void *data, 83 struct dentry *parent, void *data, 87 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); 89 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, [all …]
|
D | namei.h | 60 struct dentry *lookup_one_qstr_excl(const struct qstr *name, 61 struct dentry *base, 65 extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int); 66 extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int); 67 extern void done_path_create(struct path *, struct dentry *); 68 extern struct dentry *kern_path_locked(const char *, struct path *); 72 int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *, 75 extern struct dentry *try_lookup_one_len(const char *, struct dentry *, int); 76 extern struct dentry *lookup_one_len(const char *, struct dentry *, int); 77 extern struct dentry *lookup_one_len_unlocked(const char *, struct dentry *, int); [all …]
|
D | fsnotify.h | 39 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent() argument 42 fsnotify_name(mask, dentry, FSNOTIFY_EVENT_DENTRY, dir, &dentry->d_name, 0); in fsnotify_dirent() 57 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() argument 60 struct inode *inode = d_inode(dentry); in fsnotify_parent() 69 if (!(dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED)) in fsnotify_parent() 74 if (IS_ROOT(dentry)) in fsnotify_parent() 77 return __fsnotify_parent(dentry, mask, data, data_type); in fsnotify_parent() 87 static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask) in fsnotify_dentry() argument 89 fsnotify_parent(dentry, mask, dentry, FSNOTIFY_EVENT_DENTRY); in fsnotify_dentry() 101 return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH); in fsnotify_file() [all …]
|
/linux-6.6.21/fs/ |
D | dcache.c | 111 static inline struct hlist_bl_head *in_lookup_hash(const struct dentry *parent, in in_lookup_hash() 258 static inline int dentry_cmp(const struct dentry *dentry, const unsigned char *ct, unsigned tcount) in dentry_cmp() argument 276 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp() 289 static inline struct external_name *external_name(struct dentry *dentry) in external_name() argument 291 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name() 296 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free() local 298 kmem_cache_free(dentry_cache, dentry); in __d_free() 303 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free_external() local 304 kfree(external_name(dentry)); in __d_free_external() 305 kmem_cache_free(dentry_cache, dentry); in __d_free_external() [all …]
|
D | namei.c | 550 dget(path->dentry); in path_get() 562 dput(path->dentry); in path_put() 604 p->path.dentry = NULL; in __set_nameidata() 653 static bool path_connected(struct vfsmount *mnt, struct dentry *dentry) in path_connected() argument 661 return is_subdir(dentry, mnt->mnt_root); in path_connected() 698 nd->path.dentry = NULL; in terminate_walk() 708 path->dentry = NULL; in __legitimize_path() 711 if (unlikely(!lockref_get_not_dead(&path->dentry->d_lockref))) { in __legitimize_path() 712 path->dentry = NULL; in __legitimize_path() 715 return !read_seqcount_retry(&path->dentry->d_seq, seq); in __legitimize_path() [all …]
|
/linux-6.6.21/fs/overlayfs/ |
D | overlayfs.h | 185 struct dentry *upperdentry, in ovl_do_notify_change() 192 struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument 194 int err = vfs_rmdir(ovl_upper_mnt_idmap(ofs), dir, dentry); in ovl_do_rmdir() 196 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir() 201 struct dentry *dentry) in ovl_do_unlink() argument 203 int err = vfs_unlink(ovl_upper_mnt_idmap(ofs), dir, dentry, NULL); in ovl_do_unlink() 205 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink() 209 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry, in ovl_do_link() 210 struct inode *dir, struct dentry *new_dentry) in ovl_do_link() 220 struct inode *dir, struct dentry *dentry, in ovl_do_create() argument [all …]
|
D | util.c | 20 int ovl_want_write(struct dentry *dentry) in ovl_want_write() argument 22 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_want_write() 26 void ovl_drop_write(struct dentry *dentry) in ovl_drop_write() argument 28 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_drop_write() 32 struct dentry *ovl_workdir(struct dentry *dentry) in ovl_workdir() argument 34 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_workdir() 64 struct dentry *ovl_indexdir(struct super_block *sb) in ovl_indexdir() 98 dget(src[i].dentry); in ovl_stack_cpy() 106 dput(stack[i].dentry); in ovl_stack_put() 134 bool ovl_dentry_remote(struct dentry *dentry) in ovl_dentry_remote() argument [all …]
|
D | export.c | 19 static int ovl_encode_maybe_copy_up(struct dentry *dentry) in ovl_encode_maybe_copy_up() argument 23 if (ovl_dentry_upper(dentry)) in ovl_encode_maybe_copy_up() 26 err = ovl_want_write(dentry); in ovl_encode_maybe_copy_up() 28 err = ovl_copy_up(dentry); in ovl_encode_maybe_copy_up() 29 ovl_drop_write(dentry); in ovl_encode_maybe_copy_up() 34 dentry, err); in ovl_encode_maybe_copy_up() 77 static int ovl_connectable_layer(struct dentry *dentry) in ovl_connectable_layer() argument 79 struct ovl_entry *oe = OVL_E(dentry); in ovl_connectable_layer() 82 if (dentry == dentry->d_sb->s_root) in ovl_connectable_layer() 89 if (ovl_dentry_upper(dentry) && in ovl_connectable_layer() [all …]
|
D | dir.c | 24 static int ovl_set_redirect(struct dentry *dentry, bool samedir); 26 int ovl_cleanup(struct ovl_fs *ofs, struct inode *wdir, struct dentry *wdentry) in ovl_cleanup() 45 struct dentry *ovl_lookup_temp(struct ovl_fs *ofs, struct dentry *workdir) in ovl_lookup_temp() 47 struct dentry *temp; in ovl_lookup_temp() 65 static struct dentry *ovl_whiteout(struct ovl_fs *ofs) in ovl_whiteout() 68 struct dentry *whiteout; in ovl_whiteout() 69 struct dentry *workdir = ofs->workdir; in ovl_whiteout() 110 struct dentry *dentry) in ovl_cleanup_and_whiteout() argument 113 struct dentry *whiteout; in ovl_cleanup_and_whiteout() 122 if (d_is_dir(dentry)) in ovl_cleanup_and_whiteout() [all …]
|
D | copy_up.c | 48 struct dentry *dentry, const char *acl_name) in ovl_copy_acl() argument 69 err = ovl_do_set_acl(ofs, dentry, acl_name, clone); in ovl_copy_acl() 76 int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct dentry *new) in ovl_copy_xattr() 78 struct dentry *old = oldpath->dentry; in ovl_copy_xattr() 185 old->dentry, err); in ovl_copy_fileattr() 196 err = ovl_set_protattr(inode, new->dentry, &oldfa); in ovl_copy_fileattr() 218 new->dentry, err); in ovl_copy_fileattr() 233 static int ovl_copy_up_file(struct ovl_fs *ofs, struct dentry *dentry, in ovl_copy_up_file() argument 246 ovl_path_lowerdata(dentry, &datapath); in ovl_copy_up_file() 247 if (WARN_ON(datapath.dentry == NULL)) in ovl_copy_up_file() [all …]
|
/linux-6.6.21/drivers/net/wireless/ti/wl1251/ |
D | wl1251.h | 146 struct dentry *rootdir; 147 struct dentry *fw_statistics; 149 struct dentry *tx_internal_desc_overflow; 151 struct dentry *rx_out_of_mem; 152 struct dentry *rx_hdr_overflow; 153 struct dentry *rx_hw_stuck; 154 struct dentry *rx_dropped; 155 struct dentry *rx_fcs_err; 156 struct dentry *rx_xfr_hint_trig; 157 struct dentry *rx_path_reset; [all …]
|
/linux-6.6.21/fs/debugfs/ |
D | inode.c | 46 struct dentry *dentry, struct iattr *ia) in debugfs_setattr() argument 55 return simple_setattr(&nop_mnt_idmap, dentry, ia); in debugfs_setattr() 206 static int debugfs_show_options(struct seq_file *m, struct dentry *root) in debugfs_show_options() 237 static void debugfs_release_dentry(struct dentry *dentry) in debugfs_release_dentry() argument 239 struct debugfs_fsdata *fsd = dentry->d_fsdata; in debugfs_release_dentry() 249 struct debugfs_fsdata *fsd = path->dentry->d_fsdata; in debugfs_automount() 251 return fsd->automount(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount() 294 static struct dentry *debug_mount(struct file_system_type *fs_type, in debug_mount() 324 struct dentry *debugfs_lookup(const char *name, struct dentry *parent) in debugfs_lookup() 326 struct dentry *dentry; in debugfs_lookup() local [all …]
|
/linux-6.6.21/fs/ocfs2/ |
D | dcache.c | 26 void ocfs2_dentry_attach_gen(struct dentry *dentry) in ocfs2_dentry_attach_gen() argument 29 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen() 30 BUG_ON(d_inode(dentry)); in ocfs2_dentry_attach_gen() 31 dentry->d_fsdata = (void *)gen; in ocfs2_dentry_attach_gen() 35 static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags) in ocfs2_dentry_revalidate() argument 44 inode = d_inode(dentry); in ocfs2_dentry_revalidate() 45 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate() 47 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate() 48 dentry->d_name.name); in ocfs2_dentry_revalidate() 55 unsigned long gen = (unsigned long) dentry->d_fsdata; in ocfs2_dentry_revalidate() [all …]
|
/linux-6.6.21/fs/autofs/ |
D | root.c | 15 struct dentry *, const char *); 16 static int autofs_dir_unlink(struct inode *, struct dentry *); 17 static int autofs_dir_rmdir(struct inode *, struct dentry *); 19 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 *); 67 static void autofs_del_active(struct dentry *dentry) in autofs_del_active() argument 69 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active() 72 ino = autofs_dentry_ino(dentry); in autofs_del_active() [all …]
|
D | expire.c | 11 static inline int autofs_can_expire(struct dentry *dentry, in autofs_can_expire() argument 14 struct autofs_info *ino = autofs_dentry_ino(dentry); in autofs_can_expire() 30 struct dentry *dentry, unsigned int how) in autofs_mount_busy() argument 32 struct dentry *top = dentry; in autofs_mount_busy() 33 struct path path = {.mnt = mnt, .dentry = dentry}; in autofs_mount_busy() 36 pr_debug("dentry %p %pd\n", dentry, dentry); in autofs_mount_busy() 43 if (is_autofs_dentry(path.dentry)) { in autofs_mount_busy() 44 struct autofs_sb_info *sbi = autofs_sbi(path.dentry->d_sb); in autofs_mount_busy() 74 static struct dentry *positive_after(struct dentry *p, struct dentry *child) in positive_after() 79 child = list_first_entry(&p->d_subdirs, struct dentry, d_child); in positive_after() [all …]
|
/linux-6.6.21/fs/exportfs/ |
D | expfs.c | 24 static int get_name(const struct path *path, char *name, struct dentry *child); 27 static int exportfs_get_name(struct vfsmount *mnt, struct dentry *dir, in exportfs_get_name() 28 char *name, struct dentry *child) in exportfs_get_name() 31 struct path path = {.mnt = mnt, .dentry = dir}; in exportfs_get_name() 42 static struct dentry * 43 find_acceptable_alias(struct dentry *result, in find_acceptable_alias() 44 int (*acceptable)(void *context, struct dentry *dentry), in find_acceptable_alias() argument 47 struct dentry *dentry, *toput = NULL; in find_acceptable_alias() local 55 hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) { in find_acceptable_alias() 56 dget(dentry); in find_acceptable_alias() [all …]
|
/linux-6.6.21/fs/ecryptfs/ |
D | inode.c | 27 static int lock_parent(struct dentry *dentry, in lock_parent() argument 28 struct dentry **lower_dentry, in lock_parent() 31 struct dentry *lower_dir_dentry; in lock_parent() 33 lower_dir_dentry = ecryptfs_dentry_to_lower(dentry->d_parent); in lock_parent() 35 *lower_dentry = ecryptfs_dentry_to_lower(dentry); in lock_parent() 125 static int ecryptfs_interpose(struct dentry *lower_dentry, in ecryptfs_interpose() 126 struct dentry *dentry, struct super_block *sb) in ecryptfs_interpose() argument 132 d_instantiate(dentry, inode); in ecryptfs_interpose() 137 static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, in ecryptfs_do_unlink() argument 140 struct dentry *lower_dentry; in ecryptfs_do_unlink() [all …]
|
/linux-6.6.21/fs/ceph/ |
D | dir.c | 34 static int __dir_lease_try_check(const struct dentry *dentry); 39 static int ceph_d_init(struct dentry *dentry) in ceph_d_init() argument 42 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb); in ceph_d_init() 48 di->dentry = dentry; in ceph_d_init() 51 dentry->d_fsdata = di; in ceph_d_init() 128 static struct dentry * 129 __dcache_find_get_entry(struct dentry *parent, u64 idx, in __dcache_find_get_entry() 133 struct dentry *dentry; in __dcache_find_get_entry() local 134 unsigned idx_mask = (PAGE_SIZE / sizeof(struct dentry *)) - 1; in __dcache_find_get_entry() 135 loff_t ptr_pos = idx * sizeof(struct dentry *); in __dcache_find_get_entry() [all …]
|
/linux-6.6.21/fs/reiserfs/ |
D | xattr.c | 67 static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) in xattr_create() argument 70 return dir->i_op->create(&nop_mnt_idmap, dir, dentry, mode, true); in xattr_create() 74 static int xattr_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in xattr_mkdir() argument 77 return dir->i_op->mkdir(&nop_mnt_idmap, dir, dentry, mode); in xattr_mkdir() 86 static int xattr_unlink(struct inode *dir, struct dentry *dentry) in xattr_unlink() argument 92 inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD); in xattr_unlink() 93 error = dir->i_op->unlink(dir, dentry); in xattr_unlink() 94 inode_unlock(d_inode(dentry)); in xattr_unlink() 97 d_delete(dentry); in xattr_unlink() 101 static int xattr_rmdir(struct inode *dir, struct dentry *dentry) in xattr_rmdir() argument [all …]
|
/linux-6.6.21/fs/tracefs/ |
D | inode.c | 73 static char *get_dname(struct dentry *dentry) in get_dname() argument 77 int len = dentry->d_name.len; in get_dname() 79 dname = dentry->d_name.name; in get_dname() 89 struct inode *inode, struct dentry *dentry, in tracefs_syscall_mkdir() argument 96 name = get_dname(dentry); in tracefs_syscall_mkdir() 123 static int tracefs_syscall_rmdir(struct inode *inode, struct dentry *dentry) in tracefs_syscall_rmdir() argument 128 name = get_dname(dentry); in tracefs_syscall_rmdir() 140 inode_unlock(d_inode(dentry)); in tracefs_syscall_rmdir() 145 inode_lock(d_inode(dentry)); in tracefs_syscall_rmdir() 179 struct inode *inode = d_backing_inode(path->dentry); in tracefs_getattr() [all …]
|
/linux-6.6.21/fs/9p/ |
D | fid.c | 21 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument 23 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid() 33 void v9fs_fid_add(struct dentry *dentry, struct p9_fid **pfid) in v9fs_fid_add() argument 37 spin_lock(&dentry->d_lock); in v9fs_fid_add() 38 __add_fid(dentry, fid); in v9fs_fid_add() 39 spin_unlock(&dentry->d_lock); in v9fs_fid_add() 113 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() argument 118 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find() 122 if (dentry->d_fsdata) { in v9fs_fid_find() 123 struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata; in v9fs_fid_find() [all …]
|
/linux-6.6.21/arch/s390/hypfs/ |
D | inode.c | 33 static struct dentry *hypfs_create_update_file(struct dentry *dir); 38 struct dentry *update_file; /* file to trigger update */ 48 static struct dentry *hypfs_last_dentry; 61 static void hypfs_add_dentry(struct dentry *dentry) in hypfs_add_dentry() argument 63 dentry->d_fsdata = hypfs_last_dentry; in hypfs_add_dentry() 64 hypfs_last_dentry = dentry; in hypfs_add_dentry() 67 static void hypfs_remove(struct dentry *dentry) in hypfs_remove() argument 69 struct dentry *parent; in hypfs_remove() 71 parent = dentry->d_parent; in hypfs_remove() 73 if (simple_positive(dentry)) { in hypfs_remove() [all …]
|
/linux-6.6.21/fs/configfs/ |
D | dir.c | 45 static void configfs_d_iput(struct dentry * dentry, in configfs_d_iput() argument 48 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_d_iput() 59 if (sd->s_dentry == dentry) in configfs_d_iput() 243 struct dentry * dentry, void * element, in configfs_make_dirent() argument 253 sd->s_dentry = dentry; in configfs_make_dirent() 254 if (dentry) in configfs_make_dirent() 255 dentry->d_fsdata = configfs_get(sd); in configfs_make_dirent() 260 static void configfs_remove_dirent(struct dentry *dentry) in configfs_remove_dirent() argument 262 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_remove_dirent() 282 static int configfs_create_dir(struct config_item *item, struct dentry *dentry, in configfs_create_dir() argument [all …]
|