/kernel/linux/linux-5.10/include/linux/ |
D | dcache.h | 89 struct dentry { struct 94 struct dentry *d_parent; /* parent directory */ argument 136 int (*d_revalidate)(struct dentry *, unsigned int); 137 int (*d_weak_revalidate)(struct dentry *, unsigned int); 138 int (*d_hash)(const struct dentry *, struct qstr *); 139 int (*d_compare)(const struct dentry *, 141 int (*d_delete)(const struct dentry *); 142 int (*d_init)(struct dentry *); 143 void (*d_release)(struct dentry *); 144 void (*d_prune)(struct dentry *); [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 | evm.h | 19 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 …]
|
D | fsnotify.h | 36 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent() argument 39 fsnotify_name(dir, mask, d_inode(dentry), &dentry->d_name, 0); in fsnotify_dirent() 51 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() argument 54 struct inode *inode = d_inode(dentry); in fsnotify_parent() 60 if (!(dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED)) in fsnotify_parent() 65 if (IS_ROOT(dentry)) in fsnotify_parent() 68 return __fsnotify_parent(dentry, mask, data, data_type); in fsnotify_parent() 78 static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask) in fsnotify_dentry() argument 80 fsnotify_parent(dentry, mask, d_inode(dentry), FSNOTIFY_EVENT_INODE); in fsnotify_dentry() 90 return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH); in fsnotify_file() [all …]
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
D | overlayfs.h | 122 static inline int ovl_do_rmdir(struct inode *dir, struct dentry *dentry) in ovl_do_rmdir() argument 124 int err = vfs_rmdir(dir, dentry); in ovl_do_rmdir() 126 pr_debug("rmdir(%pd2) = %i\n", dentry, err); in ovl_do_rmdir() 130 static inline int ovl_do_unlink(struct inode *dir, struct dentry *dentry) in ovl_do_unlink() argument 132 int err = vfs_unlink(dir, dentry, NULL); in ovl_do_unlink() 134 pr_debug("unlink(%pd2) = %i\n", dentry, err); in ovl_do_unlink() 138 static inline int ovl_do_link(struct dentry *old_dentry, struct inode *dir, in ovl_do_link() 139 struct dentry *new_dentry) in ovl_do_link() 147 static inline int ovl_do_create(struct inode *dir, struct dentry *dentry, in ovl_do_create() argument 150 int err = vfs_create(dir, dentry, mode, true); in ovl_do_create() [all …]
|
D | util.c | 18 int ovl_want_write(struct dentry *dentry) in ovl_want_write() argument 20 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write() 24 void ovl_drop_write(struct dentry *dentry) in ovl_drop_write() argument 26 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write() 30 struct dentry *ovl_workdir(struct dentry *dentry) in ovl_workdir() argument 32 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir() 59 struct dentry *ovl_indexdir(struct super_block *sb) in ovl_indexdir() 93 bool ovl_dentry_remote(struct dentry *dentry) in ovl_dentry_remote() argument 95 return dentry->d_flags & in ovl_dentry_remote() 99 void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *upperdentry, in ovl_dentry_update_reval() 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 inode *wdir, struct dentry *wdentry) in ovl_cleanup() 45 struct dentry *ovl_lookup_temp(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 | 46 int ovl_copy_xattr(struct super_block *sb, struct dentry *old, in ovl_copy_xattr() 47 struct dentry *new) in ovl_copy_xattr() 232 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() 242 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() 254 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() 279 struct ovl_fh *ovl_encode_real_fh(struct dentry *real, bool is_upper) in ovl_encode_real_fh() 332 int ovl_set_origin(struct dentry *dentry, struct dentry *lower, in ovl_set_origin() argument 333 struct dentry *upper) in ovl_set_origin() 352 err = ovl_check_setxattr(dentry, upper, OVL_XATTR_ORIGIN, fh->buf, in ovl_set_origin() 360 static int ovl_set_upper_fh(struct ovl_fs *ofs, struct dentry *upper, in ovl_set_upper_fh() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | dcache.c | 109 static inline struct hlist_bl_head *in_lookup_hash(const struct dentry *parent, in in_lookup_hash() 231 static inline int dentry_cmp(const struct dentry *dentry, const unsigned char *ct, unsigned tcount) in dentry_cmp() argument 249 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp() 262 static inline struct external_name *external_name(struct dentry *dentry) in external_name() argument 264 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name() 269 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free() local 271 kmem_cache_free(dentry_cache, dentry); in __d_free() 276 struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu); in __d_free_external() local 277 kfree(external_name(dentry)); in __d_free_external() 278 kmem_cache_free(dentry_cache, dentry); in __d_free_external() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/debugfs/ |
D | inode.c | 45 static int debugfs_setattr(struct dentry *dentry, struct iattr *ia) in debugfs_setattr() argument 54 return simple_setattr(dentry, ia); in debugfs_setattr() 183 static int debugfs_show_options(struct seq_file *m, struct dentry *root) in debugfs_show_options() 214 static void debugfs_release_dentry(struct dentry *dentry) in debugfs_release_dentry() argument 216 void *fsd = dentry->d_fsdata; in debugfs_release_dentry() 219 kfree(dentry->d_fsdata); in debugfs_release_dentry() 225 f = (debugfs_automount_t)path->dentry->d_fsdata; in debugfs_automount() 226 return f(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount() 269 static struct dentry *debug_mount(struct file_system_type *fs_type, in debug_mount() 299 struct dentry *debugfs_lookup(const char *name, struct dentry *parent) in debugfs_lookup() [all …]
|
/kernel/linux/linux-5.10/fs/autofs/ |
D | root.c | 13 static int autofs_dir_symlink(struct inode *, struct dentry *, const char *); 14 static int autofs_dir_unlink(struct inode *, struct dentry *); 15 static int autofs_dir_rmdir(struct inode *, struct dentry *); 16 static int autofs_dir_mkdir(struct inode *, struct dentry *, umode_t); 23 static struct dentry *autofs_lookup(struct inode *, 24 struct dentry *, unsigned int); 27 static void autofs_dentry_release(struct dentry *); 63 static void autofs_del_active(struct dentry *dentry) in autofs_del_active() argument 65 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active() 68 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 …]
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | dcache.c | 28 void ocfs2_dentry_attach_gen(struct dentry *dentry) in ocfs2_dentry_attach_gen() argument 31 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen() 32 BUG_ON(d_inode(dentry)); in ocfs2_dentry_attach_gen() 33 dentry->d_fsdata = (void *)gen; in ocfs2_dentry_attach_gen() 37 static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags) in ocfs2_dentry_revalidate() argument 46 inode = d_inode(dentry); in ocfs2_dentry_revalidate() 47 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate() 49 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate() 50 dentry->d_name.name); in ocfs2_dentry_revalidate() 57 unsigned long gen = (unsigned long) dentry->d_fsdata; in ocfs2_dentry_revalidate() [all …]
|
/kernel/linux/linux-5.10/fs/tracefs/ |
D | inode.c | 55 static char *get_dname(struct dentry *dentry) in get_dname() argument 59 int len = dentry->d_name.len; in get_dname() 61 dname = dentry->d_name.name; in get_dname() 70 static int tracefs_syscall_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode) in tracefs_syscall_mkdir() argument 75 name = get_dname(dentry); in tracefs_syscall_mkdir() 93 static int tracefs_syscall_rmdir(struct inode *inode, struct dentry *dentry) in tracefs_syscall_rmdir() argument 98 name = get_dname(dentry); in tracefs_syscall_rmdir() 110 inode_unlock(dentry->d_inode); in tracefs_syscall_rmdir() 115 inode_lock(dentry->d_inode); in tracefs_syscall_rmdir() 164 static void change_gid(struct dentry *dentry, kgid_t gid) in change_gid() argument [all …]
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | dentry.c | 18 void hmdfs_set_time(struct dentry *dentry, unsigned long time) in hmdfs_set_time() argument 20 struct hmdfs_dentry_info *d_info = dentry->d_fsdata; in hmdfs_set_time() 26 unsigned long hmdfs_get_time(struct dentry *dentry) in hmdfs_get_time() argument 28 struct hmdfs_dentry_info *d_info = dentry->d_fsdata; in hmdfs_get_time() 36 struct dentry *target, in hmdfs_d_remote_revalidate() 37 struct dentry *parent) in hmdfs_d_remote_revalidate() 55 static inline void lock_for_dname_cmp(struct dentry *dentry, in lock_for_dname_cmp() argument 56 struct dentry *lower_dentry) in lock_for_dname_cmp() 58 if (dentry < lower_dentry) { in lock_for_dname_cmp() 59 spin_lock(&dentry->d_lock); in lock_for_dname_cmp() [all …]
|
D | hmdfs_device_view.h | 80 extern int hmdfs_remote_getattr(struct hmdfs_peer *conn, struct dentry *dentry, 114 struct dentry *dentry); 117 int hmdfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); 118 int hmdfs_rmdir(struct inode *dir, struct dentry *dentry); 119 int hmdfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, 121 int hmdfs_unlink(struct inode *dir, struct dentry *dentry); 122 int hmdfs_remote_unlink(struct hmdfs_peer *conn, struct dentry *dentry); 123 int hmdfs_rename(struct inode *old_dir, struct dentry *old_dentry, 124 struct inode *new_dir, struct dentry *new_dentry, 135 struct dentry *hmdfs_lookup(struct inode *parent_inode, [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/9p/ |
D | fid.c | 29 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument 31 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid() 34 void v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) in v9fs_fid_add() argument 36 spin_lock(&dentry->d_lock); in v9fs_fid_add() 37 __add_fid(dentry, fid); in v9fs_fid_add() 38 spin_unlock(&dentry->d_lock); in v9fs_fid_add() 49 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() argument 54 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find() 58 if (dentry->d_fsdata) { in v9fs_fid_find() 59 struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata; in v9fs_fid_find() [all …]
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
D | inode.c | 24 static struct dentry *lock_parent(struct dentry *dentry) in lock_parent() argument 26 struct dentry *dir; in lock_parent() 28 dir = dget_parent(dentry); in lock_parent() 33 static void unlock_dir(struct dentry *dir) in unlock_dir() 115 static int ecryptfs_interpose(struct dentry *lower_dentry, in ecryptfs_interpose() 116 struct dentry *dentry, struct super_block *sb) in ecryptfs_interpose() argument 122 d_instantiate(dentry, inode); in ecryptfs_interpose() 127 static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, in ecryptfs_do_unlink() argument 130 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_do_unlink() 131 struct dentry *lower_dir_dentry; in ecryptfs_do_unlink() [all …]
|
/kernel/linux/linux-5.10/fs/sharefs/ |
D | lookup.c | 34 void free_dentry_private_data(struct dentry *dentry) in free_dentry_private_data() argument 36 if (!dentry || !dentry->d_fsdata) in free_dentry_private_data() 38 kmem_cache_free(sharefs_dentry_cachep, dentry->d_fsdata); in free_dentry_private_data() 39 dentry->d_fsdata = NULL; in free_dentry_private_data() 43 int new_dentry_private_data(struct dentry *dentry) in new_dentry_private_data() argument 45 struct sharefs_dentry_info *info = SHAREFS_D(dentry); in new_dentry_private_data() 53 dentry->d_fsdata = info; in new_dentry_private_data() 151 static struct dentry *__sharefs_interpose(struct dentry *dentry, in __sharefs_interpose() argument 156 struct inode *lower_inode = d_inode(lower_path->dentry); in __sharefs_interpose() 157 struct dentry *ret_dentry; in __sharefs_interpose() [all …]
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
D | xattr.c | 66 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 …]
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | dir.c | 33 static int __dir_lease_try_check(const struct dentry *dentry); 38 static int ceph_d_init(struct dentry *dentry) in ceph_d_init() argument 41 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb); in ceph_d_init() 47 di->dentry = dentry; in ceph_d_init() 50 dentry->d_fsdata = di; in ceph_d_init() 127 static struct dentry * 128 __dcache_find_get_entry(struct dentry *parent, u64 idx, in __dcache_find_get_entry() 132 struct dentry *dentry; in __dcache_find_get_entry() local 133 unsigned idx_mask = (PAGE_SIZE / sizeof(struct dentry *)) - 1; in __dcache_find_get_entry() 134 loff_t ptr_pos = idx * sizeof(struct dentry *); in __dcache_find_get_entry() [all …]
|
/kernel/linux/linux-5.10/fs/cachefiles/ |
D | xattr.c | 27 struct dentry *dentry = object->dentry; in cachefiles_check_object_type() local 31 ASSERT(dentry); in cachefiles_check_object_type() 32 ASSERT(d_backing_inode(dentry)); in cachefiles_check_object_type() 42 ret = vfs_setxattr(dentry, cachefiles_xattr_cache, type, 2, in cachefiles_check_object_type() 51 dentry, d_backing_inode(dentry)->i_ino, in cachefiles_check_object_type() 57 ret = vfs_getxattr(dentry, cachefiles_xattr_cache, xtype, 3); in cachefiles_check_object_type() 63 dentry, d_backing_inode(dentry)->i_ino, in cachefiles_check_object_type() 83 d_backing_inode(dentry)->i_ino); in cachefiles_check_object_type() 90 dentry, d_backing_inode(dentry)->i_ino, in cachefiles_check_object_type() 102 struct dentry *dentry = object->dentry; in cachefiles_set_object_xattr() local [all …]
|