arch/arm/mach-omap1/pm.c
493
struct dentry *d;
arch/arm/mach-omap2/pm-debug.c
178
struct dentry *d;
arch/arm/mach-omap2/pm-debug.c
190
d = debugfs_create_dir(pwrdm->name, (struct dentry *)dir);
arch/arm/mach-omap2/pm-debug.c
224
struct dentry *d;
arch/loongarch/kernel/kdebugfs.c
8
struct dentry *arch_debugfs_dir;
arch/microblaze/include/asm/processor.h
88
extern struct dentry *of_debugfs_root;
arch/microblaze/kernel/setup.c
184
struct dentry *of_debugfs_root;
arch/mips/cavium-octeon/oct_ilm.c
29
static struct dentry *dir;
arch/mips/include/asm/debug.h
16
extern struct dentry *mips_debugfs_dir;
arch/mips/kernel/setup.c
793
struct dentry *mips_debugfs_dir;
arch/mips/math-emu/me-debugfs.c
190
struct dentry *fpuemu_debugfs_base_dir;
arch/mips/math-emu/me-debugfs.c
191
struct dentry *fpuemu_debugfs_inst_dir;
arch/mips/mm/sc-debugfs.c
54
struct dentry *dir;
arch/powerpc/include/asm/kvm_ppc.h
321
int (*create_vcpu_debugfs)(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry);
arch/powerpc/include/asm/vas.h
87
struct dentry *dbgdir;
arch/powerpc/kernel/iommu.c
134
struct dentry *dir = fault_create_debugfs_attr("fail_iommu",
arch/powerpc/kernel/iommu.c
56
struct dentry *liobn_entry;
arch/powerpc/kernel/kdebugfs.c
6
struct dentry *arch_debugfs_dir;
arch/powerpc/kernel/traps.c
2313
struct dentry *dir;
arch/powerpc/kvm/book3s_hv.c
2946
static int kvmppc_arch_create_vcpu_debugfs_hv(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry)
arch/powerpc/kvm/book3s_hv.c
2955
static int kvmppc_arch_create_vcpu_debugfs_hv(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry)
arch/powerpc/kvm/book3s_xics.c
1019
xics->dentry = debugfs_create_file("xics", 0444, xics->kvm->debugfs_dentry,
arch/powerpc/kvm/book3s_xics.c
1349
debugfs_remove(xics->dentry);
arch/powerpc/kvm/book3s_xics.h
106
struct dentry *dentry;
arch/powerpc/kvm/book3s_xive.c
2657
debugfs_remove(xive->dentry);
arch/powerpc/kvm/book3s_xive.c
2954
xive->dentry = debugfs_create_file("xive", S_IRUGO, xive->kvm->debugfs_dentry,
arch/powerpc/kvm/book3s_xive.h
106
struct dentry *dentry;
arch/powerpc/kvm/book3s_xive_native.c
1041
debugfs_remove(xive->dentry);
arch/powerpc/kvm/book3s_xive_native.c
1261
xive->dentry = debugfs_create_file("xive", 0444, xive->kvm->debugfs_dentry,
arch/powerpc/kvm/powerpc.c
2515
void kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry)
arch/powerpc/kvm/timing.c
208
struct dentry *debugfs_dentry)
arch/powerpc/kvm/timing.h
18
struct dentry *debugfs_dentry);
arch/powerpc/kvm/timing.h
30
struct dentry *debugfs_dentry)
arch/powerpc/platforms/cell/spufs/inode.c
110
spufs_new_file(struct super_block *sb, struct dentry *dentry,
arch/powerpc/platforms/cell/spufs/inode.c
130
d_make_persistent(dentry, inode);
arch/powerpc/platforms/cell/spufs/inode.c
147
static void spufs_rmdir(struct inode *parent, struct dentry *dir)
arch/powerpc/platforms/cell/spufs/inode.c
155
static int spufs_fill_dir(struct dentry *dir,
arch/powerpc/platforms/cell/spufs/inode.c
161
struct dentry *dentry = d_alloc_name(dir, files->name);
arch/powerpc/platforms/cell/spufs/inode.c
162
if (!dentry)
arch/powerpc/platforms/cell/spufs/inode.c
164
ret = spufs_new_file(dir->d_sb, dentry, files->ops,
arch/powerpc/platforms/cell/spufs/inode.c
166
dput(dentry);
arch/powerpc/platforms/cell/spufs/inode.c
174
static void unuse_gang(struct dentry *dir)
arch/powerpc/platforms/cell/spufs/inode.c
194
struct dentry *dir;
arch/powerpc/platforms/cell/spufs/inode.c
196
dir = file->f_path.dentry;
arch/powerpc/platforms/cell/spufs/inode.c
218
spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
arch/powerpc/platforms/cell/spufs/inode.c
246
d_make_persistent(dentry, inode);
arch/powerpc/platforms/cell/spufs/inode.c
249
ret = spufs_fill_dir(dentry, spufs_dir_nosched_contents,
arch/powerpc/platforms/cell/spufs/inode.c
252
ret = spufs_fill_dir(dentry, spufs_dir_contents, mode, ctx);
arch/powerpc/platforms/cell/spufs/inode.c
255
ret = spufs_fill_dir(dentry, spufs_dir_debug_contents,
arch/powerpc/platforms/cell/spufs/inode.c
261
spufs_rmdir(dir, dentry);
arch/powerpc/platforms/cell/spufs/inode.c
378
spufs_create_context(struct inode *inode, struct dentry *dentry,
arch/powerpc/platforms/cell/spufs/inode.c
386
struct path path = {.mnt = mnt, .dentry = dentry};
arch/powerpc/platforms/cell/spufs/inode.c
418
ret = spufs_mkdir(inode, dentry, flags, mode & 0777);
arch/powerpc/platforms/cell/spufs/inode.c
426
spufs_set_affinity(flags, SPUFS_I(d_inode(dentry))->i_ctx,
arch/powerpc/platforms/cell/spufs/inode.c
434
spufs_rmdir(inode, dentry);
arch/powerpc/platforms/cell/spufs/inode.c
445
spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode)
arch/powerpc/platforms/cell/spufs/inode.c
471
d_make_persistent(dentry, inode);
arch/powerpc/platforms/cell/spufs/inode.c
482
unuse_gang(file->f_path.dentry);
arch/powerpc/platforms/cell/spufs/inode.c
509
struct dentry *dentry,
arch/powerpc/platforms/cell/spufs/inode.c
512
struct path path = {.mnt = mnt, .dentry = dentry};
arch/powerpc/platforms/cell/spufs/inode.c
515
ret = spufs_mkgang(inode, dentry, mode & 0777);
arch/powerpc/platforms/cell/spufs/inode.c
519
unuse_gang(dentry);
arch/powerpc/platforms/cell/spufs/inode.c
527
long spufs_create(const struct path *path, struct dentry *dentry,
arch/powerpc/platforms/cell/spufs/inode.c
530
struct inode *dir = d_inode(path->dentry);
arch/powerpc/platforms/cell/spufs/inode.c
534
if (path->dentry->d_sb->s_type != &spufs_type)
arch/powerpc/platforms/cell/spufs/inode.c
542
if (path->dentry != path->dentry->d_sb->s_root)
arch/powerpc/platforms/cell/spufs/inode.c
549
ret = spufs_create_gang(dir, dentry, path->mnt, mode);
arch/powerpc/platforms/cell/spufs/inode.c
551
ret = spufs_create_context(dir, dentry, path->mnt, flags, mode,
arch/powerpc/platforms/cell/spufs/inode.c
554
fsnotify_mkdir(dir, dentry);
arch/powerpc/platforms/cell/spufs/inode.c
578
static int spufs_show_options(struct seq_file *m, struct dentry *root)
arch/powerpc/platforms/cell/spufs/inode.c
95
spufs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
arch/powerpc/platforms/cell/spufs/inode.c
98
struct inode *inode = d_inode(dentry);
arch/powerpc/platforms/cell/spufs/spufs.h
237
long spufs_create(const struct path *nd, struct dentry *dentry, unsigned int flags,
arch/powerpc/platforms/cell/spufs/syscalls.c
67
struct dentry *dentry;
arch/powerpc/platforms/cell/spufs/syscalls.c
70
dentry = start_creating_user_path(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY);
arch/powerpc/platforms/cell/spufs/syscalls.c
71
ret = PTR_ERR(dentry);
arch/powerpc/platforms/cell/spufs/syscalls.c
72
if (!IS_ERR(dentry)) {
arch/powerpc/platforms/cell/spufs/syscalls.c
73
ret = spufs_create(&path, dentry, flags, mode, neighbor);
arch/powerpc/platforms/cell/spufs/syscalls.c
74
end_creating_path(&path, dentry);
arch/powerpc/platforms/powernv/memtrace.c
165
static struct dentry *memtrace_debugfs_dir;
arch/powerpc/platforms/powernv/memtrace.c
173
struct dentry *dir;
arch/powerpc/platforms/powernv/memtrace.c
29
struct dentry *dir;
arch/powerpc/platforms/powernv/opal-imc.c
21
static struct dentry *imc_debugfs_parent;
arch/powerpc/platforms/powernv/opal-imc.c
38
struct dentry *parent, u64 *value)
arch/powerpc/platforms/powernv/opal-lpc.c
353
static int opal_lpc_debugfs_create_type(struct dentry *folder,
arch/powerpc/platforms/powernv/opal-lpc.c
368
struct dentry *root;
arch/powerpc/platforms/powernv/opal-xscom.c
155
static int scom_debug_init_one(struct dentry *root, struct device_node *dn,
arch/powerpc/platforms/powernv/opal-xscom.c
159
struct dentry *dir;
arch/powerpc/platforms/powernv/opal-xscom.c
191
struct dentry *root;
arch/powerpc/platforms/powernv/pci.h
121
struct dentry *dbgfs;
arch/powerpc/platforms/powernv/vas-debug.c
121
struct dentry *d;
arch/powerpc/platforms/powernv/vas-debug.c
141
struct dentry *d;
arch/powerpc/platforms/powernv/vas-debug.c
15
static struct dentry *vas_debugfs;
arch/powerpc/platforms/powernv/vas.h
345
struct dentry *dbgdir;
arch/powerpc/platforms/pseries/dtl.c
330
static struct dentry *dtl_dir;
arch/powerpc/platforms/pseries/htmdump.c
28
static struct dentry *htmdump_debugfs_dir;
arch/powerpc/platforms/pseries/hvCall_inst.c
114
struct dentry *hcall_root;
arch/powerpc/platforms/pseries/lpar.c
2015
struct dentry *vpa_dir;
arch/powerpc/sysdev/xive/common.c
1830
struct dentry *xive_dir;
arch/powerpc/sysdev/xive/common.c
1831
struct dentry *xive_eq_dir;
arch/powerpc/sysdev/xive/native.c
465
static int xive_native_debug_create(struct dentry *xive_dir)
arch/powerpc/sysdev/xive/xive-internal.h
61
int (*debug_create)(struct dentry *xive_dir);
arch/s390/hypfs/hypfs.h
23
extern struct dentry *hypfs_mkdir(struct dentry *parent, const char *name);
arch/s390/hypfs/hypfs.h
25
extern int hypfs_create_u64(struct dentry *dir, const char *name, __u64 value);
arch/s390/hypfs/hypfs.h
27
extern int hypfs_create_str(struct dentry *dir, const char *name, char *string);
arch/s390/hypfs/hypfs.h
32
extern int hypfs_diag_create_files(struct dentry *root);
arch/s390/hypfs/hypfs.h
37
extern int hypfs_vm_create_files(struct dentry *root);
arch/s390/hypfs/hypfs.h
76
struct dentry *dentry;
arch/s390/hypfs/hypfs_dbfs.c
13
static struct dentry *dbfs_dir;
arch/s390/hypfs/hypfs_dbfs.c
90
df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df, fops);
arch/s390/hypfs/hypfs_dbfs.c
96
debugfs_remove(df->dentry);
arch/s390/hypfs/hypfs_diag_fs.c
202
static int hypfs_create_cpu_files(struct dentry *cpus_dir, void *cpu_info)
arch/s390/hypfs/hypfs_diag_fs.c
204
struct dentry *cpu_dir;
arch/s390/hypfs/hypfs_diag_fs.c
233
static void *hypfs_create_lpar_files(struct dentry *systems_dir, void *part_hdr)
arch/s390/hypfs/hypfs_diag_fs.c
235
struct dentry *cpus_dir;
arch/s390/hypfs/hypfs_diag_fs.c
236
struct dentry *lpar_dir;
arch/s390/hypfs/hypfs_diag_fs.c
261
static int hypfs_create_phys_cpu_files(struct dentry *cpus_dir, void *cpu_info)
arch/s390/hypfs/hypfs_diag_fs.c
263
struct dentry *cpu_dir;
arch/s390/hypfs/hypfs_diag_fs.c
280
static void *hypfs_create_phys_files(struct dentry *parent_dir, void *phys_hdr)
arch/s390/hypfs/hypfs_diag_fs.c
284
struct dentry *cpus_dir;
arch/s390/hypfs/hypfs_diag_fs.c
301
int hypfs_diag_create_files(struct dentry *root)
arch/s390/hypfs/hypfs_diag_fs.c
303
struct dentry *systems_dir, *hyp_dir;
arch/s390/hypfs/hypfs_vm_fs.c
27
static int hypfs_vm_create_guest(struct dentry *systems_dir,
arch/s390/hypfs/hypfs_vm_fs.c
31
struct dentry *guest_dir, *cpus_dir, *samples_dir, *mem_dir;
arch/s390/hypfs/hypfs_vm_fs.c
85
int hypfs_vm_create_files(struct dentry *root)
arch/s390/hypfs/hypfs_vm_fs.c
87
struct dentry *dir;
arch/s390/hypfs/inode.c
231
static int hypfs_show_options(struct seq_file *s, struct dentry *root)
arch/s390/hypfs/inode.c
244
struct dentry *root_dentry, *update_file;
arch/s390/hypfs/inode.c
317
static struct dentry *hypfs_create_file(struct dentry *parent, const char *name,
arch/s390/hypfs/inode.c
320
struct dentry *dentry;
arch/s390/hypfs/inode.c
323
dentry = simple_start_creating(parent, name);
arch/s390/hypfs/inode.c
324
if (IS_ERR(dentry))
arch/s390/hypfs/inode.c
328
simple_done_creating(dentry);
arch/s390/hypfs/inode.c
33
static struct dentry *hypfs_create_update_file(struct dentry *dir);
arch/s390/hypfs/inode.c
344
d_make_persistent(dentry, inode);
arch/s390/hypfs/inode.c
345
simple_done_creating(dentry);
arch/s390/hypfs/inode.c
346
return dentry; // borrowed
arch/s390/hypfs/inode.c
349
struct dentry *hypfs_mkdir(struct dentry *parent, const char *name)
arch/s390/hypfs/inode.c
351
struct dentry *dentry;
arch/s390/hypfs/inode.c
353
dentry = hypfs_create_file(parent, name, NULL, S_IFDIR | DIR_MODE);
arch/s390/hypfs/inode.c
354
if (IS_ERR(dentry))
arch/s390/hypfs/inode.c
355
return dentry;
arch/s390/hypfs/inode.c
356
hypfs_add_dentry(dentry);
arch/s390/hypfs/inode.c
357
return dentry;
arch/s390/hypfs/inode.c
360
static struct dentry *hypfs_create_update_file(struct dentry *dir)
arch/s390/hypfs/inode.c
362
struct dentry *dentry;
arch/s390/hypfs/inode.c
364
dentry = hypfs_create_file(dir, "update", NULL,
arch/s390/hypfs/inode.c
371
return dentry;
arch/s390/hypfs/inode.c
374
int hypfs_create_u64(struct dentry *dir, const char *name, __u64 value)
arch/s390/hypfs/inode.c
378
struct dentry *dentry;
arch/s390/hypfs/inode.c
38
struct dentry *update_file; /* file to trigger update */
arch/s390/hypfs/inode.c
384
dentry =
arch/s390/hypfs/inode.c
386
if (IS_ERR(dentry)) {
arch/s390/hypfs/inode.c
390
hypfs_add_dentry(dentry);
arch/s390/hypfs/inode.c
394
int hypfs_create_str(struct dentry *dir, const char *name, char *string)
arch/s390/hypfs/inode.c
397
struct dentry *dentry;
arch/s390/hypfs/inode.c
403
dentry =
arch/s390/hypfs/inode.c
405
if (IS_ERR(dentry)) {
arch/s390/hypfs/inode.c
409
hypfs_add_dentry(dentry);
arch/s390/hypfs/inode.c
48
static struct dentry *hypfs_last_dentry;
arch/s390/hypfs/inode.c
61
static void hypfs_add_dentry(struct dentry *dentry)
arch/s390/hypfs/inode.c
63
if (IS_ROOT(dentry->d_parent)) {
arch/s390/hypfs/inode.c
64
dentry->d_fsdata = hypfs_last_dentry;
arch/s390/hypfs/inode.c
65
hypfs_last_dentry = dentry;
arch/s390/hypfs/inode.c
72
struct dentry *next_dentry = hypfs_last_dentry->d_fsdata;
arch/s390/include/asm/debug.h
58
struct dentry *debugfs_root_entry;
arch/s390/include/asm/debug.h
59
struct dentry *debugfs_entries[DEBUG_MAX_VIEWS];
arch/s390/include/asm/pci.h
189
struct dentry *debugfs_dev;
arch/s390/kernel/debug.c
1338
struct dentry *pde;
arch/s390/kernel/debug.c
1387
struct dentry *dentry = NULL;
arch/s390/kernel/debug.c
1401
dentry = id->debugfs_entries[i];
arch/s390/kernel/debug.c
1406
debugfs_remove(dentry);
arch/s390/kernel/debug.c
169
static struct dentry *debug_debugfs_root_entry;
arch/s390/kernel/debug.c
254
memset(rc->debugfs_entries, 0, DEBUG_MAX_VIEWS * sizeof(struct dentry *));
arch/s390/kernel/debug.c
669
else if (debug_info->debugfs_entries[i] == file->f_path.dentry)
arch/s390/kernel/hiperdispatch.c
398
struct dentry *dir;
arch/s390/kernel/kdebugfs.c
6
struct dentry *arch_debugfs_dir;
arch/s390/kernel/sysinfo.c
513
struct dentry *stsi_root;
arch/s390/kernel/wti.c
168
struct dentry *wti_dir;
arch/s390/pci/pci_debug.c
20
static struct dentry *debugfs_root;
arch/sh/kernel/kdebugfs.c
6
struct dentry *arch_debugfs_dir;
arch/x86/events/intel/pt.c
1465
if (filter->path.dentry && !fr[range].start) {
arch/x86/kernel/amd_node.c
140
static struct dentry *debugfs_dir;
arch/x86/kernel/callthunks.c
368
struct dentry *dir;
arch/x86/kernel/cpu/debugfs.c
88
struct dentry *dir, *base = debugfs_create_dir("topo", arch_debugfs_dir);
arch/x86/kernel/cpu/mce/core.c
2908
struct dentry *mce_get_debugfs_dir(void)
arch/x86/kernel/cpu/mce/core.c
2910
static struct dentry *dmce;
arch/x86/kernel/cpu/mce/core.c
2945
struct dentry *dmce;
arch/x86/kernel/cpu/mce/inject.c
43
static struct dentry *dfs_inj;
arch/x86/kernel/cpu/mce/internal.h
39
struct dentry *mce_get_debugfs_dir(void);
arch/x86/kernel/cpu/mce/severity.c
480
struct dentry *dmce;
arch/x86/kernel/itmt.c
81
static struct dentry *dfs_sched_itmt;
arch/x86/kernel/itmt.c
82
static struct dentry *dfs_sched_core_prio;
arch/x86/kernel/kdebugfs.c
167
struct dentry *dbp;
arch/x86/kernel/kdebugfs.c
19
struct dentry *arch_debugfs_dir;
arch/x86/kernel/kdebugfs.c
76
create_setup_data_node(struct dentry *parent, int no,
arch/x86/kernel/kdebugfs.c
79
struct dentry *d;
arch/x86/kernel/kdebugfs.c
89
static int __init create_setup_data_nodes(struct dentry *parent)
arch/x86/kernel/kdebugfs.c
95
struct dentry *d;
arch/x86/kvm/debugfs.c
59
void kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry)
arch/x86/mm/debug_pagetables.c
47
static struct dentry *dir;
arch/x86/platform/atom/punit_atom_debug.c
108
static struct dentry *punit_dbg_file;
arch/x86/platform/intel/iosf_mbi.c
471
static struct dentry *iosf_dbg;
arch/x86/xen/debugfs.c
10
struct dentry * __init xen_init_debugfs(void)
arch/x86/xen/debugfs.c
8
static struct dentry *d_xen_debug;
arch/x86/xen/p2m.c
918
static struct dentry *d_mmu_debug;
arch/x86/xen/p2m.c
922
struct dentry *d_xen = xen_init_debugfs();
arch/x86/xen/xen-ops.h
187
struct dentry * __init xen_init_debugfs(void);
block/bdev.c
1225
inode = d_backing_inode(path.dentry);
block/bdev.c
1339
bdev = blkdev_get_no_open(d_backing_inode(path->dentry)->i_rdev, false);
block/blk-core.c
514
struct dentry *dir = fault_create_debugfs_attr("fail_make_request",
block/blk-core.c
54
struct dentry *blk_debugfs_root;
block/blk-mq-debugfs.c
611
static void debugfs_create_files(struct request_queue *q, struct dentry *parent,
block/blk-mq-debugfs.c
649
struct dentry *ctx_dir;
block/blk-rq-qos.h
33
struct dentry *debugfs_dir;
block/blk-timeout.c
31
struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout",
block/blk.h
32
extern struct dentry *blk_debugfs_root;
crypto/jitterentropy-testing.c
26
static struct dentry *jent_raw_debugfs_root = NULL;
drivers/accel/habanalabs/common/debugfs.c
1866
static void add_secured_nodes(struct hl_dbg_device_entry *dev_entry, struct dentry *root)
drivers/accel/habanalabs/common/debugfs.c
1914
struct dentry *root)
drivers/accel/habanalabs/common/habanalabs.h
2416
struct dentry *root;
drivers/accel/ivpu/ivpu_debugfs.c
477
struct dentry *debugfs_root = vdev->drm.debugfs_root;
drivers/accel/qaic/qaic_debugfs.c
101
struct dentry *debugfs_root;
drivers/accel/qaic/qaic_debugfs.c
102
struct dentry *debugfs_dir;
drivers/acpi/acpi_dbg.c
65
static struct dentry *acpi_aml_dentry;
drivers/acpi/apei/apei-base.c
752
struct dentry *apei_get_debugfs_dir(void)
drivers/acpi/apei/apei-base.c
754
static struct dentry *dapei;
drivers/acpi/apei/apei-internal.h
120
struct dentry;
drivers/acpi/apei/apei-internal.h
121
struct dentry *apei_get_debugfs_dir(void);
drivers/acpi/apei/einj-core.c
798
static struct dentry *einj_debug_dir;
drivers/acpi/debugfs.c
13
struct dentry *acpi_debugfs_dir;
drivers/acpi/ec_sys.c
112
struct dentry *dev_dir;
drivers/acpi/ec_sys.c
28
static struct dentry *acpi_ec_debugfs_dir;
drivers/acpi/internal.h
66
extern struct dentry *acpi_debugfs_dir;
drivers/android/binder.c
6057
struct dentry *binder_binderfs_dir_entry_proc = NULL;
drivers/android/binder.c
6123
struct dentry *binderfs_entry;
drivers/android/binder.c
93
static struct dentry *binder_debugfs_dir_entry_root;
drivers/android/binder.c
94
static struct dentry *binder_debugfs_dir_entry_proc;
drivers/android/binder/rust_binder.h
18
struct dentry;
drivers/android/binder/rust_binder.h
20
struct dentry *rust_binderfs_create_proc_file(struct inode *nodp, int pid);
drivers/android/binder/rust_binder.h
21
void rust_binderfs_remove_file(struct dentry *dentry);
drivers/android/binder/rust_binder_internal.h
79
struct dentry *control_dentry;
drivers/android/binder/rust_binder_internal.h
84
struct dentry *proc_log_dir;
drivers/android/binder/rust_binderfs.c
119
struct dentry *dentry, *root;
drivers/android/binder/rust_binderfs.c
181
dentry = simple_start_creating(root, req->name);
drivers/android/binder/rust_binderfs.c
182
if (IS_ERR(dentry)) {
drivers/android/binder/rust_binderfs.c
183
ret = PTR_ERR(dentry);
drivers/android/binder/rust_binderfs.c
188
d_make_persistent(dentry, inode);
drivers/android/binder/rust_binderfs.c
190
fsnotify_create(root->d_inode, dentry);
drivers/android/binder/rust_binderfs.c
191
simple_done_creating(dentry);
drivers/android/binder/rust_binderfs.c
307
static int binderfs_show_options(struct seq_file *seq, struct dentry *root)
drivers/android/binder/rust_binderfs.c
331
static inline bool is_binderfs_control_device(const struct dentry *dentry)
drivers/android/binder/rust_binderfs.c
333
struct binderfs_info *info = dentry->d_sb->s_fs_info;
drivers/android/binder/rust_binderfs.c
335
return info->control_dentry == dentry;
drivers/android/binder/rust_binderfs.c
339
struct inode *old_dir, struct dentry *old_dentry,
drivers/android/binder/rust_binderfs.c
340
struct inode *new_dir, struct dentry *new_dentry,
drivers/android/binder/rust_binderfs.c
351
static int binderfs_unlink(struct inode *dir, struct dentry *dentry)
drivers/android/binder/rust_binderfs.c
353
if (is_binderfs_control_device(dentry))
drivers/android/binder/rust_binderfs.c
356
return simple_unlink(dir, dentry);
drivers/android/binder/rust_binderfs.c
379
struct dentry *dentry;
drivers/android/binder/rust_binderfs.c
382
struct dentry *root = sb->s_root;
drivers/android/binder/rust_binderfs.c
422
dentry = d_alloc_name(root, "binder-control");
drivers/android/binder/rust_binderfs.c
423
if (!dentry)
drivers/android/binder/rust_binderfs.c
427
info->control_dentry = dentry;
drivers/android/binder/rust_binderfs.c
428
d_make_persistent(dentry, inode);
drivers/android/binder/rust_binderfs.c
429
dput(dentry);
drivers/android/binder/rust_binderfs.c
459
void rust_binderfs_remove_file(struct dentry *dentry)
drivers/android/binder/rust_binderfs.c
461
simple_recursive_removal(dentry, NULL);
drivers/android/binder/rust_binderfs.c
464
static struct dentry *rust_binderfs_create_file(struct dentry *parent, const char *name,
drivers/android/binder/rust_binderfs.c
468
struct dentry *dentry;
drivers/android/binder/rust_binderfs.c
477
dentry = simple_start_creating(parent, name);
drivers/android/binder/rust_binderfs.c
478
if (IS_ERR(dentry)) {
drivers/android/binder/rust_binderfs.c
480
return dentry;
drivers/android/binder/rust_binderfs.c
483
d_make_persistent(dentry, new_inode);
drivers/android/binder/rust_binderfs.c
484
fsnotify_create(parent->d_inode, dentry);
drivers/android/binder/rust_binderfs.c
485
simple_done_creating(dentry);
drivers/android/binder/rust_binderfs.c
486
return dentry;
drivers/android/binder/rust_binderfs.c
489
struct dentry *rust_binderfs_create_proc_file(struct inode *nodp, int pid)
drivers/android/binder/rust_binderfs.c
492
struct dentry *dir = info->proc_log_dir;
drivers/android/binder/rust_binderfs.c
503
static struct dentry *binderfs_create_dir(struct dentry *parent,
drivers/android/binder/rust_binderfs.c
506
struct dentry *dentry;
drivers/android/binder/rust_binderfs.c
516
dentry = simple_start_creating(parent, name);
drivers/android/binder/rust_binderfs.c
517
if (IS_ERR(dentry)) {
drivers/android/binder/rust_binderfs.c
519
return dentry;
drivers/android/binder/rust_binderfs.c
524
d_make_persistent(dentry, new_inode);
drivers/android/binder/rust_binderfs.c
525
fsnotify_mkdir(parent->d_inode, dentry);
drivers/android/binder/rust_binderfs.c
526
simple_done_creating(dentry);
drivers/android/binder/rust_binderfs.c
527
return dentry;
drivers/android/binder/rust_binderfs.c
542
struct dentry *dentry, *dir;
drivers/android/binder/rust_binderfs.c
548
dentry = rust_binderfs_create_file(dir, "oneway_spam_detection",
drivers/android/binder/rust_binderfs.c
551
if (IS_ERR(dentry))
drivers/android/binder/rust_binderfs.c
552
return PTR_ERR(dentry);
drivers/android/binder/rust_binderfs.c
554
dentry = rust_binderfs_create_file(dir, "extended_error",
drivers/android/binder/rust_binderfs.c
557
if (IS_ERR(dentry))
drivers/android/binder/rust_binderfs.c
558
return PTR_ERR(dentry);
drivers/android/binder/rust_binderfs.c
560
dentry = rust_binderfs_create_file(dir, "freeze_notification",
drivers/android/binder/rust_binderfs.c
563
if (IS_ERR(dentry))
drivers/android/binder/rust_binderfs.c
564
return PTR_ERR(dentry);
drivers/android/binder/rust_binderfs.c
571
struct dentry *binder_logs_root_dir, *dentry, *proc_log_dir;
drivers/android/binder/rust_binderfs.c
582
dentry = rust_binderfs_create_file(binder_logs_root_dir, "stats",
drivers/android/binder/rust_binderfs.c
584
if (IS_ERR(dentry)) {
drivers/android/binder/rust_binderfs.c
585
ret = PTR_ERR(dentry);
drivers/android/binder/rust_binderfs.c
589
dentry = rust_binderfs_create_file(binder_logs_root_dir, "state",
drivers/android/binder/rust_binderfs.c
591
if (IS_ERR(dentry)) {
drivers/android/binder/rust_binderfs.c
592
ret = PTR_ERR(dentry);
drivers/android/binder/rust_binderfs.c
596
dentry = rust_binderfs_create_file(binder_logs_root_dir, "transactions",
drivers/android/binder/rust_binderfs.c
598
if (IS_ERR(dentry)) {
drivers/android/binder/rust_binderfs.c
599
ret = PTR_ERR(dentry);
drivers/android/binder_internal.h
445
struct dentry *debugfs_entry;
drivers/android/binder_internal.h
450
struct dentry *binderfs_entry;
drivers/android/binder_internal.h
67
struct dentry *control_dentry;
drivers/android/binder_internal.h
72
struct dentry *proc_log_dir;
drivers/android/binder_internal.h
81
extern struct dentry *binderfs_create_file(struct dentry *dir, const char *name,
drivers/android/binder_internal.h
89
static inline struct dentry *binderfs_create_file(struct dentry *dir,
drivers/android/binderfs.c
119
struct dentry *dentry, *root;
drivers/android/binderfs.c
186
dentry = simple_start_creating(root, name);
drivers/android/binderfs.c
187
if (IS_ERR(dentry)) {
drivers/android/binderfs.c
188
ret = PTR_ERR(dentry);
drivers/android/binderfs.c
192
d_make_persistent(dentry, inode);
drivers/android/binderfs.c
193
fsnotify_create(root->d_inode, dentry);
drivers/android/binderfs.c
194
simple_done_creating(dentry);
drivers/android/binderfs.c
316
static int binderfs_show_options(struct seq_file *seq, struct dentry *root)
drivers/android/binderfs.c
340
static inline bool is_binderfs_control_device(const struct dentry *dentry)
drivers/android/binderfs.c
342
struct binderfs_info *info = dentry->d_sb->s_fs_info;
drivers/android/binderfs.c
344
return info->control_dentry == dentry;
drivers/android/binderfs.c
348
struct inode *old_dir, struct dentry *old_dentry,
drivers/android/binderfs.c
349
struct inode *new_dir, struct dentry *new_dentry,
drivers/android/binderfs.c
360
static int binderfs_unlink(struct inode *dir, struct dentry *dentry)
drivers/android/binderfs.c
362
if (is_binderfs_control_device(dentry))
drivers/android/binderfs.c
365
return simple_unlink(dir, dentry);
drivers/android/binderfs.c
388
struct dentry *dentry;
drivers/android/binderfs.c
391
struct dentry *root = sb->s_root;
drivers/android/binderfs.c
432
dentry = d_alloc_name(root, "binder-control");
drivers/android/binderfs.c
433
if (!dentry)
drivers/android/binderfs.c
437
info->control_dentry = dentry;
drivers/android/binderfs.c
438
d_make_persistent(dentry, inode);
drivers/android/binderfs.c
439
dput(dentry);
drivers/android/binderfs.c
469
struct dentry *binderfs_create_file(struct dentry *parent, const char *name,
drivers/android/binderfs.c
473
struct dentry *dentry;
drivers/android/binderfs.c
479
dentry = simple_start_creating(parent, name);
drivers/android/binderfs.c
480
if (IS_ERR(dentry))
drivers/android/binderfs.c
481
return dentry;
drivers/android/binderfs.c
486
simple_done_creating(dentry);
drivers/android/binderfs.c
492
d_make_persistent(dentry, new_inode);
drivers/android/binderfs.c
493
fsnotify_create(parent_inode, dentry);
drivers/android/binderfs.c
494
simple_done_creating(dentry);
drivers/android/binderfs.c
495
return dentry; // borrowed
drivers/android/binderfs.c
498
static struct dentry *binderfs_create_dir(struct dentry *parent,
drivers/android/binderfs.c
501
struct dentry *dentry;
drivers/android/binderfs.c
507
dentry = simple_start_creating(parent, name);
drivers/android/binderfs.c
508
if (IS_ERR(dentry))
drivers/android/binderfs.c
509
return dentry;
drivers/android/binderfs.c
514
simple_done_creating(dentry);
drivers/android/binderfs.c
522
d_make_persistent(dentry, new_inode);
drivers/android/binderfs.c
524
fsnotify_mkdir(parent_inode, dentry);
drivers/android/binderfs.c
525
simple_done_creating(dentry);
drivers/android/binderfs.c
526
return dentry;
drivers/android/binderfs.c
541
struct dentry *dentry, *dir;
drivers/android/binderfs.c
547
dentry = binderfs_create_file(dir, "oneway_spam_detection",
drivers/android/binderfs.c
550
if (IS_ERR(dentry))
drivers/android/binderfs.c
551
return PTR_ERR(dentry);
drivers/android/binderfs.c
553
dentry = binderfs_create_file(dir, "extended_error",
drivers/android/binderfs.c
556
if (IS_ERR(dentry))
drivers/android/binderfs.c
557
return PTR_ERR(dentry);
drivers/android/binderfs.c
559
dentry = binderfs_create_file(dir, "freeze_notification",
drivers/android/binderfs.c
562
if (IS_ERR(dentry))
drivers/android/binderfs.c
563
return PTR_ERR(dentry);
drivers/android/binderfs.c
565
dentry = binderfs_create_file(dir, "transaction_report",
drivers/android/binderfs.c
568
if (IS_ERR(dentry))
drivers/android/binderfs.c
569
return PTR_ERR(dentry);
drivers/android/binderfs.c
576
struct dentry *binder_logs_root_dir, *dentry, *proc_log_dir;
drivers/android/binderfs.c
589
dentry = binderfs_create_file(binder_logs_root_dir,
drivers/android/binderfs.c
593
if (IS_ERR(dentry)) {
drivers/android/binderfs.c
594
ret = PTR_ERR(dentry);
drivers/base/component.c
81
static struct dentry *component_debugfs_dir;
drivers/base/devtmpfs.c
175
struct dentry *dentry;
drivers/base/devtmpfs.c
178
dentry = start_creating_path(AT_FDCWD, name, &path, LOOKUP_DIRECTORY);
drivers/base/devtmpfs.c
179
if (IS_ERR(dentry))
drivers/base/devtmpfs.c
180
return PTR_ERR(dentry);
drivers/base/devtmpfs.c
182
dentry = vfs_mkdir(&nop_mnt_idmap, d_inode(path.dentry), dentry, mode, NULL);
drivers/base/devtmpfs.c
183
if (!IS_ERR(dentry))
drivers/base/devtmpfs.c
185
d_inode(dentry)->i_private = &thread;
drivers/base/devtmpfs.c
186
end_creating_path(&path, dentry);
drivers/base/devtmpfs.c
187
return PTR_ERR_OR_ZERO(dentry);
drivers/base/devtmpfs.c
220
struct dentry *dentry;
drivers/base/devtmpfs.c
224
dentry = start_creating_path(AT_FDCWD, nodename, &path, 0);
drivers/base/devtmpfs.c
225
if (dentry == ERR_PTR(-ENOENT)) {
drivers/base/devtmpfs.c
227
dentry = start_creating_path(AT_FDCWD, nodename, &path, 0);
drivers/base/devtmpfs.c
229
if (IS_ERR(dentry))
drivers/base/devtmpfs.c
230
return PTR_ERR(dentry);
drivers/base/devtmpfs.c
232
err = vfs_mknod(&nop_mnt_idmap, d_inode(path.dentry), dentry, mode,
drivers/base/devtmpfs.c
241
inode_lock(d_inode(dentry));
drivers/base/devtmpfs.c
242
notify_change(&nop_mnt_idmap, dentry, &newattrs, NULL);
drivers/base/devtmpfs.c
243
inode_unlock(d_inode(dentry));
drivers/base/devtmpfs.c
246
d_inode(dentry)->i_private = &thread;
drivers/base/devtmpfs.c
248
end_creating_path(&path, dentry);
drivers/base/devtmpfs.c
255
struct dentry *dentry;
drivers/base/devtmpfs.c
258
dentry = start_removing_path(name, &parent);
drivers/base/devtmpfs.c
259
if (IS_ERR(dentry))
drivers/base/devtmpfs.c
260
return PTR_ERR(dentry);
drivers/base/devtmpfs.c
261
if (d_inode(dentry)->i_private == &thread)
drivers/base/devtmpfs.c
262
err = vfs_rmdir(&nop_mnt_idmap, d_inode(parent.dentry),
drivers/base/devtmpfs.c
263
dentry, NULL);
drivers/base/devtmpfs.c
267
end_removing_path(&parent, dentry);
drivers/base/devtmpfs.c
320
struct dentry *dentry;
drivers/base/devtmpfs.c
325
dentry = start_removing_path(nodename, &parent);
drivers/base/devtmpfs.c
326
if (IS_ERR(dentry))
drivers/base/devtmpfs.c
327
return PTR_ERR(dentry);
drivers/base/devtmpfs.c
329
inode = d_inode(dentry);
drivers/base/devtmpfs.c
341
inode_lock(d_inode(dentry));
drivers/base/devtmpfs.c
342
notify_change(&nop_mnt_idmap, dentry, &newattrs, NULL);
drivers/base/devtmpfs.c
343
inode_unlock(d_inode(dentry));
drivers/base/devtmpfs.c
344
err = vfs_unlink(&nop_mnt_idmap, d_inode(parent.dentry),
drivers/base/devtmpfs.c
345
dentry, NULL);
drivers/base/devtmpfs.c
349
end_removing_path(&parent, dentry);
drivers/base/regmap/internal.h
85
struct dentry *debugfs;
drivers/base/regmap/regmap-debugfs.c
24
static struct dentry *regmap_debugfs_root;
drivers/block/aoe/aoe.h
172
struct dentry *debugfs;
drivers/block/aoe/aoeblk.c
25
static struct dentry *aoe_debugfs_dir;
drivers/block/brd.c
261
static struct dentry *brd_debugfs_dir;
drivers/block/drbd/drbd_debugfs.c
20
static struct dentry *drbd_debugfs_root;
drivers/block/drbd/drbd_debugfs.c
21
static struct dentry *drbd_debugfs_version;
drivers/block/drbd/drbd_debugfs.c
22
static struct dentry *drbd_debugfs_resources;
drivers/block/drbd/drbd_debugfs.c
23
static struct dentry *drbd_debugfs_minors;
drivers/block/drbd/drbd_debugfs.c
422
struct dentry *parent;
drivers/block/drbd/drbd_debugfs.c
427
parent = file->f_path.dentry->d_parent;
drivers/block/drbd/drbd_debugfs.c
431
if (simple_positive(file->f_path.dentry)
drivers/block/drbd/drbd_debugfs.c
467
struct dentry *dentry;
drivers/block/drbd/drbd_debugfs.c
469
dentry = debugfs_create_dir(resource->name, drbd_debugfs_resources);
drivers/block/drbd/drbd_debugfs.c
470
resource->debugfs_res = dentry;
drivers/block/drbd/drbd_debugfs.c
472
dentry = debugfs_create_dir("volumes", resource->debugfs_res);
drivers/block/drbd/drbd_debugfs.c
473
resource->debugfs_res_volumes = dentry;
drivers/block/drbd/drbd_debugfs.c
475
dentry = debugfs_create_dir("connections", resource->debugfs_res);
drivers/block/drbd/drbd_debugfs.c
476
resource->debugfs_res_connections = dentry;
drivers/block/drbd/drbd_debugfs.c
478
dentry = debugfs_create_file("in_flight_summary", 0440,
drivers/block/drbd/drbd_debugfs.c
481
resource->debugfs_res_in_flight_summary = dentry;
drivers/block/drbd/drbd_debugfs.c
484
static void drbd_debugfs_remove(struct dentry **dp)
drivers/block/drbd/drbd_debugfs.c
622
struct dentry *conns_dir = connection->resource->debugfs_res_connections;
drivers/block/drbd/drbd_debugfs.c
623
struct dentry *dentry;
drivers/block/drbd/drbd_debugfs.c
628
dentry = debugfs_create_dir("peer", conns_dir);
drivers/block/drbd/drbd_debugfs.c
629
connection->debugfs_conn = dentry;
drivers/block/drbd/drbd_debugfs.c
631
dentry = debugfs_create_file("callback_history", 0440,
drivers/block/drbd/drbd_debugfs.c
634
connection->debugfs_conn_callback_history = dentry;
drivers/block/drbd/drbd_debugfs.c
636
dentry = debugfs_create_file("oldest_requests", 0440,
drivers/block/drbd/drbd_debugfs.c
639
connection->debugfs_conn_oldest_requests = dentry;
drivers/block/drbd/drbd_debugfs.c
773
struct dentry *vols_dir = device->resource->debugfs_res_volumes;
drivers/block/drbd/drbd_debugfs.c
778
struct dentry *dentry;
drivers/block/drbd/drbd_debugfs.c
783
dentry = debugfs_create_dir(vnr_buf, vols_dir);
drivers/block/drbd/drbd_debugfs.c
784
device->debugfs_vol = dentry;
drivers/block/drbd/drbd_debugfs.c
791
dentry = debugfs_create_symlink(minor_buf, drbd_debugfs_minors, slink_name);
drivers/block/drbd/drbd_debugfs.c
792
device->debugfs_minor = dentry;
drivers/block/drbd/drbd_debugfs.c
797
dentry = debugfs_create_file(#name, 0440, \
drivers/block/drbd/drbd_debugfs.c
800
device->debugfs_vol_ ## name = dentry; \
drivers/block/drbd/drbd_debugfs.c
829
struct dentry *conn_dir = peer_device->connection->debugfs_conn;
drivers/block/drbd/drbd_debugfs.c
830
struct dentry *dentry;
drivers/block/drbd/drbd_debugfs.c
834
dentry = debugfs_create_dir(vnr_buf, conn_dir);
drivers/block/drbd/drbd_debugfs.c
835
peer_device->debugfs_peer_dev = dentry;
drivers/block/drbd/drbd_debugfs.c
878
struct dentry *dentry;
drivers/block/drbd/drbd_debugfs.c
880
dentry = debugfs_create_dir("drbd", NULL);
drivers/block/drbd/drbd_debugfs.c
881
drbd_debugfs_root = dentry;
drivers/block/drbd/drbd_debugfs.c
883
dentry = debugfs_create_file("version", 0444, drbd_debugfs_root, NULL, &drbd_version_fops);
drivers/block/drbd/drbd_debugfs.c
884
drbd_debugfs_version = dentry;
drivers/block/drbd/drbd_debugfs.c
886
dentry = debugfs_create_dir("resources", drbd_debugfs_root);
drivers/block/drbd/drbd_debugfs.c
887
drbd_debugfs_resources = dentry;
drivers/block/drbd/drbd_debugfs.c
889
dentry = debugfs_create_dir("minors", drbd_debugfs_root);
drivers/block/drbd/drbd_debugfs.c
890
drbd_debugfs_minors = dentry;
drivers/block/drbd/drbd_int.h
587
struct dentry *debugfs_res;
drivers/block/drbd/drbd_int.h
588
struct dentry *debugfs_res_volumes;
drivers/block/drbd/drbd_int.h
589
struct dentry *debugfs_res_connections;
drivers/block/drbd/drbd_int.h
590
struct dentry *debugfs_res_in_flight_summary;
drivers/block/drbd/drbd_int.h
623
struct dentry *debugfs_conn;
drivers/block/drbd/drbd_int.h
624
struct dentry *debugfs_conn_callback_history;
drivers/block/drbd/drbd_int.h
625
struct dentry *debugfs_conn_oldest_requests;
drivers/block/drbd/drbd_int.h
743
struct dentry *debugfs_peer_dev;
drivers/block/drbd/drbd_int.h
754
struct dentry *debugfs_minor;
drivers/block/drbd/drbd_int.h
755
struct dentry *debugfs_vol;
drivers/block/drbd/drbd_int.h
756
struct dentry *debugfs_vol_oldest_requests;
drivers/block/drbd/drbd_int.h
757
struct dentry *debugfs_vol_act_log_extents;
drivers/block/drbd/drbd_int.h
758
struct dentry *debugfs_vol_resync_extents;
drivers/block/drbd/drbd_int.h
759
struct dentry *debugfs_vol_data_gen_id;
drivers/block/drbd/drbd_int.h
760
struct dentry *debugfs_vol_ed_gen_id;
drivers/block/mtip32xx/mtip32xx.c
102
static struct dentry *dfs_parent;
drivers/block/mtip32xx/mtip32xx.h
448
struct dentry *dfs_node;
drivers/block/nbd.c
107
struct dentry *dbg_dir;
drivers/block/nbd.c
160
static struct dentry *nbd_dbg_dir;
drivers/block/nbd.c
1822
struct dentry *dir;
drivers/block/nbd.c
1852
struct dentry *dbg_dir;
drivers/block/ublk_drv.c
5168
d_backing_inode(path.dentry), mask);
drivers/block/zram/zram_drv.c
1528
static struct dentry *zram_debugfs_root;
drivers/block/zram/zram_drv.h
144
struct dentry *debugfs_dir;
drivers/bluetooth/btmrvl_debugfs.c
17
struct dentry *config_dir;
drivers/bluetooth/btmrvl_debugfs.c
18
struct dentry *status_dir;
drivers/bluetooth/hci_qca.c
661
struct dentry *ibs_dir;
drivers/bus/mhi/host/debugfs.c
376
static struct dentry *mhi_debugfs_root;
drivers/bus/moxtet.c
556
struct dentry *root, *entry;
drivers/bus/mvebu-mbus.c
137
struct dentry *debugfs_root;
drivers/bus/mvebu-mbus.c
138
struct dentry *debugfs_sdram;
drivers/bus/mvebu-mbus.c
139
struct dentry *debugfs_devs;
drivers/bus/stm32_rifsc.c
610
struct dentry *root = NULL;
drivers/cache/sifive_ccache.c
74
static struct dentry *sifive_test;
drivers/cdx/cdx.c
83
static struct dentry *cdx_debugfs_dir;
drivers/char/tpm/eventlog/common.c
108
struct dentry *dentry;
drivers/char/tpm/eventlog/common.c
136
dentry =
drivers/char/tpm/eventlog/common.c
141
if (IS_ERR(dentry))
drivers/char/tpm/eventlog/common.c
150
dentry =
drivers/char/tpm/eventlog/common.c
155
if (IS_ERR(dentry))
drivers/char/virtio_console.c
191
struct dentry *debugfs_file;
drivers/char/virtio_console.c
45
struct dentry *debugfs_dir;
drivers/clk/baikal-t1/ccu-div.c
440
static void ccu_div_var_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/baikal-t1/ccu-div.c
478
dentry, &bits[didx],
drivers/clk/baikal-t1/ccu-div.c
483
debugfs_create_file_unsafe("div_clkdiv", ccu_div_dbgfs_mode, dentry,
drivers/clk/baikal-t1/ccu-div.c
487
static void ccu_div_gate_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/baikal-t1/ccu-div.c
498
debugfs_create_file_unsafe(bit->name, ccu_div_dbgfs_mode, dentry, bit,
drivers/clk/baikal-t1/ccu-div.c
501
debugfs_create_file_unsafe("div_clkdiv", 0400, dentry, div,
drivers/clk/baikal-t1/ccu-div.c
505
static void ccu_div_buf_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/baikal-t1/ccu-div.c
516
debugfs_create_file_unsafe(bit->name, ccu_div_dbgfs_mode, dentry, bit,
drivers/clk/baikal-t1/ccu-div.c
520
static void ccu_div_fixed_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/baikal-t1/ccu-div.c
524
debugfs_create_file_unsafe("div_clkdiv", 0400, dentry, div,
drivers/clk/baikal-t1/ccu-pll.c
441
static void ccu_pll_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/baikal-t1/ccu-pll.c
457
dentry, &bits[idx],
drivers/clk/baikal-t1/ccu-pll.c
470
dentry, &flds[idx],
drivers/clk/bcm/clk-bcm2835.c
1300
struct dentry *dentry)
drivers/clk/bcm/clk-bcm2835.c
1309
dentry);
drivers/clk/bcm/clk-bcm2835.c
402
size_t nregs, struct dentry *dentry)
drivers/clk/bcm/clk-bcm2835.c
414
debugfs_create_regset32("regdump", S_IRUGO, dentry, regset);
drivers/clk/bcm/clk-bcm2835.c
756
struct dentry *dentry)
drivers/clk/bcm/clk-bcm2835.c
782
bcm2835_debugfs_regset(cprman, 0, regs, 7, dentry);
drivers/clk/bcm/clk-bcm2835.c
886
struct dentry *dentry)
drivers/clk/bcm/clk-bcm2835.c
902
bcm2835_debugfs_regset(cprman, 0, regs, 2, dentry);
drivers/clk/clk-fractional-divider.c
251
static void clk_fd_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/clk-fractional-divider.c
253
debugfs_create_file("numerator", 0444, dentry, hw, &clk_fd_numerator_fops);
drivers/clk/clk-fractional-divider.c
254
debugfs_create_file("denominator", 0444, dentry, hw, &clk_fd_denominator_fops);
drivers/clk/clk.c
100
struct dentry *dentry;
drivers/clk/clk.c
3275
static struct dentry *rootdir;
drivers/clk/clk.c
3702
static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry)
drivers/clk/clk.c
3704
struct dentry *root;
drivers/clk/clk.c
3710
core->dentry = root;
drivers/clk/clk.c
3744
core->ops->debug_init(core->hw, core->dentry);
drivers/clk/clk.c
3776
debugfs_remove_recursive(core->dentry);
drivers/clk/clk.c
3777
core->dentry = NULL;
drivers/clk/davinci/pll.c
192
static void davinci_pll_debug_init(struct clk_hw *hw, struct dentry *dentry);
drivers/clk/davinci/pll.c
940
static void davinci_pll_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/davinci/pll.c
953
debugfs_create_regset32("registers", 0400, dentry, regset);
drivers/clk/starfive/clk-starfive-jh7110-pll.c
427
static void jh7110_pll_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/starfive/clk-starfive-jh7110-pll.c
431
debugfs_create_file("registers", 0400, dentry, pll,
drivers/clk/starfive/clk-starfive-jh71x0.c
202
static void jh71x0_clk_debug_init(struct clk_hw *hw, struct dentry *dentry)
drivers/clk/starfive/clk-starfive-jh71x0.c
220
debugfs_create_regset32("registers", 0400, dentry, regset);
drivers/clk/tegra/clk-dfll.c
1365
struct dentry *root;
drivers/clk/tegra/clk-dfll.c
282
struct dentry *debugfs_dir;
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h
157
struct dentry *dbgfs_dir;
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h
158
struct dentry *dbgfs_stats;
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
1055
struct dentry *dbgfs_dir;
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
1056
struct dentry *dbgfs_stats __maybe_unused;
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h
232
struct dentry *dbgfs_dir;
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h
233
struct dentry *dbgfs_stats;
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
881
struct dentry *dbgfs_dir __maybe_unused;
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
882
struct dentry *dbgfs_stats __maybe_unused;
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h
167
struct dentry *dbgfs_dir;
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h
168
struct dentry *dbgfs_stats;
drivers/crypto/amlogic/amlogic-gxl-core.c
281
struct dentry *dbgfs_dir;
drivers/crypto/amlogic/amlogic-gxl.h
100
struct dentry *dbgfs_dir;
drivers/crypto/axis/artpec6_crypto.c
2814
static struct dentry *dbgfs_root;
drivers/crypto/bcm/cipher.h
434
struct dentry *debugfs_dir;
drivers/crypto/bcm/cipher.h
435
struct dentry *debugfs_stats;
drivers/crypto/caam/caamalg_qi2.h
68
struct dentry *dfs_root;
drivers/crypto/caam/ctrl.c
869
struct dentry *dfs_root;
drivers/crypto/caam/debugfs.c
47
struct dentry *root)
drivers/crypto/caam/debugfs.h
13
struct caam_perfmon __force *perfmon, struct dentry *root);
drivers/crypto/caam/debugfs.h
17
struct dentry *root)
drivers/crypto/caam/debugfs.h
7
struct dentry;
drivers/crypto/caam/intern.h
137
struct dentry *ctl; /* controller dir */
drivers/crypto/cavium/nitrox/nitrox_debugfs.c
62
struct dentry *dir;
drivers/crypto/cavium/nitrox/nitrox_dev.h
264
struct dentry *debugfs_dir;
drivers/crypto/ccp/ccp-debugfs.c
277
static struct dentry *ccp_debugfs_dir;
drivers/crypto/ccp/ccp-debugfs.c
286
struct dentry *debugfs_q_instance;
drivers/crypto/ccp/ccp-dev.h
438
struct dentry *debugfs_instance;
drivers/crypto/ccree/cc_debugfs.c
22
static struct dentry *cc_debugfs_dir;
drivers/crypto/ccree/cc_driver.h
145
struct dentry *dir; /* for debugfs */
drivers/crypto/gemini/sl3516-ce-core.c
480
struct dentry *dbgfs_dir __maybe_unused;
drivers/crypto/gemini/sl3516-ce-core.c
481
struct dentry *dbgfs_stats __maybe_unused;
drivers/crypto/gemini/sl3516-ce.h
256
struct dentry *dbgfs_dir;
drivers/crypto/gemini/sl3516-ce.h
257
struct dentry *dbgfs_stats;
drivers/crypto/hisilicon/debugfs.c
1097
static void qm_create_debugfs_file(struct hisi_qm *qm, struct dentry *dir,
drivers/crypto/hisilicon/debugfs.c
1141
struct dentry *qm_d;
drivers/crypto/hisilicon/hpre/hpre_main.c
1018
static int hpre_create_debugfs_file(struct hisi_qm *qm, struct dentry *dir,
drivers/crypto/hisilicon/hpre/hpre_main.c
1023
struct dentry *file_dir;
drivers/crypto/hisilicon/hpre/hpre_main.c
1068
struct dentry *tmp_d;
drivers/crypto/hisilicon/hpre/hpre_main.c
1143
struct dentry *parent;
drivers/crypto/hisilicon/hpre/hpre_main.c
125
static struct dentry *hpre_debugfs_root;
drivers/crypto/hisilicon/sec2/sec_main.c
147
static struct dentry *sec_debugfs_root;
drivers/crypto/hisilicon/sec2/sec_main.c
948
struct dentry *tmp_d;
drivers/crypto/hisilicon/zip/zip_main.c
131
static struct dentry *hzip_debugfs_root;
drivers/crypto/hisilicon/zip/zip_main.c
887
struct dentry *tmp_d;
drivers/crypto/hisilicon/zip/zip_main.c
946
struct dentry *tmp_dir;
drivers/crypto/intel/iaa/iaa_crypto_stats.c
29
static struct dentry *iaa_crypto_debugfs_root;
drivers/crypto/intel/qat/qat_common/adf_accel_devices.h
432
struct dentry *debugfs_pm_status;
drivers/crypto/intel/qat/qat_common/adf_accel_devices.h
461
struct dentry *debugfs_dir;
drivers/crypto/intel/qat/qat_common/adf_accel_devices.h
462
struct dentry *fw_cntr_dbgfile;
drivers/crypto/intel/qat/qat_common/adf_accel_devices.h
463
struct dentry *cnv_dbgfile;
drivers/crypto/intel/qat/qat_common/adf_cfg.h
28
struct dentry *debug;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
10
struct dentry;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
42
struct dentry *base_dir;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
43
struct dentry *status;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
44
struct dentry *cfg;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
45
struct dentry *sent;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
46
struct dentry *failed;
drivers/crypto/intel/qat/qat_common/adf_heartbeat.h
48
struct dentry *inject_error;
drivers/crypto/intel/qat/qat_common/adf_heartbeat_dbgfs.c
214
struct dentry *inject_error __maybe_unused;
drivers/crypto/intel/qat/qat_common/adf_telemetry.h
15
struct dentry;
drivers/crypto/intel/qat/qat_common/adf_telemetry.h
63
struct dentry *dbg_dir;
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
701
struct dentry *parent = accel_dev->debugfs_dir;
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
704
struct dentry *dir;
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
726
struct dentry *dbg_dir;
drivers/crypto/intel/qat/qat_common/adf_transport_debug.c
201
struct dentry *parent = accel_dev->transport->debug;
drivers/crypto/intel/qat/qat_common/adf_transport_internal.h
12
struct dentry *debug;
drivers/crypto/intel/qat/qat_common/adf_transport_internal.h
41
struct dentry *bank_debug_dir;
drivers/crypto/intel/qat/qat_common/adf_transport_internal.h
42
struct dentry *bank_debug_cfg;
drivers/crypto/intel/qat/qat_common/adf_transport_internal.h
47
struct dentry *debug;
drivers/crypto/nx/nx.h
85
struct dentry *dfs_root;
drivers/crypto/nx/nx_debugfs.c
35
struct dentry *root;
drivers/crypto/rockchip/rk3288_crypto.c
238
struct dentry *dbgfs_dir __maybe_unused;
drivers/crypto/rockchip/rk3288_crypto.c
239
struct dentry *dbgfs_stats __maybe_unused;
drivers/crypto/rockchip/rk3288_crypto.h
200
struct dentry *dbgfs_dir;
drivers/crypto/rockchip/rk3288_crypto.h
201
struct dentry *dbgfs_stats;
drivers/cxl/core/core.h
97
struct dentry *cxl_debugfs_create_dir(const char *dir);
drivers/cxl/core/mbox.c
1554
struct dentry *mbox_debugfs;
drivers/cxl/core/port.c
2491
static struct dentry *cxl_debugfs;
drivers/cxl/core/port.c
2493
struct dentry *cxl_debugfs_create_dir(const char *dir)
drivers/cxl/core/port.c
817
struct dentry *dir;
drivers/cxl/core/region.c
4044
static void remove_debugfs(void *dentry)
drivers/cxl/core/region.c
4046
debugfs_remove_recursive(dentry);
drivers/cxl/core/region.c
4149
struct dentry *dentry;
drivers/cxl/core/region.c
4169
dentry = cxl_debugfs_create_dir(dev_name(dev));
drivers/cxl/core/region.c
4170
debugfs_create_file("inject_poison", 0200, dentry, cxlr,
drivers/cxl/core/region.c
4172
debugfs_create_file("clear_poison", 0200, dentry, cxlr,
drivers/cxl/core/region.c
4175
return devm_add_action_or_reset(dev, remove_debugfs, dentry);
drivers/cxl/cxlmem.h
934
struct dentry *cxl_debugfs_create_dir(const char *dir);
drivers/cxl/mem.c
102
rc = devm_add_action_or_reset(dev, remove_debugfs, dentry);
drivers/cxl/mem.c
33
static void remove_debugfs(void *dentry)
drivers/cxl/mem.c
35
debugfs_remove_recursive(dentry);
drivers/cxl/mem.c
75
struct dentry *dentry;
drivers/cxl/mem.c
92
dentry = cxl_debugfs_create_dir(dev_name(dev));
drivers/cxl/mem.c
93
debugfs_create_devm_seqfile(dev, "dpamem", dentry, cxl_mem_dpa_show);
drivers/cxl/mem.c
96
debugfs_create_file("inject_poison", 0200, dentry, cxlmd,
drivers/cxl/mem.c
99
debugfs_create_file("clear_poison", 0200, dentry, cxlmd,
drivers/devfreq/devfreq.c
40
static struct dentry *devfreq_debugfs;
drivers/dma-buf/dma-buf.c
150
static char *dmabuffs_dname(struct dentry *dentry, char *buffer, int buflen)
drivers/dma-buf/dma-buf.c
156
dmabuf = dentry->d_fsdata;
drivers/dma-buf/dma-buf.c
163
dentry->d_name.name, ret > 0 ? name : "");
drivers/dma-buf/dma-buf.c
166
static void dma_buf_release(struct dentry *dentry)
drivers/dma-buf/dma-buf.c
170
dmabuf = dentry->d_fsdata;
drivers/dma-buf/dma-buf.c
1750
static struct dentry *dma_buf_debugfs_dir;
drivers/dma-buf/dma-buf.c
1754
struct dentry *d;
drivers/dma-buf/dma-buf.c
764
file->f_path.dentry->d_fsdata = dmabuf;
drivers/dma-buf/sync_debug.c
11
static struct dentry *dbgfs;
drivers/dma/amd/ptdma/ptdma-debugfs.c
103
struct dentry *debugfs_q_instance;
drivers/dma/bcm-sba-raid.c
158
struct dentry *root;
drivers/dma/dmaengine.c
69
static struct dentry *rootdir;
drivers/dma/dmaengine.h
188
static inline struct dentry *
drivers/dma/dmaengine.h
193
struct dentry;
drivers/dma/dmaengine.h
194
static inline struct dentry *
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
101
int nr_entries, struct dentry *dent)
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
120
u16 ch, struct dentry *dent)
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
140
dw_edma_debugfs_regs_wr(struct dw_edma *dw, struct dentry *dent)
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
177
struct dentry *regs_dent, *ch_dent;
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
202
struct dentry *dent)
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
240
struct dentry *regs_dent, *ch_dent;
drivers/dma/dw-edma/dw-edma-v0-debugfs.c
270
struct dentry *regs_dent;
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
116
static void dw_hdma_debugfs_regs_wr(struct dw_edma *dw, struct dentry *dent)
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
118
struct dentry *regs_dent, *ch_dent;
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
133
static void dw_hdma_debugfs_regs_rd(struct dw_edma *dw, struct dentry *dent)
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
135
struct dentry *regs_dent, *ch_dent;
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
152
struct dentry *regs_dent;
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
61
int nr_entries, struct dentry *dent)
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
80
u16 ch, struct dentry *dent)
drivers/dma/hisi_dma.c
877
struct dentry *chan_dir;
drivers/dma/idxd/debugfs.c
13
static struct dentry *idxd_debugfs_dir;
drivers/dma/idxd/idxd.h
376
struct dentry *dbgfs_dir;
drivers/dma/idxd/idxd.h
377
struct dentry *dbgfs_evl_file;
drivers/dma/pxa_dma.c
132
struct dentry *dbgfs_root;
drivers/dma/pxa_dma.c
133
struct dentry **dbgfs_chan;
drivers/dma/pxa_dma.c
321
static struct dentry *pxad_dbg_alloc_chan(struct pxad_device *pdev,
drivers/dma/pxa_dma.c
322
int ch, struct dentry *chandir)
drivers/dma/pxa_dma.c
325
struct dentry *chan;
drivers/dma/pxa_dma.c
342
struct dentry *chandir;
drivers/dma/pxa_dma.c
345
kmalloc_objs(struct dentry *, pdev->nr_chans);
drivers/dma/qcom/hidma.h
126
struct dentry *debugfs;
drivers/dma/qcom/hidma_dbg.c
145
struct dentry *dir;
drivers/dma/xilinx/xilinx_dpdma.c
454
struct dentry *dent;
drivers/edac/altera_edac.h
381
struct dentry *debugfs_dir;
drivers/edac/armada_xp_edac.c
386
struct dentry *debugfs;
drivers/edac/debugfs.c
112
struct dentry *
drivers/edac/debugfs.c
113
edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent,
drivers/edac/debugfs.c
125
struct dentry *parent, u8 *value)
drivers/edac/debugfs.c
136
struct dentry *parent, u16 *value)
drivers/edac/debugfs.c
147
struct dentry *parent, u32 *value)
drivers/edac/debugfs.c
60
struct dentry *parent;
drivers/edac/debugfs.c
7
static struct dentry *edac_debugfs;
drivers/edac/debugfs.c
86
struct dentry *edac_debugfs_create_dir(const char *dirname)
drivers/edac/debugfs.c
96
struct dentry *
drivers/edac/debugfs.c
97
edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent)
drivers/edac/edac_module.h
69
struct dentry *edac_debugfs_create_dir(const char *dirname);
drivers/edac/edac_module.h
70
struct dentry *
drivers/edac/edac_module.h
71
edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent);
drivers/edac/edac_module.h
72
struct dentry *
drivers/edac/edac_module.h
73
edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent,
drivers/edac/edac_module.h
76
struct dentry *parent, u8 *value);
drivers/edac/edac_module.h
78
struct dentry *parent, u16 *value);
drivers/edac/edac_module.h
80
struct dentry *parent, u32 *value);
drivers/edac/edac_module.h
85
static inline struct dentry *edac_debugfs_create_dir(const char *dirname) { return NULL; }
drivers/edac/edac_module.h
86
static inline struct dentry *
drivers/edac/edac_module.h
87
edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) { return NULL; }
drivers/edac/edac_module.h
88
static inline struct dentry *
drivers/edac/edac_module.h
89
edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent,
drivers/edac/edac_module.h
92
struct dentry *parent, u8 *value) { }
drivers/edac/edac_module.h
94
struct dentry *parent, u16 *value) { }
drivers/edac/edac_module.h
96
struct dentry *parent, u32 *value) { }
drivers/edac/i5100_edac.c
350
struct dentry *debugfs;
drivers/edac/i5100_edac.c
353
static struct dentry *i5100_debugfs;
drivers/edac/igen6_edac.c
1181
static struct dentry *igen6_test;
drivers/edac/npcm_edac.c
98
struct dentry *debugfs;
drivers/edac/pnd2_edac.c
1421
static struct dentry *pnd2_test;
drivers/edac/skx_common.c
855
static struct dentry *skx_test;
drivers/edac/thunderx_edac.c
1052
struct dentry *debugfs;
drivers/edac/thunderx_edac.c
1742
struct dentry *debugfs;
drivers/edac/thunderx_edac.c
460
static int thunderx_create_debugfs_nodes(struct dentry *parent,
drivers/edac/thunderx_edac.c
466
struct dentry *ent;
drivers/edac/versal_edac.c
244
struct dentry *debugfs;
drivers/edac/xgene_edac.c
1169
struct dentry *dbgfs_dir;
drivers/edac/xgene_edac.c
55
struct dentry *dfs;
drivers/edac/xgene_edac.c
865
struct dentry *dbgfs_dir;
drivers/edac/zynqmp_edac.c
117
struct dentry *debugfs_dir;
drivers/extcon/extcon-rtk-type-c.c
99
struct dentry *debug_dir;
drivers/firmware/arm_scmi/common.h
321
struct dentry *top_dentry;
drivers/firmware/arm_scmi/driver.c
2989
struct dentry *trans)
drivers/firmware/arm_scmi/driver.c
2991
struct dentry *counters;
drivers/firmware/arm_scmi/driver.c
3018
struct dentry *trans, *top_dentry;
drivers/firmware/arm_scmi/driver.c
3446
static struct dentry *scmi_debugfs_init(void)
drivers/firmware/arm_scmi/driver.c
3448
struct dentry *d;
drivers/firmware/arm_scmi/driver.c
61
static struct dentry *scmi_top_dentry;
drivers/firmware/arm_scmi/raw_mode.c
1214
struct dentry *top_dentry, int instance_id,
drivers/firmware/arm_scmi/raw_mode.c
1241
raw->dentry = debugfs_create_dir("raw", top_dentry);
drivers/firmware/arm_scmi/raw_mode.c
1243
debugfs_create_file("reset", 0200, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1246
debugfs_create_file("message", 0600, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1249
debugfs_create_file("message_async", 0600, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1252
debugfs_create_file("message_poll", 0600, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1255
debugfs_create_file("message_poll_async", 0600, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1258
debugfs_create_file("notification", 0400, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1261
debugfs_create_file("errors", 0400, raw->dentry, raw,
drivers/firmware/arm_scmi/raw_mode.c
1271
struct dentry *top_chans;
drivers/firmware/arm_scmi/raw_mode.c
1273
top_chans = debugfs_create_dir("channels", raw->dentry);
drivers/firmware/arm_scmi/raw_mode.c
1277
struct dentry *chd;
drivers/firmware/arm_scmi/raw_mode.c
1317
debugfs_remove_recursive(raw->dentry);
drivers/firmware/arm_scmi/raw_mode.c
188
struct dentry *dentry;
drivers/firmware/arm_scmi/raw_mode.h
21
struct dentry *top_dentry, int instance_id,
drivers/firmware/cirrus/cs_dsp.c
509
void cs_dsp_init_debugfs(struct cs_dsp *dsp, struct dentry *debugfs_root)
drivers/firmware/cirrus/cs_dsp.c
511
struct dentry *root = NULL;
drivers/firmware/cirrus/cs_dsp.c
544
void cs_dsp_init_debugfs(struct cs_dsp *dsp, struct dentry *debugfs_root)
drivers/firmware/efi/efi.c
360
struct dentry *efi_debugfs;
drivers/firmware/imx/sm-misc.c
75
debugfs_remove((struct dentry *)p);
drivers/firmware/imx/sm-misc.c
82
struct dentry *scmi_imx_dentry;
drivers/firmware/tegra/bpmp-debugfs.c
404
struct dentry *parent,
drivers/firmware/tegra/bpmp-debugfs.c
409
struct dentry *dentry;
drivers/firmware/tegra/bpmp-debugfs.c
447
dentry = debugfs_create_dir(name, parent);
drivers/firmware/tegra/bpmp-debugfs.c
448
if (IS_ERR(dentry)) {
drivers/firmware/tegra/bpmp-debugfs.c
449
err = PTR_ERR(dentry);
drivers/firmware/tegra/bpmp-debugfs.c
459
err = bpmp_populate_debugfs_inband(bpmp, dentry,
drivers/firmware/tegra/bpmp-debugfs.c
468
dentry = debugfs_create_file(name, mode, parent, bpmp,
drivers/firmware/tegra/bpmp-debugfs.c
470
if (IS_ERR(dentry)) {
drivers/firmware/tegra/bpmp-debugfs.c
691
struct dentry *parent, u32 depth)
drivers/firmware/tegra/bpmp-debugfs.c
696
struct dentry *dentry;
drivers/firmware/tegra/bpmp-debugfs.c
720
dentry = debugfs_create_dir(name, parent);
drivers/firmware/tegra/bpmp-debugfs.c
721
if (IS_ERR(dentry))
drivers/firmware/tegra/bpmp-debugfs.c
723
err = bpmp_populate_dir(bpmp, seqbuf, dentry, depth+1);
drivers/firmware/tegra/bpmp-debugfs.c
731
dentry = debugfs_create_file(name, mode,
drivers/firmware/tegra/bpmp-debugfs.c
734
if (IS_ERR(dentry))
drivers/firmware/tegra/bpmp-debugfs.c
774
struct dentry *root;
drivers/firmware/tegra/bpmp-debugfs.c
89
filename = dentry_path(file->f_path.dentry, buf, size);
drivers/firmware/ti_sci.c
111
struct dentry *d;
drivers/firmware/xilinx/zynqmp-debug.c
61
static struct dentry *firmware_debugfs_root;
drivers/gpio/gpio-mockup.c
57
struct dentry *dbg_dir;
drivers/gpio/gpio-mockup.c
74
static struct dentry *gpio_mockup_dbg_dir;
drivers/gpio/gpio-sloppy-logic-analyzer.c
47
struct dentry *debug_dir;
drivers/gpio/gpio-sloppy-logic-analyzer.c
48
struct dentry *blob_dent;
drivers/gpio/gpio-sloppy-logic-analyzer.c
55
static struct dentry *gpio_la_poll_debug_dir;
drivers/gpio/gpio-virtuser.c
44
static struct dentry *gpio_virtuser_dbg_root;
drivers/gpio/gpio-virtuser.c
51
struct dentry *dbgfs_dir;
drivers/gpio/gpio-virtuser.c
755
size_t num_attrs, struct dentry *parent, void *data)
drivers/gpio/gpio-virtuser.c
757
struct dentry *ret;
drivers/gpio/gpio-virtuser.c
773
struct dentry *dbgfs_entry)
drivers/gpio/gpio-virtuser.c
802
struct dentry *dbgfs_entry)
drivers/gpio/gpio-virtuser.c
837
struct dentry *dbgfs_entry = data;
drivers/gpio/gpio-virtuser.c
908
struct dentry *dbgfs_entry;
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c
975
void amdgpu_aca_smu_debugfs_init(struct amdgpu_device *adev, struct dentry *root)
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h
229
void amdgpu_aca_smu_debugfs_init(struct amdgpu_device *adev, struct dentry *root);
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
1626
struct dentry *ent, *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
2006
struct dentry *root = adev_to_drm(adev)->primary->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
2007
struct dentry *ent;
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
989
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
1347
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
2517
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
2588
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
512
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
415
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
2008
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c
619
void amdgpu_mca_smu_debugfs_init(struct amdgpu_device *adev, struct dentry *root)
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h
165
void amdgpu_mca_smu_debugfs_init(struct amdgpu_device *adev, struct dentry *root);
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
826
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c
377
struct dentry *dir = debugfs_create_dir("ta_if", minor->debugfs_root);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
2170
static struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
2175
struct dentry *dir;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
2215
struct dentry *dir)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
2253
struct dentry *dir;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
545
struct dentry *de_ras_eeprom_table;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1266
struct dentry *de = ras->de_ras_eeprom_table;
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
722
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
447
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
2840
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c
522
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
74
struct dentry *debugfs_queue;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
1229
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
1449
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/amdkfd/kfd_debugfs.c
29
static struct dentry *debugfs_root;
drivers/gpu/drm/amd/amdkfd/kfd_debugfs.c
30
static struct dentry *debugfs_proc;
drivers/gpu/drm/amd/amdkfd/kfd_debugfs.c
35
struct dentry *proc_dentry;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
3608
struct dentry *dir = connector->base.debugfs_entry;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
3890
struct dentry *dir = debugfs_lookup("crc", crtc->debugfs_entry);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
4361
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
5093
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/arm/display/komeda/komeda_dev.h
201
struct dentry *debugfs_root;
drivers/gpu/drm/armada/armada_drm.h
72
struct dentry *de;
drivers/gpu/drm/bridge/ite-it6505.c
481
struct dentry *debugfs;
drivers/gpu/drm/bridge/panel.c
198
struct dentry *root)
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
260
struct dentry *debugfs;
drivers/gpu/drm/bridge/ti-sn65dsi86.c
1242
static void ti_sn65dsi86_debugfs_init(struct drm_bridge *bridge, struct dentry *root)
drivers/gpu/drm/bridge/ti-sn65dsi86.c
1245
struct dentry *debugfs;
drivers/gpu/drm/display/drm_bridge_connector.c
255
struct dentry *root)
drivers/gpu/drm/drm_bridge.c
1640
void drm_bridge_debugfs_params(struct dentry *root)
drivers/gpu/drm/drm_bridge.c
1645
void drm_bridge_debugfs_encoder_params(struct dentry *root,
drivers/gpu/drm/drm_debugfs.c
250
struct dentry *root, struct drm_minor *minor)
drivers/gpu/drm/drm_debugfs.c
276
struct dentry *root, struct drm_minor *minor)
drivers/gpu/drm/drm_debugfs.c
281
struct dentry *dent = debugfs_lookup(files[i].name, root);
drivers/gpu/drm/drm_debugfs.c
47
static struct dentry *accel_debugfs_root;
drivers/gpu/drm/drm_debugfs.c
48
static struct dentry *drm_debugfs_root;
drivers/gpu/drm/drm_debugfs.c
671
struct dentry *parent)
drivers/gpu/drm/drm_debugfs.c
673
struct dentry *file;
drivers/gpu/drm/drm_debugfs.c
729
struct dentry *parent) \
drivers/gpu/drm/drm_debugfs.c
731
struct dentry *file; \
drivers/gpu/drm/drm_debugfs.c
749
struct dentry *parent)
drivers/gpu/drm/drm_debugfs.c
778
struct dentry *dir;
drivers/gpu/drm/drm_debugfs.c
794
struct dentry *root;
drivers/gpu/drm/drm_debugfs.c
837
struct dentry *root;
drivers/gpu/drm/drm_debugfs.c
861
struct dentry *root;
drivers/gpu/drm/drm_debugfs_crc.c
371
struct dentry *crc_ent;
drivers/gpu/drm/drm_internal.h
38
struct dentry;
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_debugfs.c
96
void hibmc_debugfs_init(struct drm_connector *connector, struct dentry *root)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h
76
void hibmc_debugfs_init(struct drm_connector *connector, struct dentry *root);
drivers/gpu/drm/i915/display/intel_alpm.c
535
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_display_debugfs.c
1323
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_display_debugfs.c
1378
struct dentry *root = crtc->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_display_debugfs.c
829
struct dentry *debugfs_root = display->drm->debugfs_root;
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
123
__maybe_unused static struct dentry *
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
125
struct dentry *parent, int *value)
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
132
__maybe_unused static struct dentry *
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
134
struct dentry *parent, unsigned int *value)
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
156
struct dentry *debugfs_root = display->drm->debugfs_root;
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
157
struct dentry *dir;
drivers/gpu/drm/i915/display/intel_dp_link_training.c
2073
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_fbc.c
2460
struct dentry *parent)
drivers/gpu/drm/i915/display/intel_hdcp.c
2875
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_hotplug.c
1334
struct dentry *debugfs_root = display->drm->debugfs_root;
drivers/gpu/drm/i915/display/intel_link_bw.c
476
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_pps.c
1808
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_psr.c
4411
struct dentry *debugfs_root = display->drm->debugfs_root;
drivers/gpu/drm/i915/display/intel_psr.c
4499
struct dentry *root = connector->base.debugfs_entry;
drivers/gpu/drm/i915/display/intel_wm.c
392
struct dentry *debugfs_root = display->drm->debugfs_root;
drivers/gpu/drm/i915/display/skl_watermark.c
4085
struct dentry *debugfs_root = display->drm->debugfs_root;
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c
108
void intel_gt_debugfs_register_files(struct dentry *root,
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c
75
static void gt_debugfs_register(struct intel_gt *gt, struct dentry *root)
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c
87
struct dentry *debugfs_root = gt->i915->drm.debugfs_root;
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c
88
struct dentry *root;
drivers/gpu/drm/i915/gt/intel_gt_debugfs.h
45
void intel_gt_debugfs_register_files(struct dentry *root,
drivers/gpu/drm/i915/gt/intel_gt_engines_debugfs.c
29
void intel_gt_engines_debugfs_register(struct intel_gt *gt, struct dentry *root)
drivers/gpu/drm/i915/gt/intel_gt_engines_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/intel_gt_engines_debugfs.h
12
void intel_gt_engines_debugfs_register(struct intel_gt *gt, struct dentry *root);
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c
588
void intel_gt_pm_debugfs_register(struct intel_gt *gt, struct dentry *root)
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h
13
void intel_gt_pm_debugfs_register(struct intel_gt *gt, struct dentry *root);
drivers/gpu/drm/i915/gt/intel_sseu_debugfs.c
293
void intel_sseu_debugfs_register(struct intel_gt *gt, struct dentry *root)
drivers/gpu/drm/i915/gt/intel_sseu_debugfs.h
11
struct dentry;
drivers/gpu/drm/i915/gt/intel_sseu_debugfs.h
15
void intel_sseu_debugfs_register(struct intel_gt *gt, struct dentry *root);
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_debugfs.c
29
void intel_gsc_uc_debugfs_register(struct intel_gsc_uc *gsc_uc, struct dentry *root)
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_debugfs.h
12
void intel_gsc_uc_debugfs_register(struct intel_gsc_uc *gsc, struct dentry *root);
drivers/gpu/drm/i915/gt/uc/intel_guc.h
46
struct dentry *dbgfs_node;
drivers/gpu/drm/i915/gt/uc/intel_guc_debugfs.c
132
void intel_guc_debugfs_register(struct intel_guc *guc, struct dentry *root)
drivers/gpu/drm/i915/gt/uc/intel_guc_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/uc/intel_guc_debugfs.h
12
void intel_guc_debugfs_register(struct intel_guc *guc, struct dentry *root);
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
246
static struct dentry *create_buf_file_callback(const char *filename,
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
247
struct dentry *parent,
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
252
struct dentry *buf_file;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
276
static int remove_buf_file_callback(struct dentry *dentry)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
278
debugfs_remove(dentry);
drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.c
162
struct dentry *root)
drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.h
13
struct dentry *root);
drivers/gpu/drm/i915/gt/uc/intel_huc_debugfs.c
26
void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root)
drivers/gpu/drm/i915/gt/uc/intel_huc_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/uc/intel_huc_debugfs.h
12
void intel_huc_debugfs_register(struct intel_huc *huc, struct dentry *root);
drivers/gpu/drm/i915/gt/uc/intel_uc_debugfs.c
40
void intel_uc_debugfs_register(struct intel_uc *uc, struct dentry *gt_root)
drivers/gpu/drm/i915/gt/uc/intel_uc_debugfs.c
45
struct dentry *root;
drivers/gpu/drm/i915/gt/uc/intel_uc_debugfs.h
10
struct dentry;
drivers/gpu/drm/i915/gt/uc/intel_uc_debugfs.h
12
void intel_uc_debugfs_register(struct intel_uc *uc, struct dentry *gt_root);
drivers/gpu/drm/i915/gvt/debugfs.c
199
struct dentry *debugfs_root = gvt->gt->i915->drm.debugfs_root;
drivers/gpu/drm/i915/gvt/debugfs.c
213
struct dentry *debugfs_root = gvt->gt->i915->drm.debugfs_root;
drivers/gpu/drm/i915/gvt/debugfs.c
227
struct dentry *debugfs_root = gvt->gt->i915->drm.debugfs_root;
drivers/gpu/drm/i915/gvt/gvt.h
213
struct dentry *debugfs;
drivers/gpu/drm/i915/gvt/gvt.h
366
struct dentry *debugfs_root;
drivers/gpu/drm/i915/i915_debugfs.c
727
struct dentry *debugfs_root = i915->drm.debugfs_root;
drivers/gpu/drm/i915/i915_debugfs_params.c
16
(strcmp((_file)->f_path.dentry->d_name.name, (_name)) == 0)
drivers/gpu/drm/i915/i915_debugfs_params.c
210
static struct dentry *
drivers/gpu/drm/i915/i915_debugfs_params.c
212
struct dentry *parent, int *value)
drivers/gpu/drm/i915/i915_debugfs_params.c
219
static struct dentry *
drivers/gpu/drm/i915/i915_debugfs_params.c
221
struct dentry *parent, unsigned int *value)
drivers/gpu/drm/i915/i915_debugfs_params.c
228
static struct dentry *
drivers/gpu/drm/i915/i915_debugfs_params.c
230
struct dentry *parent, char **value)
drivers/gpu/drm/i915/i915_debugfs_params.c
249
struct dentry *i915_debugfs_params(struct drm_i915_private *i915)
drivers/gpu/drm/i915/i915_debugfs_params.c
251
struct dentry *debugfs_root = i915->drm.debugfs_root;
drivers/gpu/drm/i915/i915_debugfs_params.c
253
struct dentry *dir;
drivers/gpu/drm/i915/i915_debugfs_params.h
12
struct dentry *i915_debugfs_params(struct drm_i915_private *i915);
drivers/gpu/drm/i915/i915_debugfs_params.h
9
struct dentry;
drivers/gpu/drm/i915/i915_gpu_error.c
2550
struct dentry *debugfs_root = i915->drm.debugfs_root;
drivers/gpu/drm/i915/pxp/intel_pxp_debugfs.c
72
struct dentry *debugfs_root;
drivers/gpu/drm/i915/pxp/intel_pxp_debugfs.c
73
struct dentry *pxproot;
drivers/gpu/drm/i915/pxp/intel_pxp_debugfs.h
10
struct dentry;
drivers/gpu/drm/imagination/pvr_debugfs.c
28
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/imagination/pvr_debugfs.c
32
struct dentry *dir;
drivers/gpu/drm/imagination/pvr_debugfs.h
15
struct dentry;
drivers/gpu/drm/imagination/pvr_debugfs.h
19
void (*init)(struct pvr_device *pvr_dev, struct dentry *dir);
drivers/gpu/drm/imagination/pvr_fw_trace.c
542
pvr_fw_trace_debugfs_init(struct pvr_device *pvr_dev, struct dentry *dir)
drivers/gpu/drm/imagination/pvr_fw_trace.h
69
struct dentry;
drivers/gpu/drm/imagination/pvr_fw_trace.h
71
void pvr_fw_trace_debugfs_init(struct pvr_device *pvr_dev, struct dentry *dir);
drivers/gpu/drm/loongson/lsdc_output_7a2000.c
142
struct dentry *root)
drivers/gpu/drm/loongson/lsdc_output_7a2000.c
153
struct dentry *root)
drivers/gpu/drm/loongson/lsdc_ttm.c
580
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/mediatek/mtk_dpi.c
974
static void mtk_dpi_debugfs_init(struct drm_bridge *bridge, struct dentry *root)
drivers/gpu/drm/mediatek/mtk_hdmi_v2.c
1311
static void mtk_hdmi_v2_debugfs_init(struct drm_bridge *bridge, struct dentry *root)
drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h
32
struct dentry *parent);
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
465
int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent)
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
468
struct dentry *entry;
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h
74
int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
2521
static void dpu_encoder_debugfs_init(struct drm_encoder *drm_enc, struct dentry *root)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
761
struct dentry *parent)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
664
struct dentry *entry)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
668
struct dentry *debugfs_root;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h
333
struct dentry *entry);
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
180
struct dentry *parent)
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
182
struct dentry *entry = debugfs_create_dir("danger", parent);
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
273
static void dpu_debugfs_sspp_init(struct dpu_kms *dpu_kms, struct dentry *debugfs_root)
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
275
struct dentry *entry = debugfs_create_dir("sspp", debugfs_root);
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
295
struct dentry *entry;
drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c
295
void dpu_debugfs_vbif_init(struct dpu_kms *dpu_kms, struct dentry *debugfs_root)
drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c
298
struct dentry *entry, *debugfs_vbif;
drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.h
51
void dpu_debugfs_vbif_init(struct dpu_kms *dpu_kms, struct dentry *debugfs_root);
drivers/gpu/drm/msm/dp/dp_debug.c
204
struct dentry *root, bool is_edp)
drivers/gpu/drm/msm/dp/dp_debug.h
31
struct dentry *root,
drivers/gpu/drm/msm/dp/dp_debug.h
40
struct dentry *root,
drivers/gpu/drm/msm/dp/dp_display.c
1547
void msm_dp_display_debugfs_init(struct msm_dp *msm_dp_display, struct dentry *root, bool is_edp)
drivers/gpu/drm/msm/dp/dp_display.h
36
void msm_dp_display_debugfs_init(struct msm_dp *msm_dp_display, struct dentry *dentry, bool is_edp);
drivers/gpu/drm/msm/dp/dp_drm.c
278
static void msm_edp_bridge_debugfs_init(struct drm_bridge *bridge, struct dentry *root)
drivers/gpu/drm/msm/dp/dp_drm.c
97
static void msm_dp_bridge_debugfs_init(struct drm_bridge *bridge, struct dentry *root)
drivers/gpu/drm/msm/msm_debugfs.c
370
struct dentry *gpu_devfreq;
drivers/gpu/drm/nouveau/dispnv50/crc.c
716
struct dentry *root;
drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h
257
struct dentry *parent;
drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h
258
struct dentry *init;
drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h
259
struct dentry *rm;
drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h
260
struct dentry *intr;
drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h
261
struct dentry *pmu;
drivers/gpu/drm/nouveau/nouveau_debugfs.c
270
struct dentry *dentry;
drivers/gpu/drm/nouveau/nouveau_debugfs.c
287
dentry = debugfs_lookup("vbios.rom", minor->debugfs_root);
drivers/gpu/drm/nouveau/nouveau_debugfs.c
288
if (!dentry)
drivers/gpu/drm/nouveau/nouveau_debugfs.c
291
d_inode(dentry)->i_size = drm->vbios.length;
drivers/gpu/drm/nouveau/nouveau_debugfs.c
292
dput(dentry);
drivers/gpu/drm/nouveau/nouveau_debugfs.h
25
extern struct dentry *nouveau_debugfs_root;
drivers/gpu/drm/nouveau/nouveau_drm.c
119
struct dentry *nouveau_debugfs_root;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1316
static struct dentry *create_debugfs(struct nvkm_gsp *gsp, const char *name,
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1319
struct dentry *dent;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1877
struct dentry *debugfs_logging_dir;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1937
static int r535_gsp_copy_log(struct dentry *parent,
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1942
struct dentry *dent;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
46
extern struct dentry *nouveau_debugfs_root;
drivers/gpu/drm/omapdrm/dss/dss.c
888
struct dentry *dir;
drivers/gpu/drm/omapdrm/dss/dss.c
905
struct dentry *dentry;
drivers/gpu/drm/omapdrm/dss/dss.c
937
entry->dentry = debugfs_create_file(name, 0444, dss->debugfs.root,
drivers/gpu/drm/omapdrm/dss/dss.c
948
debugfs_remove(entry->dentry);
drivers/gpu/drm/omapdrm/dss/dss.h
250
struct dentry *root;
drivers/gpu/drm/panel/panel-edp.c
675
static void panel_edp_debugfs_init(struct drm_panel *panel, struct dentry *root)
drivers/gpu/drm/panel/panel-sitronix-st7703.c
62
struct dentry *debugfs;
drivers/gpu/drm/radeon/r100.c
3083
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/r100.c
3093
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/r100.c
3105
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/r300.c
620
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/r420.c
496
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/r600.c
4361
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/radeon_fence.c
949
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/radeon_gem.c
904
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/radeon_ib.c
312
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/radeon_pm.c
1957
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/radeon_ring.c
553
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/radeon_ttm.c
895
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/radeon/rs400.c
396
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/radeon/rv515.c
258
struct dentry *root = rdev_to_drm(rdev)->primary->debugfs_root;
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
2090
struct dentry *root;
drivers/gpu/drm/tegra/dc.c
1731
struct dentry *root;
drivers/gpu/drm/tegra/dc.c
1758
struct dentry *root;
drivers/gpu/drm/tegra/dsi.c
237
struct dentry *root = connector->debugfs_entry;
drivers/gpu/drm/tegra/hdmi.c
1099
struct dentry *root = connector->debugfs_entry;
drivers/gpu/drm/tegra/sor.c
1691
struct dentry *root = connector->debugfs_entry;
drivers/gpu/drm/ttm/ttm_device.c
51
struct dentry *ttm_debugfs_root;
drivers/gpu/drm/ttm/ttm_module.h
36
struct dentry;
drivers/gpu/drm/ttm/ttm_module.h
39
extern struct dentry *ttm_debugfs_root;
drivers/gpu/drm/ttm/ttm_resource.c
932
struct dentry * parent,
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
1408
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
345
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/xe/xe_debugfs.c
516
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/xe/xe_device_types.h
250
struct dentry *debugfs;
drivers/gpu/drm/xe/xe_gsc_debugfs.c
49
void xe_gsc_debugfs_register(struct xe_gsc *gsc, struct dentry *parent)
drivers/gpu/drm/xe/xe_gsc_debugfs.h
12
void xe_gsc_debugfs_register(struct xe_gsc *gsc, struct dentry *parent);
drivers/gpu/drm/xe/xe_gsc_debugfs.h
9
struct dentry;
drivers/gpu/drm/xe/xe_gt_debugfs.c
315
struct dentry *parent = gt->tile->debugfs;
drivers/gpu/drm/xe/xe_gt_debugfs.c
316
struct dentry *root;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
148
static void pf_add_policy_attrs(struct xe_gt *gt, struct dentry *parent)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
298
struct dentry *parent = file_inode(file)->i_private;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
370
struct dentry *dent = file_dentry(file);
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
405
static void pf_add_sched_groups(struct xe_gt *gt, struct dentry *parent, unsigned int vfid)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
407
struct dentry *groups;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
47
static void *extract_priv(struct dentry *d)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
52
static struct xe_gt *extract_gt(struct dentry *d)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
57
static struct xe_device *extract_xe(struct dentry *d)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
580
static void pf_add_config_attrs(struct xe_gt *gt, struct dentry *parent, unsigned int vfid)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
62
static unsigned int extract_vfid(struct dentry *d)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
626
struct dentry *dent = file_dentry(file);
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
627
struct dentry *parent = dent->d_parent;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
700
struct dentry *dent = file_dentry(file);
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
701
struct dentry *parent = dent->d_parent;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
739
struct dentry *dent = file_dentry(file);
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
740
struct dentry *parent = dent->d_parent;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
784
static void pf_add_compat_attrs(struct xe_gt *gt, struct dentry *dent, unsigned int vfid)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
806
static void pf_populate_gt(struct xe_gt *gt, struct dentry *dent, unsigned int vfid)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
847
void xe_gt_sriov_pf_debugfs_populate(struct xe_gt *gt, struct dentry *parent, unsigned int vfid)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
849
struct dentry *dent;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
883
static void pf_add_links(struct xe_gt *gt, struct dentry *dent)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
909
void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *dent)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.h
10
struct dentry;
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.h
13
void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *root);
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.h
14
void xe_gt_sriov_pf_debugfs_populate(struct xe_gt *gt, struct dentry *parent, unsigned int vfid);
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.h
16
static inline void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *root) { }
drivers/gpu/drm/xe/xe_gt_sriov_vf_debugfs.c
52
void xe_gt_sriov_vf_debugfs_register(struct xe_gt *gt, struct dentry *root)
drivers/gpu/drm/xe/xe_gt_sriov_vf_debugfs.c
56
struct dentry *vfdentry;
drivers/gpu/drm/xe/xe_gt_sriov_vf_debugfs.h
10
struct dentry;
drivers/gpu/drm/xe/xe_gt_sriov_vf_debugfs.h
12
void xe_gt_sriov_vf_debugfs_register(struct xe_gt *gt, struct dentry *root);
drivers/gpu/drm/xe/xe_guc_debugfs.c
129
void xe_guc_debugfs_register(struct xe_guc *guc, struct dentry *parent)
drivers/gpu/drm/xe/xe_guc_debugfs.c
67
struct dentry *parent = node->dent->d_parent;
drivers/gpu/drm/xe/xe_guc_debugfs.c
68
struct dentry *grandparent = parent->d_parent;
drivers/gpu/drm/xe/xe_guc_debugfs.h
12
void xe_guc_debugfs_register(struct xe_guc *guc, struct dentry *parent);
drivers/gpu/drm/xe/xe_guc_debugfs.h
9
struct dentry;
drivers/gpu/drm/xe/xe_huc_debugfs.c
49
void xe_huc_debugfs_register(struct xe_huc *huc, struct dentry *parent)
drivers/gpu/drm/xe/xe_huc_debugfs.h
12
void xe_huc_debugfs_register(struct xe_huc *huc, struct dentry *parent);
drivers/gpu/drm/xe/xe_huc_debugfs.h
9
struct dentry;
drivers/gpu/drm/xe/xe_pxp_debugfs.c
101
struct dentry *root;
drivers/gpu/drm/xe/xe_sriov_pf.h
11
struct dentry;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
102
struct dentry *dent = file_dentry(file);
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
128
static void pf_populate_root(struct xe_device *xe, struct dentry *dent)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
140
struct dentry *parent = node->dent->d_parent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
153
static void pf_populate_pf(struct xe_device *xe, struct dentry *pfdent)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
179
struct dentry *dent = file_dentry(s->file)->d_parent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
198
struct dentry *dent = file_dentry(file)->d_parent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
254
struct dentry *dent = file_dentry(file)->d_parent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
266
struct dentry *dent = file_dentry(file)->d_parent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
286
struct dentry *dent = file_dentry(file)->d_parent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
30
static void *extract_priv(struct dentry *d)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
311
static void pf_populate_vf(struct xe_device *xe, struct dentry *vfdent)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
323
static void pf_populate_with_tiles(struct xe_device *xe, struct dentry *dent, unsigned int vfid)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
340
void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
343
struct dentry *pfdent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
344
struct dentry *vfdent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
345
struct dentry *dent;
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
35
static struct xe_device *extract_xe(struct dentry *d)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
40
static unsigned int extract_vfid(struct dentry *d)
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
61
struct dentry *dent = file_dentry(file);
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.h
13
void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root);
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.h
15
static inline void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root) { }
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.h
9
struct dentry;
drivers/gpu/drm/xe/xe_sriov_vf.c
282
void xe_sriov_vf_debugfs_register(struct xe_device *xe, struct dentry *root)
drivers/gpu/drm/xe/xe_sriov_vf.h
11
struct dentry;
drivers/gpu/drm/xe/xe_sriov_vf.h
18
void xe_sriov_vf_debugfs_register(struct xe_device *xe, struct dentry *root);
drivers/gpu/drm/xe/xe_tile_debugfs.c
127
struct dentry *root = minor->debugfs_root;
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
168
static void pf_add_config_attrs(struct xe_tile *tile, struct dentry *dent, unsigned int vfid)
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
183
static void pf_populate_tile(struct xe_tile *tile, struct dentry *dent, unsigned int vfid)
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
217
void xe_tile_sriov_pf_debugfs_populate(struct xe_tile *tile, struct dentry *parent,
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
221
struct dentry *dent;
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
37
static void *extract_priv(struct dentry *d)
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
43
static struct xe_tile *extract_tile(struct dentry *d)
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
48
static struct xe_device *extract_xe(struct dentry *d)
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.c
54
static unsigned int extract_vfid(struct dentry *d)
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.h
12
void xe_tile_sriov_pf_debugfs_populate(struct xe_tile *tile, struct dentry *parent,
drivers/gpu/drm/xe/xe_tile_sriov_pf_debugfs.h
9
struct dentry;
drivers/gpu/drm/xe/xe_uc_debugfs.c
17
void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent)
drivers/gpu/drm/xe/xe_uc_debugfs.c
19
struct dentry *root;
drivers/gpu/drm/xe/xe_uc_debugfs.h
12
void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent);
drivers/gpu/drm/xe/xe_uc_debugfs.h
9
struct dentry;
drivers/gpu/drm/xlnx/zynqmp_dp.c
2236
struct dentry *root)
drivers/gpu/drm/xlnx/zynqmp_dp.c
2239
struct dentry *test;
drivers/gpu/host1x/debug.c
172
struct dentry *de = debugfs_create_dir("tegra-host1x", NULL);
drivers/gpu/host1x/dev.h
165
struct dentry *debugfs;
drivers/gpu/host1x/dev.h
30
struct dentry;
drivers/gpu/host1x/dev.h
335
static inline void host1x_hw_debug_init(struct host1x *host, struct dentry *de)
drivers/gpu/host1x/dev.h
55
void (*debug_init)(struct dentry *de);
drivers/gpu/vga/vga_switcheroo.c
154
struct dentry *debugfs_root;
drivers/greybus/debugfs.c
12
static struct dentry *gb_debug_root;
drivers/greybus/debugfs.c
25
struct dentry *gb_debugfs_get(void)
drivers/greybus/es2.c
115
struct dentry *apb_log_dentry;
drivers/greybus/es2.c
116
struct dentry *apb_log_enable_dentry;
drivers/greybus/svc.c
764
struct dentry *dent;
drivers/greybus/svc.c
793
struct dentry *dir;
drivers/hid/hid-debug.c
31
static struct dentry *hid_debug_root;
drivers/hid/hid-picolcd.h
67
struct dentry *debug_reset;
drivers/hid/hid-picolcd.h
68
struct dentry *debug_eeprom;
drivers/hid/hid-picolcd.h
69
struct dentry *debug_flash;
drivers/hid/hid-picolcd_debugfs.c
873
struct dentry *dent;
drivers/hid/hid-wiimote-debug.c
19
struct dentry *eeprom;
drivers/hid/hid-wiimote-debug.c
20
struct dentry *drm;
drivers/hsi/controllers/omap_ssi.h
104
struct dentry *dir;
drivers/hsi/controllers/omap_ssi.h
155
struct dentry *dir;
drivers/hsi/controllers/omap_ssi_core.c
115
struct dentry *dir;
drivers/hsi/controllers/omap_ssi_port.c
155
struct dentry *dir)
drivers/hte/hte.c
65
struct dentry *ts_dbg_root;
drivers/hte/hte.c
85
struct dentry *dbg_root;
drivers/hte/hte.c
94
static struct dentry *hte_root;
drivers/hv/hv_debugfs.c
102
static void hv_debug_set_dir_dentry(struct hv_device *dev, struct dentry *root)
drivers/hv/hv_debugfs.c
113
struct dentry *delay, *dev_root;
drivers/hv/hv_debugfs.c
14
static struct dentry *hv_debug_root;
drivers/hv/hv_debugfs.c
54
static int hv_debug_delay_files(struct hv_device *dev, struct dentry *root)
drivers/hv/hv_debugfs.c
61
struct dentry *buffer_file, *message_file;
drivers/hv/hv_debugfs.c
83
static int hv_debug_set_test_state(struct hv_device *dev, struct dentry *root)
drivers/hv/hv_debugfs.c
88
struct dentry *test_state;
drivers/hv/mshv_debugfs.c
106
dentry = debugfs_create_file("stats", 0400, parent,
drivers/hv/mshv_debugfs.c
108
if (IS_ERR(dentry)) {
drivers/hv/mshv_debugfs.c
110
return ERR_CAST(dentry);
drivers/hv/mshv_debugfs.c
115
static int __init lp_debugfs_create(u32 lp_index, struct dentry *parent)
drivers/hv/mshv_debugfs.c
117
struct dentry *idx;
drivers/hv/mshv_debugfs.c
154
static int __init mshv_debugfs_lp_create(struct dentry *parent)
drivers/hv/mshv_debugfs.c
156
struct dentry *lp_dir;
drivers/hv/mshv_debugfs.c
225
static void vp_debugfs_remove(struct dentry *vp_stats)
drivers/hv/mshv_debugfs.c
232
struct dentry **vp_stats_ptr,
drivers/hv/mshv_debugfs.c
233
struct dentry *parent)
drivers/hv/mshv_debugfs.c
235
struct dentry *vp_idx_dir, *d;
drivers/hv/mshv_debugfs.c
32
static struct dentry *mshv_debugfs;
drivers/hv/mshv_debugfs.c
324
struct dentry **partition_stats_ptr,
drivers/hv/mshv_debugfs.c
325
struct dentry *parent)
drivers/hv/mshv_debugfs.c
327
struct dentry *dentry;
drivers/hv/mshv_debugfs.c
33
static struct dentry *mshv_debugfs_partition;
drivers/hv/mshv_debugfs.c
34
static struct dentry *mshv_debugfs_lp;
drivers/hv/mshv_debugfs.c
35
static struct dentry **parent_vp_stats;
drivers/hv/mshv_debugfs.c
359
dentry = debugfs_create_file("stats", 0400, parent,
drivers/hv/mshv_debugfs.c
36
static struct dentry *parent_partition_stats;
drivers/hv/mshv_debugfs.c
361
if (IS_ERR(dentry)) {
drivers/hv/mshv_debugfs.c
362
err = PTR_ERR(dentry);
drivers/hv/mshv_debugfs.c
366
*partition_stats_ptr = dentry;
drivers/hv/mshv_debugfs.c
381
static void partition_debugfs_remove(u64 partition_id, struct dentry *dentry)
drivers/hv/mshv_debugfs.c
385
pstats = dentry->d_inode->i_private;
drivers/hv/mshv_debugfs.c
387
debugfs_remove_recursive(dentry->d_parent);
drivers/hv/mshv_debugfs.c
403
struct dentry **vp_dir_ptr,
drivers/hv/mshv_debugfs.c
404
struct dentry **partition_stats_ptr,
drivers/hv/mshv_debugfs.c
405
struct dentry *parent)
drivers/hv/mshv_debugfs.c
408
struct dentry *part_id_dir, *vp_dir;
drivers/hv/mshv_debugfs.c
442
struct dentry *vp_stats_ptr)
drivers/hv/mshv_debugfs.c
468
struct dentry **vp_stats_ptr,
drivers/hv/mshv_debugfs.c
469
struct dentry *parent)
drivers/hv/mshv_debugfs.c
499
struct dentry *vp_dir;
drivers/hv/mshv_debugfs.c
596
static int __init mshv_debugfs_hv_stats_create(struct dentry *parent)
drivers/hv/mshv_debugfs.c
598
struct dentry *dentry;
drivers/hv/mshv_debugfs.c
606
dentry = debugfs_create_file("stats", 0400, parent,
drivers/hv/mshv_debugfs.c
608
if (IS_ERR(dentry)) {
drivers/hv/mshv_debugfs.c
609
err = PTR_ERR(dentry);
drivers/hv/mshv_debugfs.c
97
struct dentry *parent)
drivers/hv/mshv_debugfs.c
99
struct dentry *dentry;
drivers/hv/mshv_root.h
143
struct dentry *pt_stats_dentry;
drivers/hv/mshv_root.h
144
struct dentry *pt_vp_dentry;
drivers/hv/mshv_root.h
56
struct dentry *vp_stats_dentry;
drivers/hwmon/aquacomputer_d5next.c
552
struct dentry *debugfs;
drivers/hwmon/asus_atk0110.c
133
struct dentry *root;
drivers/hwmon/asus_atk0110.c
791
struct dentry *d;
drivers/hwmon/corsair-cpro.c
85
struct dentry *debugfs;
drivers/hwmon/corsair-psu.c
123
struct dentry *debugfs;
drivers/hwmon/gigabyte_waterforce.c
53
struct dentry *debugfs;
drivers/hwmon/hp-wmi-sensors.c
1320
struct dentry *debugfs;
drivers/hwmon/hp-wmi-sensors.c
1321
struct dentry *entries;
drivers/hwmon/hp-wmi-sensors.c
1322
struct dentry *dir;
drivers/hwmon/mr75203.c
174
struct dentry *dbgfs_dir;
drivers/hwmon/nzxt-kraken3.c
96
struct dentry *debugfs;
drivers/hwmon/pmbus/acbel-fsg032.c
43
struct dentry *debugfs = pmbus_get_debugfs_dir(client);
drivers/hwmon/pmbus/adm1266.c
336
struct dentry *root;
drivers/hwmon/pmbus/adm1266.c
57
struct dentry *debugfs_dir;
drivers/hwmon/pmbus/dps920ab.c
114
struct dentry *debugfs_dir;
drivers/hwmon/pmbus/dps920ab.c
115
struct dentry *root;
drivers/hwmon/pmbus/ibm-cffps.c
486
struct dentry *debugfs;
drivers/hwmon/pmbus/max20730.c
309
struct dentry *debugfs;
drivers/hwmon/pmbus/max20730.c
310
struct dentry *max20730_dir;
drivers/hwmon/pmbus/pmbus.h
569
struct dentry *pmbus_get_debugfs_dir(struct i2c_client *client);
drivers/hwmon/pmbus/pmbus_core.c
3536
static struct dentry *pmbus_debugfs_dir; /* pmbus debugfs directory */
drivers/hwmon/pmbus/pmbus_core.c
3649
struct dentry *symlink_d, *debugfs = client->debugfs;
drivers/hwmon/pmbus/pmbus_core.c
3860
struct dentry *pmbus_get_debugfs_dir(struct i2c_client *client)
drivers/hwmon/pmbus/q54sj108a2.c
285
struct dentry *debugfs;
drivers/hwmon/pmbus/q54sj108a2.c
286
struct dentry *q54sj108a2_dir;
drivers/hwmon/pmbus/ucd9000.c
450
struct dentry *debugfs;
drivers/hwmon/pmbus/ucd9000.c
70
struct dentry *debugfs;
drivers/hwspinlock/sun6i_hwspinlock.c
33
struct dentry *debugfs;
drivers/hwtracing/coresight/coresight-cpu-debug.c
109
static struct dentry *debug_debugfs_dir;
drivers/hwtracing/intel_th/debug.c
15
struct dentry *intel_th_dbg;
drivers/hwtracing/intel_th/debug.h
12
extern struct dentry *intel_th_dbg;
drivers/hwtracing/intel_th/intel_th.h
294
struct dentry *dbg;
drivers/i2c/i2c-core-base.c
71
static struct dentry *i2c_debugfs_root;
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
127
struct dentry *dir = debugfs_create_dir(dev_name(&hci->pci->dev), NULL);
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
64
struct dentry *debugfs_root;
drivers/iio/adc/ad7124.c
1584
struct dentry *dentry = iio_get_debugfs_dentry(indio_dev);
drivers/iio/adc/ad7124.c
1590
debugfs_create_bool("enable_single_cycle", 0644, dentry,
drivers/iio/adc/ad9467.c
1270
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/adc/stm32-adc.c
2019
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/dac/ad3552r-hs.c
790
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/gyro/adis16136.c
146
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/imu/adis16400.c
277
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/imu/adis16460.c
129
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/imu/adis16475.c
279
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/imu/adis16480.c
308
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/imu/adis16550.c
399
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/imu/bno055/bno055.c
217
struct dentry *debugfs;
drivers/iio/industrialio-backend.c
215
struct dentry *d = iio_get_debugfs_dentry(indio_dev);
drivers/iio/industrialio-backend.c
216
struct dentry *back_d;
drivers/iio/industrialio-core.c
235
struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev)
drivers/iio/industrialio-core.c
52
static struct dentry *iio_debugfs_dentry;
drivers/infiniband/hw/bng_re/bng_debugfs.c
15
static struct dentry *bng_re_debugfs_root;
drivers/infiniband/hw/bng_re/bng_re.h
81
struct dentry *dbg_root;
drivers/infiniband/hw/bnxt_re/bnxt_re.h
220
struct dentry *dbg_root;
drivers/infiniband/hw/bnxt_re/bnxt_re.h
221
struct dentry *qp_debugfs;
drivers/infiniband/hw/bnxt_re/bnxt_re.h
225
struct dentry *cc_config;
drivers/infiniband/hw/bnxt_re/bnxt_re.h
227
struct dentry *cq_coal_cfg;
drivers/infiniband/hw/bnxt_re/debugfs.c
141
qp->dentry = debugfs_create_file(resn, 0400, rdev->qp_debugfs, qp, &debugfs_qp_fops);
drivers/infiniband/hw/bnxt_re/debugfs.c
146
debugfs_remove(qp->dentry);
drivers/infiniband/hw/bnxt_re/debugfs.c
24
static struct dentry *bnxt_re_debugfs_root;
drivers/infiniband/hw/bnxt_re/debugfs.c
508
tmp_params->dentry = debugfs_create_file(bnxt_re_cc_gen0_name[i], 0400,
drivers/infiniband/hw/bnxt_re/debugfs.h
28
struct dentry *dentry;
drivers/infiniband/hw/bnxt_re/ib_verbs.h
98
struct dentry *dentry;
drivers/infiniband/hw/cxgb4/device.c
75
static struct dentry *c4iw_debugfs_root;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
321
struct dentry *debugfs_root;
drivers/infiniband/hw/hfi1/debugfs.c
1158
struct dentry *root;
drivers/infiniband/hw/hfi1/debugfs.c
23
static struct dentry *hfi1_dbg_root;
drivers/infiniband/hw/hfi1/fault.c
209
struct dentry *parent = ibd->hfi1_ibdev_dbg;
drivers/infiniband/hw/hfi1/fault.c
210
struct dentry *fault_dir;
drivers/infiniband/hw/hfi1/fault.h
22
struct dentry *dir;
drivers/infiniband/hw/hfi1/verbs.h
256
struct dentry *hfi1_ibdev_dbg;
drivers/infiniband/hw/hfi1/verbs.h
258
struct dentry *hfi1_ibdev_link;
drivers/infiniband/hw/hns/hns_roce_debugfs.c
12
static struct dentry *hns_roce_dbgfs_root;
drivers/infiniband/hw/hns/hns_roce_debugfs.c
30
const char *name, struct dentry *parent,
drivers/infiniband/hw/hns/hns_roce_debugfs.c
75
struct dentry *parent)
drivers/infiniband/hw/hns/hns_roce_debugfs.h
16
struct dentry *root;
drivers/infiniband/hw/hns/hns_roce_debugfs.h
22
struct dentry *root;
drivers/infiniband/hw/mlx4/mcg.c
1078
del_sysfs_port_mcg_attr(group->demux->dev, group->demux->port, &group->dentry.attr);
drivers/infiniband/hw/mlx4/mcg.c
117
struct device_attribute dentry;
drivers/infiniband/hw/mlx4/mcg.c
457
del_sysfs_port_mcg_attr(ctx->dev, ctx->port, &group->dentry.attr);
drivers/infiniband/hw/mlx4/mcg.c
779
add_sysfs_port_mcg_attr(ctx->dev, ctx->port, &group->dentry.attr);
drivers/infiniband/hw/mlx4/mcg.c
843
sysfs_attr_init(&group->dentry.attr);
drivers/infiniband/hw/mlx4/mcg.c
844
group->dentry.show = sysfs_show_group;
drivers/infiniband/hw/mlx4/mcg.c
845
group->dentry.store = NULL;
drivers/infiniband/hw/mlx4/mcg.c
846
group->dentry.attr.name = group->name;
drivers/infiniband/hw/mlx4/mcg.c
847
group->dentry.attr.mode = 0400;
drivers/infiniband/hw/mlx4/mcg.c
862
add_sysfs_port_mcg_attr(ctx->dev, ctx->port, &group->dentry.attr);
drivers/infiniband/hw/mlx4/mcg.c
994
container_of(attr, struct mcast_group, dentry);
drivers/infiniband/hw/mlx4/mlx4_ib.h
567
struct device_attribute dentry;
drivers/infiniband/hw/mlx4/sysfs.c
116
container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
drivers/infiniband/hw/mlx4/sysfs.c
145
container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
drivers/infiniband/hw/mlx4/sysfs.c
161
sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
drivers/infiniband/hw/mlx4/sysfs.c
178
vdentry->dentry.show = show;
drivers/infiniband/hw/mlx4/sysfs.c
179
vdentry->dentry.store = store;
drivers/infiniband/hw/mlx4/sysfs.c
180
sysfs_attr_init(&vdentry->dentry.attr);
drivers/infiniband/hw/mlx4/sysfs.c
181
vdentry->dentry.attr.name = vdentry->name;
drivers/infiniband/hw/mlx4/sysfs.c
182
vdentry->dentry.attr.mode = 0;
drivers/infiniband/hw/mlx4/sysfs.c
186
if (vdentry->dentry.store)
drivers/infiniband/hw/mlx4/sysfs.c
187
vdentry->dentry.attr.mode |= S_IWUSR;
drivers/infiniband/hw/mlx4/sysfs.c
189
if (vdentry->dentry.show)
drivers/infiniband/hw/mlx4/sysfs.c
190
vdentry->dentry.attr.mode |= S_IRUGO;
drivers/infiniband/hw/mlx4/sysfs.c
192
ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr);
drivers/infiniband/hw/mlx4/sysfs.c
194
pr_err("failed to create %s\n", vdentry->dentry.attr.name);
drivers/infiniband/hw/mlx4/sysfs.c
50
container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
drivers/infiniband/hw/mlx4/sysfs.c
75
container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
drivers/infiniband/hw/mlx5/cong.c
470
dbg_cc_params->params[i].dentry =
drivers/infiniband/hw/mlx5/main.c
4902
struct dentry *root;
drivers/infiniband/hw/mlx5/mlx5_ib.h
845
struct dentry *fs_root;
drivers/infiniband/hw/mlx5/mlx5_ib.h
944
struct dentry *dentry;
drivers/infiniband/hw/mlx5/mlx5_ib.h
975
struct dentry *root;
drivers/infiniband/hw/mlx5/mlx5_ib.h
992
struct dentry *dir_debugfs;
drivers/infiniband/hw/mlx5/mr.c
831
struct dentry *dir;
drivers/infiniband/hw/mlx5/mr.c
849
struct dentry *dbg_root = mlx5_debugfs_get_dev_root(dev->mdev);
drivers/infiniband/hw/ocrdma/ocrdma.h
307
struct dentry *dir;
drivers/infiniband/hw/ocrdma/ocrdma_stats.c
47
static struct dentry *ocrdma_dbgfs_dir;
drivers/infiniband/hw/usnic/usnic_debugfs.c
42
static struct dentry *debugfs_root;
drivers/infiniband/hw/usnic/usnic_debugfs.c
43
static struct dentry *flows_dentry;
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h
83
struct dentry *dbgfs_dentry;
drivers/infiniband/ulp/ipoib/ipoib.h
407
struct dentry *mcg_dentry;
drivers/infiniband/ulp/ipoib/ipoib.h
408
struct dentry *path_dentry;
drivers/infiniband/ulp/ipoib/ipoib_fs.c
44
static struct dentry *ipoib_root;
drivers/input/keyboard/applespi.c
427
struct dentry *debugfs_root;
drivers/input/touchscreen/edt-ft5x06.c
819
struct dentry *debug_dir = tsdata->client->debugfs;
drivers/interconnect/core.c
34
static struct dentry *icc_debugfs_dir;
drivers/interconnect/debugfs-client.c
139
int icc_debugfs_client_init(struct dentry *icc_dir)
drivers/interconnect/debugfs-client.c
141
struct dentry *client_dir;
drivers/interconnect/debugfs-client.c
173
int icc_debugfs_client_init(struct dentry *icc_dir)
drivers/interconnect/internal.h
45
int icc_debugfs_client_init(struct dentry *icc_dir);
drivers/iommu/amd/amd_iommu_types.h
764
struct dentry *debugfs;
drivers/iommu/amd/debugfs.c
16
static struct dentry *amd_iommu_debugfs;
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
889
static struct dentry *cmdqv_debugfs_dir;
drivers/iommu/intel/debugfs.c
109
static struct dentry *intel_iommu_debug;
drivers/iommu/intel/iommu.h
768
struct dentry *debugfs_dentry; /* pointer to device directory dentry */
drivers/iommu/intel/iommu.h
777
struct dentry *debugfs_dentry; /* pointer to pasid directory dentry */
drivers/iommu/iommu-debugfs.c
14
struct dentry *iommu_debugfs_dir;
drivers/iommu/iommufd/selftest.c
26
static struct dentry *dbgfs_root;
drivers/iommu/omap-iommu-debug.c
23
static struct dentry *iommu_debug_root;
drivers/iommu/omap-iommu-debug.c
244
struct dentry *d;
drivers/iommu/omap-iommu.h
60
struct dentry *debug_dir;
drivers/iommu/tegra-smmu.c
49
struct dentry *debugfs;
drivers/mailbox/bcm-flexrm-mailbox.c
287
struct dentry *root;
drivers/mailbox/bcm-pdc-mailbox.c
418
static struct dentry *debugfs_dir;
drivers/mailbox/mailbox-test.c
46
struct dentry *root_debugfs_dir;
drivers/md/bcache/bcache.h
522
struct dentry *debug;
drivers/md/bcache/debug.c
20
struct dentry *bcache_debug;
drivers/media/cec/core/cec-core.c
50
static struct dentry *top_cec_dir;
drivers/media/common/siano/smsdvb-debugfs.c
21
static struct dentry *smsdvb_debugfs_usb_root;
drivers/media/common/siano/smsdvb.h
49
struct dentry *debugfs;
drivers/media/i2c/adv7511-v4l2.c
120
struct dentry *debugfs_dir;
drivers/media/i2c/adv7604.c
196
struct dentry *debugfs_dir;
drivers/media/i2c/adv7842.c
117
struct dentry *debugfs_dir;
drivers/media/i2c/tc358743.c
105
struct dentry *debugfs_dir;
drivers/media/mc/mc-devnode.c
49
struct dentry *media_debugfs_root;
drivers/media/pci/mgb4/mgb4_core.h
78
struct dentry *debugfs;
drivers/media/pci/mgb4/mgb4_vin.c
888
struct dentry *entry;
drivers/media/pci/mgb4/mgb4_vout.c
708
struct dentry *entry;
drivers/media/pci/saa7164/saa7164-core.c
1149
static struct dentry *saa7614_dentry;
drivers/media/pci/zoran/zoran.h
287
struct dentry *dbgfs_dir;
drivers/media/platform/amphion/vpu.h
169
struct dentry *debugfs;
drivers/media/platform/amphion/vpu.h
170
struct dentry *debugfs_fwlog;
drivers/media/platform/amphion/vpu.h
280
struct dentry *debugfs;
drivers/media/platform/amphion/vpu.h
83
struct dentry *debugfs;
drivers/media/platform/aspeed/aspeed-video.c
2098
static struct dentry *debugfs_entry;
drivers/media/platform/chips-media/coda/coda-common.c
1933
size_t size, const char *name, struct dentry *parent)
drivers/media/platform/chips-media/coda/coda-common.c
1949
buf->dentry = debugfs_create_blob(name, 0444, parent,
drivers/media/platform/chips-media/coda/coda-common.c
1963
debugfs_remove(buf->dentry);
drivers/media/platform/chips-media/coda/coda-common.c
1964
buf->dentry = NULL;
drivers/media/platform/chips-media/coda/coda-common.c
3264
dev->iram.dentry = debugfs_create_blob("iram", 0444,
drivers/media/platform/chips-media/coda/coda.h
102
struct dentry *debugfs_root;
drivers/media/platform/chips-media/coda/coda.h
284
struct dentry *debugfs_entry;
drivers/media/platform/chips-media/coda/coda.h
311
size_t size, const char *name, struct dentry *parent);
drivers/media/platform/chips-media/coda/coda.h
75
struct dentry *dentry;
drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.c
182
struct dentry *vcodec_root;
drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.c
201
struct dentry *vcodec_root;
drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.h
45
struct dentry *vcodec_root;
drivers/media/platform/mediatek/vpu/mtk_vpu.c
809
static struct dentry *vpu_debugfs;
drivers/media/platform/nxp/dw100/dw100.c
76
struct dentry *debugfs_root;
drivers/media/platform/nxp/imx-mipi-csis.c
359
struct dentry *debugfs_root;
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h
296
struct dentry *debugfs_root;
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h
30
struct dentry;
drivers/media/platform/qcom/venus/core.h
240
struct dentry *root;
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
271
struct dentry *debugfs;
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
526
int csi2_init(struct csi2_device *csi2, struct dentry *debugfs)
drivers/media/platform/raspberrypi/rp1-cfe/csi2.h
86
int csi2_init(struct csi2_device *csi2, struct dentry *debugfs);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
544
int pisp_fe_init(struct pisp_fe_device *fe, struct dentry *debugfs)
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.h
50
int pisp_fe_init(struct pisp_fe_device *fe, struct dentry *debugfs);
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
26
struct dentry;
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
472
struct dentry *debugfs_dir;
drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c
197
struct dentry *regs_dir;
drivers/media/platform/samsung/exynos4-is/fimc-is.h
299
struct dentry *debugfs_entry;
drivers/media/platform/st/sti/bdisp/bdisp.h
156
struct dentry *debugfs_entry;
drivers/media/platform/st/sti/hva/hva.h
184
struct dentry *debugfs_entry;
drivers/media/platform/st/sti/hva/hva.h
289
struct dentry *debugfs_entry;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
146
struct dentry *debugfs_dir;
drivers/media/radio/radio-si476x.c
311
struct dentry *debugfs;
drivers/media/test-drivers/visl/visl-debugfs.c
45
struct dentry *dentry;
drivers/media/test-drivers/visl/visl-debugfs.c
61
dentry = debugfs_create_blob(name, 0444, ctx->dev->bitstream_debugfs,
drivers/media/test-drivers/visl/visl-debugfs.c
63
if (IS_ERR(dentry))
drivers/media/test-drivers/visl/visl-debugfs.c
66
blob->dentry = dentry;
drivers/media/test-drivers/visl/visl-debugfs.c
91
debugfs_remove(blob->dentry);
drivers/media/test-drivers/visl/visl.h
114
struct dentry *debugfs_root;
drivers/media/test-drivers/visl/visl.h
115
struct dentry *bitstream_debugfs;
drivers/media/test-drivers/visl/visl.h
136
struct dentry *dentry;
drivers/media/usb/uvc/uvc_debugfs.c
70
static struct dentry *uvc_debugfs_root_dir;
drivers/media/usb/uvc/uvcvideo.h
503
struct dentry *debugfs_dir;
drivers/media/v4l2-core/v4l2-async.c
969
static struct dentry *v4l2_async_debugfs_dir;
drivers/media/v4l2-core/v4l2-dev.c
1135
struct dentry *v4l2_debugfs_root(void)
drivers/media/v4l2-core/v4l2-dev.c
96
static struct dentry *v4l2_debugfs_root_dir;
drivers/media/v4l2-core/v4l2-dv-timings.c
1231
struct v4l2_debugfs_if *v4l2_debugfs_if_alloc(struct dentry *root, u32 if_types,
drivers/memory/emif.c
67
struct dentry *debugfs_root;
drivers/memory/tegra/tegra124-emc.c
499
struct dentry *root;
drivers/memory/tegra/tegra186-emc.c
30
struct dentry *root;
drivers/memory/tegra/tegra20-emc.c
210
struct dentry *root;
drivers/memory/tegra/tegra210-emc.h
928
struct dentry *root;
drivers/memory/tegra/tegra30-emc.c
381
struct dentry *root;
drivers/mfd/intel-lpss.c
137
static struct dentry *intel_lpss_debugfs;
drivers/mfd/intel-lpss.c
147
struct dentry *dir;
drivers/mfd/intel-lpss.c
39
struct dentry;
drivers/mfd/intel-lpss.c
93
struct dentry *debugfs;
drivers/mfd/tps65010.c
65
struct dentry *file;
drivers/misc/eeprom/idt_89hpesx.c
102
struct dentry *csr_dir;
drivers/misc/genwqe/card_base.c
46
static struct dentry *debugfs_genwqe;
drivers/misc/genwqe/card_base.h
296
struct dentry *debugfs_root; /* debugfs card root directory */
drivers/misc/genwqe/card_base.h
297
struct dentry *debugfs_genwqe; /* debugfs driver root directory */
drivers/misc/genwqe/card_debugfs.c
321
struct dentry *root;
drivers/misc/ibmasm/ibmasmfs.c
145
static int ibmasmfs_create_file(struct dentry *parent,
drivers/misc/ibmasm/ibmasmfs.c
151
struct dentry *dentry;
drivers/misc/ibmasm/ibmasmfs.c
154
dentry = d_alloc_name(parent, name);
drivers/misc/ibmasm/ibmasmfs.c
155
if (!dentry)
drivers/misc/ibmasm/ibmasmfs.c
160
dput(dentry);
drivers/misc/ibmasm/ibmasmfs.c
167
d_make_persistent(dentry, inode);
drivers/misc/ibmasm/ibmasmfs.c
168
dput(dentry);
drivers/misc/ibmasm/ibmasmfs.c
172
static struct dentry *ibmasmfs_create_dir(struct dentry *parent,
drivers/misc/ibmasm/ibmasmfs.c
175
struct dentry *dentry;
drivers/misc/ibmasm/ibmasmfs.c
178
dentry = d_alloc_name(parent, name);
drivers/misc/ibmasm/ibmasmfs.c
179
if (!dentry)
drivers/misc/ibmasm/ibmasmfs.c
184
dput(dentry);
drivers/misc/ibmasm/ibmasmfs.c
191
d_make_persistent(dentry, inode);
drivers/misc/ibmasm/ibmasmfs.c
192
dput(dentry);
drivers/misc/ibmasm/ibmasmfs.c
193
return dentry; // borrowed
drivers/misc/ibmasm/ibmasmfs.c
578
struct dentry *dir;
drivers/misc/ibmasm/ibmasmfs.c
579
struct dentry *remote_dir;
drivers/misc/lkdtm/core.c
391
static struct dentry *lkdtm_debugfs_root;
drivers/misc/mei/debugfs.c
181
struct dentry *dir;
drivers/misc/mei/mei_dev.h
651
struct dentry *dbgfs_dir;
drivers/misc/xilinx_tmr_inject.c
47
static struct dentry *dbgfs_root;
drivers/misc/xilinx_tmr_inject.c
74
struct dentry *dir;
drivers/mmc/core/block.c
146
struct dentry *status_dentry;
drivers/mmc/core/block.c
147
struct dentry *ext_csd_dentry;
drivers/mmc/core/block.c
3178
struct dentry *root;
drivers/mmc/core/debugfs.c
355
struct dentry *root;
drivers/mmc/core/debugfs.c
389
struct dentry *root;
drivers/mmc/core/mmc_test.c
131
struct dentry *file;
drivers/mmc/core/mmc_test.c
3184
struct dentry *file = NULL;
drivers/mmc/host/atmel-mci.c
606
struct dentry *root;
drivers/mmc/host/dw_mmc.c
172
struct dentry *root;
drivers/mmc/host/sdhci-pci-core.c
869
struct dentry *dir = mmc->debugfs_root;
drivers/mtd/devices/docg3.c
1727
struct dentry *root = floor->dbg.dfs_dir;
drivers/mtd/mtdcore.c
385
static struct dentry *dfs_dir_mtd;
drivers/mtd/mtdswap.c
1257
struct dentry *root = d->mtd->dbg.dfs_dir;
drivers/mtd/nand/raw/nandsim.c
360
struct dentry *dent;
drivers/mtd/nand/raw/nandsim.c
502
struct dentry *root = nsmtd->dbg.dfs_dir;
drivers/mtd/spi-nor/debugfs.c
230
static struct dentry *rootdir;
drivers/mtd/spi-nor/debugfs.c
234
struct dentry *d;
drivers/mtd/ubi/debug.c
243
static struct dentry *dfs_rootdir;
drivers/mtd/ubi/debug.c
246
static void dfs_create_fault_entry(struct dentry *parent)
drivers/mtd/ubi/debug.c
248
struct dentry *dir;
drivers/mtd/ubi/debug.c
332
struct dentry *dent = file->f_path.dentry;
drivers/mtd/ubi/debug.c
399
struct dentry *dent = file->f_path.dentry;
drivers/mtd/ubi/ubi.h
424
struct dentry *dfs_dir;
drivers/mtd/ubi/ubi.h
425
struct dentry *dfs_chk_gen;
drivers/mtd/ubi/ubi.h
426
struct dentry *dfs_chk_io;
drivers/mtd/ubi/ubi.h
427
struct dentry *dfs_chk_fastmap;
drivers/mtd/ubi/ubi.h
428
struct dentry *dfs_disable_bgt;
drivers/mtd/ubi/ubi.h
429
struct dentry *dfs_emulate_bitflips;
drivers/mtd/ubi/ubi.h
430
struct dentry *dfs_emulate_io_failures;
drivers/mtd/ubi/ubi.h
431
struct dentry *dfs_emulate_power_cut;
drivers/mtd/ubi/ubi.h
432
struct dentry *dfs_power_cut_min;
drivers/mtd/ubi/ubi.h
433
struct dentry *dfs_power_cut_max;
drivers/mtd/ubi/ubi.h
434
struct dentry *dfs_emulate_failures;
drivers/net/bonding/bond_debugfs.c
15
static struct dentry *bonding_debug_root;
drivers/net/caif/caif_serial.c
60
static struct dentry *debugfsdir;
drivers/net/caif/caif_serial.c
74
struct dentry *debugfs_tty_dir;
drivers/net/caif/caif_virtio.c
126
struct dentry *debugfs;
drivers/net/ethernet/airoha/airoha_eth.h
569
struct dentry *debugfs_dir;
drivers/net/ethernet/amazon/ena/ena_netdev.h
396
struct dentry *debugfs_base;
drivers/net/ethernet/amd/pds_core/core.h
132
struct dentry *dentry;
drivers/net/ethernet/amd/pds_core/core.h
156
struct dentry *dentry;
drivers/net/ethernet/amd/pds_core/debugfs.c
109
struct dentry *qcq_dentry, *q_dentry, *cq_dentry, *intr_dentry;
drivers/net/ethernet/amd/pds_core/debugfs.c
114
qcq_dentry = debugfs_create_dir(q->name, pdsc->dentry);
drivers/net/ethernet/amd/pds_core/debugfs.c
117
qcq->dentry = qcq_dentry;
drivers/net/ethernet/amd/pds_core/debugfs.c
125
q_dentry = debugfs_create_dir("q", qcq->dentry);
drivers/net/ethernet/amd/pds_core/debugfs.c
137
cq_dentry = debugfs_create_dir("cq", qcq->dentry);
drivers/net/ethernet/amd/pds_core/debugfs.c
150
intr_dentry = debugfs_create_dir("intr", qcq->dentry);
drivers/net/ethernet/amd/pds_core/debugfs.c
173
debugfs_remove_recursive(qcq->dentry);
drivers/net/ethernet/amd/pds_core/debugfs.c
174
qcq->dentry = NULL;
drivers/net/ethernet/amd/pds_core/debugfs.c
22
pdsc->dentry = debugfs_create_dir(pci_name(pdsc->pdev), pdsc_dir);
drivers/net/ethernet/amd/pds_core/debugfs.c
24
debugfs_create_ulong("state", 0400, pdsc->dentry, &pdsc->state);
drivers/net/ethernet/amd/pds_core/debugfs.c
29
debugfs_remove_recursive(pdsc->dentry);
drivers/net/ethernet/amd/pds_core/debugfs.c
30
pdsc->dentry = NULL;
drivers/net/ethernet/amd/pds_core/debugfs.c
68
if (debugfs_lookup("identity", pdsc->dentry))
drivers/net/ethernet/amd/pds_core/debugfs.c
71
debugfs_create_file("identity", 0400, pdsc->dentry,
drivers/net/ethernet/amd/pds_core/debugfs.c
8
static struct dentry *pdsc_dir;
drivers/net/ethernet/amd/pds_core/debugfs.c
95
debugfs_create_file("viftypes", 0400, pdsc->dentry,
drivers/net/ethernet/amd/xgbe/xgbe.h
1230
struct dentry *xgbe_debugfs;
drivers/net/ethernet/broadcom/bnxt/bnxt.h
2752
struct dentry *debugfs_pdev;
drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c
18
static struct dentry *bnxt_debug_mnt;
drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c
65
struct dentry *dd)
drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c
76
struct dentry *dir;
drivers/net/ethernet/brocade/bna/bnad.h
354
struct dentry *port_debugfs_root;
drivers/net/ethernet/brocade/bna/bnad_debugfs.c
488
static struct dentry *bna_debugfs_root;
drivers/net/ethernet/chelsio/cxgb3/adapter.h
261
struct dentry *debugfs_root;
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
1181
struct dentry *debugfs_root;
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
700
struct dentry;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
181
static struct dentry *cxgb4_debugfs_root;
drivers/net/ethernet/chelsio/cxgb4vf/adapter.h
392
struct dentry *debugfs_root;
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
127
static struct dentry *cxgb4vf_debugfs_root;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c
12
static struct dentry *dpaa2_dbg_root;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c
170
struct dentry *dir;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.h
13
struct dentry *dir;
drivers/net/ethernet/freescale/enetc/enetc.h
330
struct dentry *debugfs_root;
drivers/net/ethernet/freescale/enetc/enetc4_debugfs.c
75
struct dentry *root;
drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c
111
struct dentry *debugfs_root;
drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c
696
struct dentry *root;
drivers/net/ethernet/hisilicon/hibmcge/hbg_debugfs.c
139
debugfs_remove_recursive((struct dentry *)data);
drivers/net/ethernet/hisilicon/hibmcge/hbg_debugfs.c
146
struct dentry *root;
drivers/net/ethernet/hisilicon/hibmcge/hbg_debugfs.c
15
static struct dentry *hbg_dbgfs_root;
drivers/net/ethernet/hisilicon/hns3/hnae3.h
931
struct dentry *hnae3_dbgfs;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
105
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
111
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
117
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
123
.dentry = HNS3_DBG_DENTRY_TX_BD,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
129
.dentry = HNS3_DBG_DENTRY_RX_BD,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
13
static struct dentry *hns3_dbgfs_root;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
135
.dentry = HNS3_DBG_DENTRY_MAC,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
141
.dentry = HNS3_DBG_DENTRY_MAC,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
147
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
153
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
159
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
165
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
171
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
177
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
183
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
189
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
195
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
201
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
207
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
213
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
219
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
225
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
231
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
237
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
243
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
249
.dentry = HNS3_DBG_DENTRY_REG,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
255
.dentry = HNS3_DBG_DENTRY_QUEUE,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
261
.dentry = HNS3_DBG_DENTRY_QUEUE,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
267
.dentry = HNS3_DBG_DENTRY_QUEUE,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
273
.dentry = HNS3_DBG_DENTRY_FD,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
279
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
285
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
291
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
297
.dentry = HNS3_DBG_DENTRY_FD,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
303
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
309
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
315
.dentry = HNS3_DBG_DENTRY_COMMON,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
51
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
57
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
63
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
69
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
75
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
81
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
840
struct dentry *entry_dir;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
844
entry_dir = hns3_dbg_dentry[hns3_dbg_cmd[cmd].dentry].dentry;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
868
struct dentry *entry_dir;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
87
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
894
entry_dir = hns3_dbg_dentry[hns3_dbg_cmd[cmd].dentry].dentry;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
905
struct dentry *entry_dir;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
916
entry_dir = hns3_dbg_dentry[hns3_dbg_cmd[cmd].dentry].dentry;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
93
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
930
hns3_dbg_dentry[HNS3_DBG_DENTRY_COMMON].dentry =
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
932
handle->hnae3_dbgfs = hns3_dbg_dentry[HNS3_DBG_DENTRY_COMMON].dentry;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
935
hns3_dbg_dentry[i].dentry =
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
99
.dentry = HNS3_DBG_DENTRY_TM,
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
36
struct dentry *dentry;
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
42
enum hns3_dbg_dentry_type dentry;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
936
struct dentry *hclge_dbgfs;
drivers/net/ethernet/huawei/hinic/hinic_debugfs.c
11
static struct dentry *hinic_dbgfs_root;
drivers/net/ethernet/huawei/hinic/hinic_debugfs.c
179
struct dentry *root, struct hinic_debug_priv **dbg, char **field,
drivers/net/ethernet/huawei/hinic/hinic_debugfs.c
215
struct dentry *root;
drivers/net/ethernet/huawei/hinic/hinic_debugfs.c
237
struct dentry *root;
drivers/net/ethernet/huawei/hinic/hinic_dev.h
116
struct dentry *dbgfs_root;
drivers/net/ethernet/huawei/hinic/hinic_dev.h
117
struct dentry *sq_dbgfs;
drivers/net/ethernet/huawei/hinic/hinic_dev.h
118
struct dentry *rq_dbgfs;
drivers/net/ethernet/huawei/hinic/hinic_dev.h
119
struct dentry *func_tbl_dbgfs;
drivers/net/ethernet/huawei/hinic/hinic_dev.h
75
struct dentry *root;
drivers/net/ethernet/intel/fm10k/fm10k.h
198
struct dentry *dbg_q_vector;
drivers/net/ethernet/intel/fm10k/fm10k.h
378
struct dentry *dbg_intfc;
drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c
9
static struct dentry *dbg_root;
drivers/net/ethernet/intel/i40e/i40e.h
569
struct dentry *i40e_dbg_pf;
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
12
static struct dentry *i40e_dbg_root;
drivers/net/ethernet/intel/ice/ice.h
577
struct dentry *ice_debugfs_pf;
drivers/net/ethernet/intel/ice/ice_debugfs.c
7
static struct dentry *ice_debugfs_root;
drivers/net/ethernet/intel/ixgbe/ixgbe.h
824
struct dentry *ixgbe_dbg_adapter;
drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c
9
static struct dentry *ixgbe_dbg_root;
drivers/net/ethernet/intel/libie/fwlog.c
362
static int libie_find_module_by_dentry(struct dentry **modules, struct dentry *d)
drivers/net/ethernet/intel/libie/fwlog.c
387
struct dentry *dentry;
drivers/net/ethernet/intel/libie/fwlog.c
390
dentry = file_dentry(filp);
drivers/net/ethernet/intel/libie/fwlog.c
392
module = libie_find_module_by_dentry(fwlog->debugfs_modules, dentry);
drivers/net/ethernet/intel/libie/fwlog.c
420
struct dentry *dentry = file_dentry(filp);
drivers/net/ethernet/intel/libie/fwlog.c
433
module = libie_find_module_by_dentry(fwlog->debugfs_modules, dentry);
drivers/net/ethernet/intel/libie/fwlog.c
855
struct dentry *root)
drivers/net/ethernet/intel/libie/fwlog.c
857
struct dentry *fw_modules_dir;
drivers/net/ethernet/intel/libie/fwlog.c
858
struct dentry **fw_modules;
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
1100
struct dentry *dbgfs_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
447
static int mvpp2_dbgfs_flow_port_init(struct dentry *parent,
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
452
struct dentry *port_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
470
static int mvpp2_dbgfs_flow_entry_init(struct dentry *parent,
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
474
struct dentry *flow_entry_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
507
static int mvpp2_dbgfs_flow_init(struct dentry *parent, struct mvpp2 *priv)
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
509
struct dentry *flow_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
523
static int mvpp2_dbgfs_prs_entry_init(struct dentry *parent,
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
527
struct dentry *prs_entry_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
567
static int mvpp2_dbgfs_prs_init(struct dentry *parent, struct mvpp2 *priv)
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
569
struct dentry *prs_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
583
static int mvpp2_dbgfs_c2_entry_init(struct dentry *parent,
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
587
struct dentry *c2_entry_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
614
static int mvpp2_dbgfs_flow_tbl_entry_init(struct dentry *parent,
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
618
struct dentry *flow_tbl_entry_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
639
static int mvpp2_dbgfs_cls_init(struct dentry *parent, struct mvpp2 *priv)
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
641
struct dentry *cls_dir, *c2_dir, *flow_tbl_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
665
static int mvpp2_dbgfs_port_init(struct dentry *parent,
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
668
struct dentry *port_dir;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
684
static struct dentry *mvpp2_root;
drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
700
struct dentry *mvpp2_dir;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
100
struct dentry *mcs_root;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
101
struct dentry *mcs;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
102
struct dentry *mcs_rx;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
103
struct dentry *mcs_tx;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
92
struct dentry *root;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
93
struct dentry *cgx_root;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
94
struct dentry *cgx;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
95
struct dentry *lmac;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
96
struct dentry *npa;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
97
struct dentry *nix;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
98
struct dentry *npc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
99
struct dentry *cpt;
drivers/net/ethernet/marvell/skge.c
3689
static struct dentry *skge_debug;
drivers/net/ethernet/marvell/skge.h
2470
struct dentry *debugfs;
drivers/net/ethernet/marvell/sky2.c
4382
static struct dentry *sky2_debug;
drivers/net/ethernet/marvell/sky2.c
4524
struct dentry *ent;
drivers/net/ethernet/marvell/sky2.h
2269
struct dentry *debugfs;
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c
186
struct dentry *root;
drivers/net/ethernet/mediatek/mtk_wed.h
43
struct dentry *debugfs_dir;
drivers/net/ethernet/mediatek/mtk_wed_debugfs.c
616
struct dentry *dir;
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
101
struct dentry *mlx5_debugfs_get_dev_root(struct mlx5_core_dev *dev)
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
222
struct dentry **cmd;
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
282
struct dentry *pages;
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
505
struct dentry *root, struct mlx5_rsc_debug **dbg,
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
88
struct dentry *mlx5_debugfs_root;
drivers/net/ethernet/mellanox/mlx5/core/en.h
976
struct dentry *dfs_root;
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
157
struct dentry *dfs_root);
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
213
struct dentry *mlx5e_fs_get_debugfs_root(struct mlx5e_flow_steering *fs);
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
58
struct dentry *root;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c
187
struct dentry *dfs_root)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h
81
struct dentry *dfs;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h
82
struct dentry *dfs_tx;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
898
struct dentry *dfs_root)
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
109
struct dentry *mlx5e_fs_get_debugfs_root(struct mlx5e_flow_steering *fs)
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
1453
struct dentry *dfs_root)
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
1464
struct dentry *dfs_root)
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
71
struct dentry *dfs_root;
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
100
struct dentry *dfs_root;
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
1082
struct dentry *dfs_root)
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.h
13
struct dentry;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.h
21
struct dentry *debugfs_root;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_priv.h
203
struct dentry *debugfs_dir;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
361
struct dentry;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
372
struct dentry *debugfs_root;
drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.c
164
struct dentry *dbg;
drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.c
179
void mlx5_ldev_remove_debugfs(struct dentry *dbg)
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
115
void mlx5_ldev_remove_debugfs(struct dentry *dbg);
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c
20
struct dentry *dfs;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context.h
27
struct dentry *steering_debugfs;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context.h
28
struct dentry *fdb_debugfs;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.h
24
struct dentry *steering_debugfs;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.h
25
struct dentry *fdb_debugfs;
drivers/net/ethernet/meta/fbnic/fbnic.h
28
struct dentry *dbg_fbd;
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
12
static struct dentry *fbnic_dbg_root;
drivers/net/ethernet/meta/fbnic/fbnic_txrx.h
154
struct dentry *dbg_nv;
drivers/net/ethernet/microchip/lan966x/lan966x_main.h
343
struct dentry *debugfs_root;
drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
713
struct dentry *dir;
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
435
struct dentry *debugfs_root;
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
2038
struct dentry *dir;
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c
386
void vcap_port_debugfs(struct device *dev, struct dentry *parent,
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c
437
struct dentry *vcap_debugfs(struct device *dev, struct dentry *parent,
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c
442
struct dentry *dir;
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h
17
void vcap_port_debugfs(struct device *dev, struct dentry *parent,
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h
22
struct dentry *vcap_debugfs(struct device *dev, struct dentry *parent,
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h
27
static inline void vcap_port_debugfs(struct device *dev, struct dentry *parent,
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h
33
static inline struct dentry *vcap_debugfs(struct device *dev,
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h
34
struct dentry *parent,
drivers/net/ethernet/microsoft/mana/gdma_main.c
16
struct dentry *mana_debugfs_root;
drivers/net/ethernet/netronome/nfp/nfp_main.h
131
struct dentry *ddir;
drivers/net/ethernet/netronome/nfp/nfp_main.h
19
struct dentry;
drivers/net/ethernet/netronome/nfp/nfp_net.h
1029
struct dentry *nfp_net_debugfs_device_add(struct pci_dev *pdev);
drivers/net/ethernet/netronome/nfp/nfp_net.h
1030
void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir);
drivers/net/ethernet/netronome/nfp/nfp_net.h
1031
void nfp_net_debugfs_dir_clean(struct dentry **dir);
drivers/net/ethernet/netronome/nfp/nfp_net.h
1041
static inline struct dentry *nfp_net_debugfs_device_add(struct pci_dev *pdev)
drivers/net/ethernet/netronome/nfp/nfp_net.h
1047
nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir)
drivers/net/ethernet/netronome/nfp/nfp_net.h
1051
static inline void nfp_net_debugfs_dir_clean(struct dentry **dir)
drivers/net/ethernet/netronome/nfp/nfp_net.h
717
struct dentry *debugfs_dir;
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c
10
static struct dentry *nfp_dir;
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c
129
void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir)
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c
131
struct dentry *queues, *tx, *rx, *xdp;
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c
166
struct dentry *nfp_net_debugfs_device_add(struct pci_dev *pdev)
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c
171
void nfp_net_debugfs_dir_clean(struct dentry **dir)
drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c
35
struct dentry *ddir;
drivers/net/ethernet/pensando/ionic/ionic.h
46
struct dentry *dentry;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
115
struct dentry *qcq_dentry, *q_dentry, *cq_dentry;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
117
struct dentry *intr_dentry, *stats_dentry;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
125
qcq_dentry = debugfs_create_dir(q->name, lif->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
128
qcq->dentry = qcq_dentry;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
137
q_dentry = debugfs_create_dir("q", qcq->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
14
static struct dentry *ionic_dir;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
167
cq_dentry = debugfs_create_dir("cq", qcq->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
184
intr_dentry = debugfs_create_dir("intr", qcq->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
206
stats_dentry = debugfs_create_dir("notifyblock", qcq->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
275
struct dentry *lif_dentry;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
277
lif_dentry = debugfs_create_dir(lif->name, lif->ionic->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
28
ionic->dentry = debugfs_create_dir(ionic_bus_info(ionic), ionic_dir);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
280
lif->dentry = lif_dentry;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
282
debugfs_create_file("netdev", 0400, lif->dentry,
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
284
debugfs_create_file("filters", 0400, lif->dentry,
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
290
if (!lif->dentry)
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
293
debugfs_remove_recursive(lif->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
294
lif->dentry = NULL;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
299
debugfs_remove_recursive(qcq->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
300
qcq->dentry = NULL;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
33
debugfs_remove_recursive(ionic->dentry);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
34
ionic->dentry = NULL;
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
59
debugfs_create_file("identity", 0400, ionic->dentry,
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
65
debugfs_create_u32("nlifs", 0400, ionic->dentry,
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
67
debugfs_create_u32("nintrs", 0400, ionic->dentry, &ionic->nintrs);
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
69
debugfs_create_u32("ntxqs_per_lif", 0400, ionic->dentry,
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
71
debugfs_create_u32("nrxqs_per_lif", 0400, ionic->dentry,
drivers/net/ethernet/pensando/ionic/ionic_lif.h
247
struct dentry *dentry;
drivers/net/ethernet/pensando/ionic/ionic_lif.h
93
struct dentry *dentry;
drivers/net/ethernet/qlogic/qed/qed.h
689
struct dentry *dentry;
drivers/net/ethernet/qualcomm/ppe/ppe.h
14
struct dentry;
drivers/net/ethernet/qualcomm/ppe/ppe.h
35
struct dentry *debugfs_root;
drivers/net/ethernet/qualcomm/qca_spi.h
88
struct dentry *device_root;
drivers/net/ethernet/stmicro/stmmac/stmmac.h
343
struct dentry *dbgfs_dir;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
6428
static struct dentry *stmmac_fs_dir;
drivers/net/ethernet/vertexcom/mse102x.c
91
struct dentry *device_root;
drivers/net/fjes/fjes.h
56
struct dentry *dbg_adapter;
drivers/net/fjes/fjes_debugfs.c
17
static struct dentry *fjes_debug_root;
drivers/net/ieee802154/adf7242.c
276
struct dentry *debugfs_root;
drivers/net/ieee802154/ca8210.c
280
struct dentry *ca8210_dfs_spi_int;
drivers/net/netdevsim/bpf.c
32
struct dentry *ddir;
drivers/net/netdevsim/bpf.c
624
struct dentry *ddir = ns->nsim_dev_port->ddir;
drivers/net/netdevsim/dev.c
1291
struct dentry *ddir;
drivers/net/netdevsim/dev.c
1292
struct dentry *rate_parent;
drivers/net/netdevsim/dev.c
396
static void nsim_dev_tc_bw_debugfs_init(struct dentry *ddir, u32 *tc_bw)
drivers/net/netdevsim/dev.c
58
static struct dentry *nsim_dev_ddir;
drivers/net/netdevsim/ethtool.c
239
struct dentry *ethtool, *dir;
drivers/net/netdevsim/fib.c
61
struct dentry *ddir;
drivers/net/netdevsim/netdevsim.h
142
struct dentry *ddir;
drivers/net/netdevsim/netdevsim.h
147
struct dentry *pp_dfs;
drivers/net/netdevsim/netdevsim.h
148
struct dentry *qr_dfs;
drivers/net/netdevsim/netdevsim.h
230
struct dentry *ddir;
drivers/net/netdevsim/netdevsim.h
248
struct dentry *ddir;
drivers/net/netdevsim/netdevsim.h
249
struct dentry *l3_ddir;
drivers/net/netdevsim/netdevsim.h
288
struct dentry *ddir;
drivers/net/netdevsim/netdevsim.h
289
struct dentry *rate_parent;
drivers/net/netdevsim/netdevsim.h
312
struct dentry *ddir;
drivers/net/netdevsim/netdevsim.h
313
struct dentry *ports_ddir;
drivers/net/netdevsim/netdevsim.h
314
struct dentry *take_snapshot;
drivers/net/netdevsim/netdevsim.h
315
struct dentry *nodes_ddir;
drivers/net/netdevsim/netdevsim.h
323
struct dentry *ddir_bpf_bound_progs;
drivers/net/netdevsim/netdevsim.h
54
struct dentry *pfile;
drivers/net/netdevsim/psample.c
25
struct dentry *ddir;
drivers/net/netdevsim/psp.c
243
struct dentry *ddir = ns->nsim_dev_port->ddir;
drivers/net/phy/sfp.c
299
struct dentry *debugfs_dir;
drivers/net/wireless/ath/ath10k/core.h
679
struct dentry *debugfs_phy;
drivers/net/wireless/ath/ath10k/debug.h
213
struct ieee80211_sta *sta, struct dentry *dir);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
760
struct ieee80211_sta *sta, struct dentry *dir)
drivers/net/wireless/ath/ath10k/spectral.c
466
static struct dentry *create_buf_file_handler(const char *filename,
drivers/net/wireless/ath/ath10k/spectral.c
467
struct dentry *parent,
drivers/net/wireless/ath/ath10k/spectral.c
472
struct dentry *buf_file;
drivers/net/wireless/ath/ath10k/spectral.c
483
static int remove_buf_file_handler(struct dentry *dentry)
drivers/net/wireless/ath/ath10k/spectral.c
485
debugfs_remove(dentry);
drivers/net/wireless/ath/ath11k/cfr.c
816
static struct dentry *ath11k_cfr_create_buf_file_handler(const char *filename,
drivers/net/wireless/ath/ath11k/cfr.c
817
struct dentry *parent,
drivers/net/wireless/ath/ath11k/cfr.c
822
struct dentry *buf_file;
drivers/net/wireless/ath/ath11k/cfr.c
830
static int ath11k_cfr_remove_buf_file_handler(struct dentry *dentry)
drivers/net/wireless/ath/ath11k/cfr.c
832
debugfs_remove(dentry);
drivers/net/wireless/ath/ath11k/cfr.h
182
struct dentry *enable_cfr;
drivers/net/wireless/ath/ath11k/cfr.h
183
struct dentry *cfr_unassoc;
drivers/net/wireless/ath/ath11k/core.h
1012
struct dentry *debugfs_soc;
drivers/net/wireless/ath/ath11k/core.h
612
struct dentry *debugfs_fwstats;
drivers/net/wireless/ath/ath11k/core.h
633
struct dentry *debugfs_pdev;
drivers/net/wireless/ath/ath11k/debugfs.c
1780
struct dentry *debugfs_twt;
drivers/net/wireless/ath/ath11k/debugfs.c
881
struct dentry *root;
drivers/net/wireless/ath/ath11k/debugfs.c
931
struct dentry *fwstats_dir = debugfs_create_dir("fw_stats",
drivers/net/wireless/ath/ath11k/debugfs.h
77
struct dentry *dbr_debugfs;
drivers/net/wireless/ath/ath11k/debugfs_sta.c
986
struct ieee80211_sta *sta, struct dentry *dir)
drivers/net/wireless/ath/ath11k/debugfs_sta.h
18
struct ieee80211_sta *sta, struct dentry *dir);
drivers/net/wireless/ath/ath11k/spectral.c
131
static struct dentry *create_buf_file_handler(const char *filename,
drivers/net/wireless/ath/ath11k/spectral.c
132
struct dentry *parent,
drivers/net/wireless/ath/ath11k/spectral.c
137
struct dentry *buf_file;
drivers/net/wireless/ath/ath11k/spectral.c
145
static int remove_buf_file_handler(struct dentry *dentry)
drivers/net/wireless/ath/ath11k/spectral.c
147
debugfs_remove(dentry);
drivers/net/wireless/ath/ath11k/spectral.h
32
struct dentry *scan_ctl;
drivers/net/wireless/ath/ath11k/spectral.h
33
struct dentry *scan_count;
drivers/net/wireless/ath/ath11k/spectral.h
34
struct dentry *scan_bins;
drivers/net/wireless/ath/ath12k/core.h
1031
struct dentry *debugfs_soc;
drivers/net/wireless/ath/ath12k/core.h
588
struct dentry *debugfs_pdev;
drivers/net/wireless/ath/ath12k/core.h
589
struct dentry *debugfs_pdev_symlink;
drivers/net/wireless/ath/ath12k/debugfs.c
1228
struct dentry *debugfs_ath12k;
drivers/net/wireless/ath/ath12k/debugfs.c
1456
struct dentry *fwstats_dir = debugfs_create_dir("fw_stats",
drivers/net/wireless/ath/ath12k/debugfs_sta.c
306
struct dentry *dir)
drivers/net/wireless/ath/ath12k/debugfs_sta.h
20
struct dentry *dir);
drivers/net/wireless/ath/ath5k/debug.c
980
struct dentry *phydir;
drivers/net/wireless/ath/ath6kl/core.h
834
struct dentry *debugfs_phy;
drivers/net/wireless/ath/ath9k/common-debug.c
181
void ath9k_cmn_debug_recv(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.c
257
void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.c
48
void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.c
83
void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
68
void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
70
void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
74
void ath9k_cmn_debug_recv(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
76
void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
79
static inline void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
84
static inline void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
94
static inline void ath9k_cmn_debug_recv(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-debug.h
99
static inline void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy,
drivers/net/wireless/ath/ath9k/common-spectral.c
1012
static struct dentry *create_buf_file_handler(const char *filename,
drivers/net/wireless/ath/ath9k/common-spectral.c
1013
struct dentry *parent,
drivers/net/wireless/ath/ath9k/common-spectral.c
1018
struct dentry *buf_file;
drivers/net/wireless/ath/ath9k/common-spectral.c
1029
static int remove_buf_file_handler(struct dentry *dentry)
drivers/net/wireless/ath/ath9k/common-spectral.c
1031
debugfs_remove(dentry);
drivers/net/wireless/ath/ath9k/common-spectral.c
1055
struct dentry *debugfs_phy)
drivers/net/wireless/ath/ath9k/common-spectral.h
172
void ath9k_cmn_spectral_init_debug(struct ath_spec_scan_priv *spec_priv, struct dentry *debugfs_phy);
drivers/net/wireless/ath/ath9k/common-spectral.h
184
struct dentry *debugfs_phy)
drivers/net/wireless/ath/ath9k/debug.h
252
struct dentry *debugfs_phy;
drivers/net/wireless/ath/ath9k/debug.h
276
struct dentry *dir);
drivers/net/wireless/ath/ath9k/debug_sta.c
248
struct dentry *dir)
drivers/net/wireless/ath/ath9k/htc.h
364
struct dentry *debugfs_phy;
drivers/net/wireless/ath/carl9170/carl9170.h
437
struct dentry *debug_dir;
drivers/net/wireless/ath/wcn36xx/debug.c
178
struct dentry *d; \
drivers/net/wireless/ath/wcn36xx/debug.c
182
dfs->file_##name.dentry = d; \
drivers/net/wireless/ath/wcn36xx/debug.c
185
dfs->file_##name.dentry = NULL; \
drivers/net/wireless/ath/wcn36xx/debug.h
26
struct dentry *dentry;
drivers/net/wireless/ath/wcn36xx/debug.h
31
struct dentry *rootdir;
drivers/net/wireless/ath/wil6210/debugfs.c
2298
struct dentry *dbg)
drivers/net/wireless/ath/wil6210/debugfs.c
2359
struct dentry *dbg)
drivers/net/wireless/ath/wil6210/debugfs.c
2380
struct dentry *dbg)
drivers/net/wireless/ath/wil6210/debugfs.c
2439
struct dentry *dbg = wil->debug = debugfs_create_dir(WIL_NAME,
drivers/net/wireless/ath/wil6210/debugfs.c
416
struct dentry *parent, void *value,
drivers/net/wireless/ath/wil6210/debugfs.c
454
struct dentry *dbg, void *base,
drivers/net/wireless/ath/wil6210/debugfs.c
499
const char *name, struct dentry *parent,
drivers/net/wireless/ath/wil6210/debugfs.c
502
struct dentry *d = debugfs_create_dir(name, parent);
drivers/net/wireless/ath/wil6210/debugfs.c
516
struct dentry *parent)
drivers/net/wireless/ath/wil6210/debugfs.c
518
struct dentry *d = debugfs_create_dir("PSEUDO_ISR", parent);
drivers/net/wireless/ath/wil6210/debugfs.c
564
struct dentry *parent)
drivers/net/wireless/ath/wil6210/debugfs.c
566
struct dentry *d, *dtx, *drx;
drivers/net/wireless/ath/wil6210/debugfs.c
684
struct dentry *wil_debugfs_create_ioblob(const char *name,
drivers/net/wireless/ath/wil6210/debugfs.c
686
struct dentry *parent,
drivers/net/wireless/ath/wil6210/wil6210.h
1009
struct dentry *debug;
drivers/net/wireless/broadcom/b43/debugfs.c
28
static struct dentry *rootdir;
drivers/net/wireless/broadcom/b43/debugfs.h
23
struct dentry;
drivers/net/wireless/broadcom/b43/debugfs.h
41
struct dentry *subdir;
drivers/net/wireless/broadcom/b43legacy/debugfs.c
29
static struct dentry *rootdir;
drivers/net/wireless/broadcom/b43legacy/debugfs.h
20
struct dentry;
drivers/net/wireless/broadcom/b43legacy/debugfs.h
37
struct dentry *subdir;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
389
struct dentry *debugfsdir;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
135
struct dentry *dbgfs_dir;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c
45
struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h
121
struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h
127
static inline struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
2383
struct dentry *dentry = brcmf_debugfs_get_devdir(drvr);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
2385
if (IS_ERR_OR_NULL(dentry))
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
2390
debugfs_create_file("console_interval", 0644, dentry, devinfo,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
3219
struct dentry *dentry = brcmf_debugfs_get_devdir(drvr);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
3221
if (IS_ERR_OR_NULL(dentry))
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
3229
debugfs_create_u32("console_interval", 0644, dentry,
drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c
189
struct dentry *dentry = drvr->dbgfs_dir;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c
199
debugfs_create_file(fn, 0444, dentry, entry, &brcms_debugfs_def_ops);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c
35
static struct dentry *root_folder;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h
177
struct dentry *dbgfs_dir;
drivers/net/wireless/intel/iwlegacy/3945-rs.c
838
il3945_add_debugfs(void *il, void *il_sta, struct dentry *dir)
drivers/net/wireless/intel/iwlegacy/4965-rs.c
2743
il4965_rs_add_debugfs(void *il, void *il_sta, struct dentry *dir)
drivers/net/wireless/intel/iwlegacy/common.h
1417
struct dentry *debugfs_dir;
drivers/net/wireless/intel/iwlegacy/debug.c
1318
struct dentry *phyd = il->hw->wiphy->debugfsdir;
drivers/net/wireless/intel/iwlegacy/debug.c
1319
struct dentry *dir_drv, *dir_data, *dir_rf, *dir_debug;
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
410
void iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir);
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
413
struct dentry *dbgfs_dir) { }
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
2313
void iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
2315
struct dentry *dir_data, *dir_rf, *dir_debug;
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
2374
struct dentry *mac80211_dir, *dev_dir;
drivers/net/wireless/intel/iwlwifi/dvm/dev.h
850
struct dentry *debugfs_dir;
drivers/net/wireless/intel/iwlwifi/dvm/main.c
1236
struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
3240
struct dentry *dir)
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c
444
struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/fw/debugfs.h
11
struct dentry *dbgfs_dir);
drivers/net/wireless/intel/iwlwifi/fw/debugfs.h
15
struct dentry *dbgfs_dir) { }
drivers/net/wireless/intel/iwlwifi/fw/init.c
21
struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/fw/runtime.h
234
struct dentry *dbgfs_dir);
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
1537
struct dentry *dbgfs_dir = NULL;
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
38
static struct dentry *iwl_dbgfs_root;
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
69
struct dentry *dbgfs_drv;
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
70
struct dentry *dbgfs_trans;
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
71
struct dentry *dbgfs_op_mode;
drivers/net/wireless/intel/iwlwifi/iwl-op-mode.h
157
struct dentry *dbgfs_dir);
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
890
struct dentry *dbgfs_dir;
drivers/net/wireless/intel/iwlwifi/mei/main.c
196
struct dentry *dbgfs_dir;
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
1109
struct dentry *dir)
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
533
iwl_mld_add_debugfs_files(struct iwl_mld *mld, struct dentry *debugfs_dir)
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
944
struct dentry *mld_vif_dbgfs =
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
994
struct dentry *dir)
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
996
struct dentry *mld_link_dir;
drivers/net/wireless/intel/iwlwifi/mld/iface.h
184
struct dentry *dbgfs_slink;
drivers/net/wireless/intel/iwlwifi/mld/mld.c
137
struct dentry *debugfs_dir)
drivers/net/wireless/intel/iwlwifi/mld/mld.c
392
const struct iwl_fw *fw, struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/mld/mld.c
66
struct ieee80211_hw *hw, struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/mld/mld.h
247
struct dentry *debugfs_dir;
drivers/net/wireless/intel/iwlwifi/mld/mld.h
362
iwl_mld_add_debugfs_files(struct iwl_mld *mld, struct dentry *debugfs_dir);
drivers/net/wireless/intel/iwlwifi/mld/mld.h
365
iwl_mld_add_debugfs_files(struct iwl_mld *mld, struct dentry *debugfs_dir)
drivers/net/wireless/intel/iwlwifi/mld/mld.h
527
struct ieee80211_hw *hw, struct dentry *dbgfs_dir);
drivers/net/wireless/intel/iwlwifi/mld/mld.h
576
struct dentry *dir);
drivers/net/wireless/intel/iwlwifi/mld/mld.h
580
struct dentry *dir);
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
801
struct dentry *dbgfs_dir = vif->debugfs_dir;
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
835
struct dentry *dbgfs_dir = vif->debugfs_dir;
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
879
struct dentry *mvm_dir)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
887
struct dentry *dir)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
893
struct dentry *mvm_dir;
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
2099
struct dentry *dir)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
2112
struct dentry *bcast_dir __maybe_unused;
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
1051
struct dentry *debugfs_dir;
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
2429
struct dentry *dir);
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
2433
struct dentry *dir);
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
468
struct dentry *dbgfs_dir;
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
469
struct dentry *dbgfs_slink;
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1198
const struct iwl_fw *fw, struct dentry *dbgfs_dir)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
4061
struct dentry *dir)
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
3239
struct dentry *dir = trans->dbgfs_dir;
drivers/net/wireless/marvell/libertas/debugfs.c
15
static struct dentry *lbs_dir;
drivers/net/wireless/marvell/libertas/dev.h
65
struct dentry *debugfs_dir;
drivers/net/wireless/marvell/libertas/dev.h
66
struct dentry *debugfs_debug;
drivers/net/wireless/marvell/libertas/dev.h
67
struct dentry *debugfs_files[6];
drivers/net/wireless/marvell/libertas/dev.h
68
struct dentry *events_dir;
drivers/net/wireless/marvell/libertas/dev.h
69
struct dentry *debugfs_events_files[6];
drivers/net/wireless/marvell/libertas/dev.h
70
struct dentry *regs_dir;
drivers/net/wireless/marvell/libertas/dev.h
71
struct dentry *debugfs_regs_files[6];
drivers/net/wireless/marvell/mwifiex/debugfs.c
14
static struct dentry *mwifiex_dfs_dir;
drivers/net/wireless/marvell/mwifiex/main.h
633
struct dentry *dfs_dev_dir;
drivers/net/wireless/mediatek/mt76/debugfs.c
103
struct dentry *
drivers/net/wireless/mediatek/mt76/debugfs.c
109
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt76.h
1319
struct dentry *mt76_register_debugfs_fops(struct mt76_phy *phy,
drivers/net/wireless/mediatek/mt76/mt76.h
1321
static inline struct dentry *mt76_register_debugfs(struct mt76_dev *dev)
drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c
98
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c
550
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c
134
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1296
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1481
struct ieee80211_sta *sta, struct dentry *dir)
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
606
static struct dentry *
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
607
create_buf_file_cb(const char *filename, struct dentry *parent, umode_t mode,
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
610
struct dentry *f;
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
623
remove_buf_file_cb(struct dentry *f)
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
304
struct dentry *debugfs_dir;
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
616
struct ieee80211_sta *sta, struct dentry *dir);
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
266
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt7925/debugfs.c
291
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
1051
struct dentry *dir)
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
387
static struct dentry *
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
388
create_buf_file_cb(const char *filename, struct dentry *parent, umode_t mode,
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
391
struct dentry *f;
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
404
remove_buf_file_cb(struct dentry *f)
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
856
struct dentry *dir;
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
969
struct ieee80211_sta *sta, struct dentry *dir)
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h
482
struct dentry *debugfs_dir;
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h
866
struct ieee80211_sta *sta, struct dentry *dir);
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h
869
struct dentry *dir);
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h
876
int mt7996_mtk_init_debugfs(struct mt7996_phy *phy, struct dentry *dir);
drivers/net/wireless/mediatek/mt7601u/debugfs.c
127
struct dentry *dir;
drivers/net/wireless/quantenna/qtnfmac/bus.h
68
struct dentry *dbg_dir;
drivers/net/wireless/quantenna/qtnfmac/core.c
28
static struct dentry *qtnf_debugfs_dir;
drivers/net/wireless/quantenna/qtnfmac/core.c
907
struct dentry *qtnf_get_debugfs_dir(void)
drivers/net/wireless/quantenna/qtnfmac/core.h
144
struct dentry *qtnf_get_debugfs_dir(void);
drivers/net/wireless/quantenna/qtnfmac/debug.c
8
struct dentry *parent = qtnf_get_debugfs_dir();
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c
639
struct dentry *queue_folder;
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c
640
struct dentry *register_folder;
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c
67
struct dentry *driver_folder;
drivers/net/wireless/realtek/rtl8xxxu/core.c
1917
struct dentry *phydir;
drivers/net/wireless/realtek/rtlwifi/debug.c
439
struct dentry *parent;
drivers/net/wireless/realtek/rtlwifi/debug.c
53
static struct dentry *debugfs_topdir;
drivers/net/wireless/realtek/rtlwifi/wifi.h
2423
struct dentry *debugfs_dir;
drivers/net/wireless/realtek/rtw88/debug.c
1263
void rtw_debugfs_add_basic(struct rtw_dev *rtwdev, struct dentry *debugfs_topdir)
drivers/net/wireless/realtek/rtw88/debug.c
1285
void rtw_debugfs_add_sec0(struct rtw_dev *rtwdev, struct dentry *debugfs_topdir)
drivers/net/wireless/realtek/rtw88/debug.c
1306
void rtw_debugfs_add_sec1(struct rtw_dev *rtwdev, struct dentry *debugfs_topdir)
drivers/net/wireless/realtek/rtw88/debug.c
1334
struct dentry *debugfs_topdir;
drivers/net/wireless/realtek/rtw89/debug.c
4924
void rtw89_debugfs_add_sec0(struct rtw89_dev *rtwdev, struct dentry *debugfs_topdir)
drivers/net/wireless/realtek/rtw89/debug.c
4938
void rtw89_debugfs_add_sec1(struct rtw89_dev *rtwdev, struct dentry *debugfs_topdir)
drivers/net/wireless/realtek/rtw89/debug.c
4957
struct dentry *debugfs_topdir;
drivers/net/wireless/rsi/rsi_debugfs.h
41
struct dentry *subdir;
drivers/net/wireless/rsi/rsi_debugfs.h
42
struct dentry *rsi_files[MAX_DEBUGFS_ENTRIES];
drivers/net/wireless/silabs/wfx/debug.c
321
struct dentry *d;
drivers/net/wireless/st/cw1200/debug.h
13
struct dentry *debugfs_phy;
drivers/net/wireless/ti/wl1251/wl1251.h
146
struct dentry *rootdir;
drivers/net/wireless/ti/wl1251/wl1251.h
147
struct dentry *fw_statistics;
drivers/net/wireless/ti/wl1251/wl1251.h
149
struct dentry *tx_internal_desc_overflow;
drivers/net/wireless/ti/wl1251/wl1251.h
151
struct dentry *rx_out_of_mem;
drivers/net/wireless/ti/wl1251/wl1251.h
152
struct dentry *rx_hdr_overflow;
drivers/net/wireless/ti/wl1251/wl1251.h
153
struct dentry *rx_hw_stuck;
drivers/net/wireless/ti/wl1251/wl1251.h
154
struct dentry *rx_dropped;
drivers/net/wireless/ti/wl1251/wl1251.h
155
struct dentry *rx_fcs_err;
drivers/net/wireless/ti/wl1251/wl1251.h
156
struct dentry *rx_xfr_hint_trig;
drivers/net/wireless/ti/wl1251/wl1251.h
157
struct dentry *rx_path_reset;
drivers/net/wireless/ti/wl1251/wl1251.h
158
struct dentry *rx_reset_counter;
drivers/net/wireless/ti/wl1251/wl1251.h
160
struct dentry *dma_rx_requested;
drivers/net/wireless/ti/wl1251/wl1251.h
161
struct dentry *dma_rx_errors;
drivers/net/wireless/ti/wl1251/wl1251.h
162
struct dentry *dma_tx_requested;
drivers/net/wireless/ti/wl1251/wl1251.h
163
struct dentry *dma_tx_errors;
drivers/net/wireless/ti/wl1251/wl1251.h
165
struct dentry *isr_cmd_cmplt;
drivers/net/wireless/ti/wl1251/wl1251.h
166
struct dentry *isr_fiqs;
drivers/net/wireless/ti/wl1251/wl1251.h
167
struct dentry *isr_rx_headers;
drivers/net/wireless/ti/wl1251/wl1251.h
168
struct dentry *isr_rx_mem_overflow;
drivers/net/wireless/ti/wl1251/wl1251.h
169
struct dentry *isr_rx_rdys;
drivers/net/wireless/ti/wl1251/wl1251.h
170
struct dentry *isr_irqs;
drivers/net/wireless/ti/wl1251/wl1251.h
171
struct dentry *isr_tx_procs;
drivers/net/wireless/ti/wl1251/wl1251.h
172
struct dentry *isr_decrypt_done;
drivers/net/wireless/ti/wl1251/wl1251.h
173
struct dentry *isr_dma0_done;
drivers/net/wireless/ti/wl1251/wl1251.h
174
struct dentry *isr_dma1_done;
drivers/net/wireless/ti/wl1251/wl1251.h
175
struct dentry *isr_tx_exch_complete;
drivers/net/wireless/ti/wl1251/wl1251.h
176
struct dentry *isr_commands;
drivers/net/wireless/ti/wl1251/wl1251.h
177
struct dentry *isr_rx_procs;
drivers/net/wireless/ti/wl1251/wl1251.h
178
struct dentry *isr_hw_pm_mode_changes;
drivers/net/wireless/ti/wl1251/wl1251.h
179
struct dentry *isr_host_acknowledges;
drivers/net/wireless/ti/wl1251/wl1251.h
180
struct dentry *isr_pci_pm;
drivers/net/wireless/ti/wl1251/wl1251.h
181
struct dentry *isr_wakeups;
drivers/net/wireless/ti/wl1251/wl1251.h
182
struct dentry *isr_low_rssi;
drivers/net/wireless/ti/wl1251/wl1251.h
184
struct dentry *wep_addr_key_count;
drivers/net/wireless/ti/wl1251/wl1251.h
185
struct dentry *wep_default_key_count;
drivers/net/wireless/ti/wl1251/wl1251.h
187
struct dentry *wep_key_not_found;
drivers/net/wireless/ti/wl1251/wl1251.h
188
struct dentry *wep_decrypt_fail;
drivers/net/wireless/ti/wl1251/wl1251.h
189
struct dentry *wep_packets;
drivers/net/wireless/ti/wl1251/wl1251.h
190
struct dentry *wep_interrupt;
drivers/net/wireless/ti/wl1251/wl1251.h
192
struct dentry *pwr_ps_enter;
drivers/net/wireless/ti/wl1251/wl1251.h
193
struct dentry *pwr_elp_enter;
drivers/net/wireless/ti/wl1251/wl1251.h
194
struct dentry *pwr_missing_bcns;
drivers/net/wireless/ti/wl1251/wl1251.h
195
struct dentry *pwr_wake_on_host;
drivers/net/wireless/ti/wl1251/wl1251.h
196
struct dentry *pwr_wake_on_timer_exp;
drivers/net/wireless/ti/wl1251/wl1251.h
197
struct dentry *pwr_tx_with_ps;
drivers/net/wireless/ti/wl1251/wl1251.h
198
struct dentry *pwr_tx_without_ps;
drivers/net/wireless/ti/wl1251/wl1251.h
199
struct dentry *pwr_rcvd_beacons;
drivers/net/wireless/ti/wl1251/wl1251.h
200
struct dentry *pwr_power_save_off;
drivers/net/wireless/ti/wl1251/wl1251.h
201
struct dentry *pwr_enable_ps;
drivers/net/wireless/ti/wl1251/wl1251.h
202
struct dentry *pwr_disable_ps;
drivers/net/wireless/ti/wl1251/wl1251.h
203
struct dentry *pwr_fix_tsf_ps;
drivers/net/wireless/ti/wl1251/wl1251.h
205
struct dentry *pwr_rcvd_awake_beacons;
drivers/net/wireless/ti/wl1251/wl1251.h
207
struct dentry *mic_rx_pkts;
drivers/net/wireless/ti/wl1251/wl1251.h
208
struct dentry *mic_calc_failure;
drivers/net/wireless/ti/wl1251/wl1251.h
210
struct dentry *aes_encrypt_fail;
drivers/net/wireless/ti/wl1251/wl1251.h
211
struct dentry *aes_decrypt_fail;
drivers/net/wireless/ti/wl1251/wl1251.h
212
struct dentry *aes_encrypt_packets;
drivers/net/wireless/ti/wl1251/wl1251.h
213
struct dentry *aes_decrypt_packets;
drivers/net/wireless/ti/wl1251/wl1251.h
214
struct dentry *aes_encrypt_interrupt;
drivers/net/wireless/ti/wl1251/wl1251.h
215
struct dentry *aes_decrypt_interrupt;
drivers/net/wireless/ti/wl1251/wl1251.h
217
struct dentry *event_heart_beat;
drivers/net/wireless/ti/wl1251/wl1251.h
218
struct dentry *event_calibration;
drivers/net/wireless/ti/wl1251/wl1251.h
219
struct dentry *event_rx_mismatch;
drivers/net/wireless/ti/wl1251/wl1251.h
220
struct dentry *event_rx_mem_empty;
drivers/net/wireless/ti/wl1251/wl1251.h
221
struct dentry *event_rx_pool;
drivers/net/wireless/ti/wl1251/wl1251.h
222
struct dentry *event_oom_late;
drivers/net/wireless/ti/wl1251/wl1251.h
223
struct dentry *event_phy_transmit_error;
drivers/net/wireless/ti/wl1251/wl1251.h
224
struct dentry *event_tx_stuck;
drivers/net/wireless/ti/wl1251/wl1251.h
226
struct dentry *ps_pspoll_timeouts;
drivers/net/wireless/ti/wl1251/wl1251.h
227
struct dentry *ps_upsd_timeouts;
drivers/net/wireless/ti/wl1251/wl1251.h
228
struct dentry *ps_upsd_max_sptime;
drivers/net/wireless/ti/wl1251/wl1251.h
229
struct dentry *ps_upsd_max_apturn;
drivers/net/wireless/ti/wl1251/wl1251.h
230
struct dentry *ps_pspoll_max_apturn;
drivers/net/wireless/ti/wl1251/wl1251.h
231
struct dentry *ps_pspoll_utilization;
drivers/net/wireless/ti/wl1251/wl1251.h
232
struct dentry *ps_upsd_utilization;
drivers/net/wireless/ti/wl1251/wl1251.h
234
struct dentry *rxpipe_rx_prep_beacon_drop;
drivers/net/wireless/ti/wl1251/wl1251.h
235
struct dentry *rxpipe_descr_host_int_trig_rx_data;
drivers/net/wireless/ti/wl1251/wl1251.h
236
struct dentry *rxpipe_beacon_buffer_thres_host_int_trig_rx_data;
drivers/net/wireless/ti/wl1251/wl1251.h
237
struct dentry *rxpipe_missed_beacon_host_int_trig_rx_data;
drivers/net/wireless/ti/wl1251/wl1251.h
238
struct dentry *rxpipe_tx_xfr_host_int_trig_rx_data;
drivers/net/wireless/ti/wl1251/wl1251.h
240
struct dentry *tx_queue_len;
drivers/net/wireless/ti/wl1251/wl1251.h
241
struct dentry *tx_queue_status;
drivers/net/wireless/ti/wl1251/wl1251.h
243
struct dentry *retry_count;
drivers/net/wireless/ti/wl1251/wl1251.h
244
struct dentry *excessive_retries;
drivers/net/wireless/ti/wl12xx/debugfs.c
112
struct dentry *rootdir)
drivers/net/wireless/ti/wl12xx/debugfs.c
114
struct dentry *stats, *moddir;
drivers/net/wireless/ti/wl12xx/debugfs.h
12
struct dentry *rootdir);
drivers/net/wireless/ti/wl18xx/debugfs.c
400
struct dentry *rootdir)
drivers/net/wireless/ti/wl18xx/debugfs.c
402
struct dentry *stats, *moddir;
drivers/net/wireless/ti/wl18xx/debugfs.h
12
struct dentry *rootdir);
drivers/net/wireless/ti/wlcore/debugfs.c
1255
struct dentry *rootdir)
drivers/net/wireless/ti/wlcore/debugfs.c
1257
struct dentry *streaming;
drivers/net/wireless/ti/wlcore/debugfs.c
1302
struct dentry *rootdir;
drivers/net/wireless/ti/wlcore/hw_ops.h
152
wlcore_debugfs_init(struct wl1271 *wl, struct dentry *rootdir)
drivers/net/wireless/ti/wlcore/wlcore.h
79
int (*debugfs_init)(struct wl1271 *wl, struct dentry *rootdir);
drivers/net/wireless/virtual/mac80211_hwsim.c
2201
struct dentry *dir)
drivers/net/wireless/virtual/mac80211_hwsim.c
717
struct dentry *debugfs;
drivers/net/wwan/iosm/iosm_ipc_imem.h
375
struct dentry *debugfs_wwan_dir;
drivers/net/wwan/iosm/iosm_ipc_imem.h
376
struct dentry *debugfs_dir;
drivers/net/wwan/iosm/iosm_ipc_trace.c
34
static struct dentry *
drivers/net/wwan/iosm/iosm_ipc_trace.c
36
struct dentry *parent,
drivers/net/wwan/iosm/iosm_ipc_trace.c
47
static int ipc_trace_remove_buf_file_handler(struct dentry *dentry)
drivers/net/wwan/iosm/iosm_ipc_trace.c
49
debugfs_remove(dentry);
drivers/net/wwan/iosm/iosm_ipc_trace.h
39
struct dentry *ctrl_file;
drivers/net/wwan/t7xx/t7xx_pci.h
94
struct dentry *debugfs_dir;
drivers/net/wwan/t7xx/t7xx_port_trace.c
18
static struct dentry *t7xx_trace_create_buf_file_handler(const char *filename,
drivers/net/wwan/t7xx/t7xx_port_trace.c
19
struct dentry *parent,
drivers/net/wwan/t7xx/t7xx_port_trace.c
29
static int t7xx_trace_remove_buf_file_handler(struct dentry *dentry)
drivers/net/wwan/t7xx/t7xx_port_trace.c
31
debugfs_remove(dentry);
drivers/net/wwan/t7xx/t7xx_port_trace.c
54
struct dentry *debugfs_dir = port->t7xx_dev->debugfs_dir;
drivers/net/wwan/t7xx/t7xx_port_trace.c
80
struct dentry *debugfs_wwan_dir;
drivers/net/wwan/t7xx/t7xx_port_trace.c
81
struct dentry *debugfs_dir;
drivers/net/wwan/wwan_core.c
175
struct dentry *wwan_get_debugfs_dir(struct device *parent)
drivers/net/wwan/wwan_core.c
199
static struct wwan_device *wwan_dev_get_by_debugfs(struct dentry *dir)
drivers/net/wwan/wwan_core.c
210
void wwan_put_debugfs_dir(struct dentry *dir)
drivers/net/wwan/wwan_core.c
38
static struct dentry *wwan_debugfs_dir;
drivers/net/wwan/wwan_core.c
65
struct dentry *debugfs_dir;
drivers/net/wwan/wwan_hwsim.c
34
static struct dentry *wwan_hwsim_debugfs_topdir;
drivers/net/wwan/wwan_hwsim.c
35
static struct dentry *wwan_hwsim_debugfs_devcreate;
drivers/net/wwan/wwan_hwsim.c
47
struct dentry *debugfs_topdir;
drivers/net/wwan/wwan_hwsim.c
48
struct dentry *debugfs_portcreate;
drivers/net/wwan/wwan_hwsim.c
60
struct dentry *debugfs_topdir;
drivers/net/xen-netback/common.h
322
struct dentry *xenvif_dbg_root;
drivers/net/xen-netback/common.h
413
extern struct dentry *xen_netback_dbg_root;
drivers/net/xen-netback/xenbus.c
24
struct dentry *xen_netback_dbg_root = NULL;
drivers/nfc/nfcsim.c
334
static struct dentry *nfcsim_debugfs_root;
drivers/nfc/nfcsim.c
348
struct dentry *dev_dir;
drivers/ntb/hw/amd/ntb_hw_amd.c
74
static struct dentry *debugfs_dir;
drivers/ntb/hw/amd/ntb_hw_amd.h
213
struct dentry *debugfs_dir;
drivers/ntb/hw/amd/ntb_hw_amd.h
214
struct dentry *debugfs_info;
drivers/ntb/hw/idt/ntb_hw_idt.c
274
static struct dentry *dbgfs_topdir;
drivers/ntb/hw/idt/ntb_hw_idt.h
1151
struct dentry *dbgfs_info;
drivers/ntb/hw/intel/ntb_hw_gen1.c
86
static struct dentry *debugfs_dir;
drivers/ntb/hw/intel/ntb_hw_intel.h
184
struct dentry *debugfs_dir;
drivers/ntb/hw/intel/ntb_hw_intel.h
185
struct dentry *debugfs_info;
drivers/ntb/ntb_transport.c
110
static struct dentry *nt_debugfs_dir;
drivers/ntb/ntb_transport.c
188
struct dentry *debugfs_dir;
drivers/ntb/ntb_transport.c
189
struct dentry *debugfs_stats;
drivers/ntb/ntb_transport.c
255
struct dentry *debugfs_node_dir;
drivers/ntb/test/ntb_msi_test.c
21
struct dentry *dbgfs_dir;
drivers/ntb/test/ntb_msi_test.c
275
struct dentry *peer_dir;
drivers/ntb/test/ntb_msi_test.c
41
static struct dentry *ntb_msit_dbgfs_topdir;
drivers/ntb/test/ntb_perf.c
208
struct dentry *dbgfs_dir;
drivers/ntb/test/ntb_perf.c
238
static struct dentry *perf_dbgfs_topdir;
drivers/ntb/test/ntb_pingpong.c
109
struct dentry *dbgfs_dir;
drivers/ntb/test/ntb_pingpong.c
114
static struct dentry *pp_dbgfs_topdir;
drivers/ntb/test/ntb_tool.c
218
struct dentry *dbgfs_file;
drivers/ntb/test/ntb_tool.c
253
struct dentry *dbgfs_dir;
drivers/ntb/test/ntb_tool.c
269
struct dentry *dbgfs_dir;
drivers/ntb/test/ntb_tool.c
282
static struct dentry *tool_dbgfs_topdir;
drivers/nvdimm/btt.c
216
static struct dentry *debugfs_root;
drivers/nvdimm/btt.c
218
static void arena_debugfs_init(struct arena_info *a, struct dentry *parent,
drivers/nvdimm/btt.c
222
struct dentry *d;
drivers/nvdimm/btt.h
192
struct dentry *debugfs_dir;
drivers/nvdimm/btt.h
222
struct dentry *debugfs_dir;
drivers/nvme/host/fault_inject.c
22
struct dentry *dir, *parent;
drivers/nvme/host/nvme.h
318
struct dentry *parent;
drivers/nvme/target/debugfs.c
159
struct dentry *parent = ctrl->subsys->debugfs_dir;
drivers/nvme/target/debugfs.c
16
static struct dentry *nvmet_debugfs;
drivers/nvme/target/debugfs.c
215
struct dentry *parent;
drivers/nvme/target/nvmet.h
293
struct dentry *debugfs_dir;
drivers/nvme/target/nvmet.h
332
struct dentry *debugfs_dir;
drivers/opp/debugfs.c
101
struct dentry *d;
drivers/opp/debugfs.c
131
struct dentry *pdentry = opp_table->dentry;
drivers/opp/debugfs.c
132
struct dentry *d;
drivers/opp/debugfs.c
168
opp->dentry = d;
drivers/opp/debugfs.c
175
struct dentry *d;
drivers/opp/debugfs.c
182
opp_dev->dentry = d;
drivers/opp/debugfs.c
183
opp_table->dentry = d;
drivers/opp/debugfs.c
194
opp_dev->dentry = debugfs_create_symlink(name, rootdir,
drivers/opp/debugfs.c
20
static struct dentry *rootdir;
drivers/opp/debugfs.c
209
if (opp_table->dentry)
drivers/opp/debugfs.c
233
debugfs_remove_recursive(new_dev->dentry);
drivers/opp/debugfs.c
237
err = debugfs_change_name(opp_dev->dentry, "%s", opp_table->dentry_name);
drivers/opp/debugfs.c
244
new_dev->dentry = opp_table->dentry = opp_dev->dentry;
drivers/opp/debugfs.c
257
if (opp_dev->dentry == opp_table->dentry) {
drivers/opp/debugfs.c
263
opp_table->dentry = NULL;
drivers/opp/debugfs.c
266
debugfs_remove_recursive(opp_dev->dentry);
drivers/opp/debugfs.c
269
opp_dev->dentry = NULL;
drivers/opp/debugfs.c
33
debugfs_remove_recursive(opp->dentry);
drivers/opp/debugfs.c
58
struct dentry *pdentry)
drivers/opp/debugfs.c
60
struct dentry *d;
drivers/opp/debugfs.c
81
struct dentry *pdentry)
drivers/opp/debugfs.c
99
struct dentry *pdentry)
drivers/opp/opp.h
131
struct dentry *dentry;
drivers/opp/opp.h
150
struct dentry *dentry;
drivers/opp/opp.h
247
struct dentry *dentry;
drivers/pci/controller/dwc/pcie-designware-debugfs.c
510
static int dwc_pcie_rasdes_debugfs_init(struct dw_pcie *pci, struct dentry *dir)
drivers/pci/controller/dwc/pcie-designware-debugfs.c
512
struct dentry *rasdes_debug, *rasdes_err_inj;
drivers/pci/controller/dwc/pcie-designware-debugfs.c
513
struct dentry *rasdes_event_counter, *rasdes_events;
drivers/pci/controller/dwc/pcie-designware-debugfs.c
589
static void dwc_pcie_ltssm_debugfs_init(struct dw_pcie *pci, struct dentry *dir)
drivers/pci/controller/dwc/pcie-designware-debugfs.c
855
struct dentry *dir;
drivers/pci/controller/dwc/pcie-designware.h
516
struct dentry *debug_dir;
drivers/pci/controller/dwc/pcie-qcom-ep.c
214
struct dentry *debugfs;
drivers/pci/controller/dwc/pcie-qcom.c
283
struct dentry *debugfs;
drivers/pci/controller/dwc/pcie-tegra194.c
276
struct dentry *debugfs;
drivers/pci/controller/pci-tegra.c
355
struct dentry *debugfs;
drivers/pci/hotplug/cpqphp.h
309
struct dentry *dentry; /* debugfs dentry */
drivers/pci/hotplug/cpqphp_sysfs.c
183
static struct dentry *root;
drivers/pci/hotplug/cpqphp_sysfs.c
198
ctrl->dentry = debugfs_create_file(dev_name(&ctrl->pci_dev->dev),
drivers/pci/hotplug/cpqphp_sysfs.c
204
debugfs_remove(ctrl->dentry);
drivers/pci/hotplug/cpqphp_sysfs.c
205
ctrl->dentry = NULL;
drivers/perf/arm-cmn.c
364
struct dentry *debug;
drivers/perf/arm-cmn.c
458
static struct dentry *arm_cmn_debugfs;
drivers/phy/phy-core.c
29
static struct dentry *phy_debugfs_root;
drivers/phy/realtek/phy-rtk-usb2.c
122
struct dentry *debug_dir;
drivers/phy/realtek/phy-rtk-usb2.c
711
static struct dentry *create_phy_debug_root(void)
drivers/phy/realtek/phy-rtk-usb2.c
713
struct dentry *phy_debug_root;
drivers/phy/realtek/phy-rtk-usb2.c
848
struct dentry *phy_debug_root = NULL;
drivers/phy/realtek/phy-rtk-usb3.c
345
static struct dentry *create_phy_debug_root(void)
drivers/phy/realtek/phy-rtk-usb3.c
347
struct dentry *phy_debug_root;
drivers/phy/realtek/phy-rtk-usb3.c
411
struct dentry *phy_debug_root = NULL;
drivers/phy/realtek/phy-rtk-usb3.c
92
struct dentry *debug_dir;
drivers/pinctrl/core.c
1970
static struct dentry *debugfs_root;
drivers/pinctrl/core.c
1974
struct dentry *device_root;
drivers/pinctrl/core.h
19
struct dentry;
drivers/pinctrl/core.h
73
struct dentry *device_root;
drivers/pinctrl/pinconf.c
372
void pinconf_init_device_debugfs(struct dentry *devroot,
drivers/pinctrl/pinconf.h
15
struct dentry;
drivers/pinctrl/pinconf.h
84
void pinconf_init_device_debugfs(struct dentry *devroot,
drivers/pinctrl/pinconf.h
99
static inline void pinconf_init_device_debugfs(struct dentry *devroot,
drivers/pinctrl/pinmux.c
791
void pinmux_init_device_debugfs(struct dentry *devroot,
drivers/pinctrl/pinmux.h
110
void pinmux_init_device_debugfs(struct dentry *devroot,
drivers/pinctrl/pinmux.h
125
static inline void pinmux_init_device_debugfs(struct dentry *devroot,
drivers/pinctrl/pinmux.h
15
struct dentry;
drivers/platform/chrome/cros_ec_debugfs.c
51
struct dentry *dir;
drivers/platform/chrome/wilco_ec/debugfs.c
25
struct dentry *dir;
drivers/platform/olpc/olpc-ec.c
330
static struct dentry *olpc_ec_setup_debugfs(void)
drivers/platform/olpc/olpc-ec.c
332
struct dentry *dbgfs_dir;
drivers/platform/olpc/olpc-ec.c
342
static struct dentry *olpc_ec_setup_debugfs(void)
drivers/platform/olpc/olpc-ec.c
46
struct dentry *dbgfs_dir;
drivers/platform/raspberrypi/vchiq-interface/vchiq_debugfs.c
102
struct dentry *top;
drivers/platform/raspberrypi/vchiq-interface/vchiq_debugfs.c
113
vchiq_instance_get_debugfs_node(instance)->dentry = top;
drivers/platform/raspberrypi/vchiq-interface/vchiq_debugfs.c
121
debugfs_remove_recursive(node->dentry);
drivers/platform/raspberrypi/vchiq-interface/vchiq_debugfs.c
17
static struct dentry *vchiq_dbg_dir;
drivers/platform/raspberrypi/vchiq-interface/vchiq_debugfs.c
18
static struct dentry *vchiq_dbg_clients;
drivers/platform/x86/acer-wmi.c
365
struct dentry *root;
drivers/platform/x86/amd/hfi/hfi.c
77
struct dentry *dbgfs_dir;
drivers/platform/x86/amd/pmc/pmc.h
114
struct dentry *dbgfs_dir;
drivers/platform/x86/amd/pmf/pmf.h
405
struct dentry *dbgfs_dir;
drivers/platform/x86/amd/pmf/pmf.h
420
struct dentry *esbin;
drivers/platform/x86/amd/pmf/tee-if.c
412
static void amd_pmf_open_pb(struct amd_pmf_dev *dev, struct dentry *debugfs_root)
drivers/platform/x86/amd/pmf/tee-if.c
423
static void amd_pmf_open_pb(struct amd_pmf_dev *dev, struct dentry *debugfs_root) {}
drivers/platform/x86/apple-gmux.c
80
struct dentry *debug_dentry;
drivers/platform/x86/asus-wmi.c
218
struct dentry *root;
drivers/platform/x86/dell/alienware-wmi-wmax.c
1473
struct dentry *root = data;
drivers/platform/x86/dell/alienware-wmi-wmax.c
1481
struct dentry *root, *gpio_ctl;
drivers/platform/x86/dell/dell-laptop.c
605
static struct dentry *dell_laptop_dir;
drivers/platform/x86/dell/dell-wmi-ddv.c
1026
struct dentry *entry = data;
drivers/platform/x86/dell/dell-wmi-ddv.c
1033
struct dentry *entry;
drivers/platform/x86/huawei-wmi.c
57
struct dentry *root;
drivers/platform/x86/intel/bytcrc_pwrsrc.c
33
struct dentry *debug_dentry;
drivers/platform/x86/intel/plr_tpmi.c
261
struct dentry *dentry;
drivers/platform/x86/intel/plr_tpmi.c
273
dentry = tpmi_get_debugfs_dir(auxdev);
drivers/platform/x86/intel/plr_tpmi.c
274
if (!dentry)
drivers/platform/x86/intel/plr_tpmi.c
291
plr->dbgfs_dir = debugfs_create_dir("plr", dentry);
drivers/platform/x86/intel/plr_tpmi.c
318
dentry = debugfs_create_dir(name, plr->dbgfs_dir);
drivers/platform/x86/intel/plr_tpmi.c
319
debugfs_create_file("status", 0644, dentry, &plr->die_info[i],
drivers/platform/x86/intel/plr_tpmi.c
59
struct dentry *dbgfs_dir;
drivers/platform/x86/intel/pmc/core.c
1393
struct dentry *dir;
drivers/platform/x86/intel/pmc/core.h
460
struct dentry *dbgfs_dir;
drivers/platform/x86/intel/telemetry/debugfs.c
238
struct dentry *telemetry_dbg_dir;
drivers/platform/x86/intel/telemetry/debugfs.c
908
struct dentry *dir;
drivers/platform/x86/intel/vsec_tpmi.c
121
struct dentry *dbgfs_dir;
drivers/platform/x86/intel/vsec_tpmi.c
359
struct dentry *tpmi_get_debugfs_dir(struct auxiliary_device *auxdev)
drivers/platform/x86/intel/vsec_tpmi.c
547
struct dentry *dir;
drivers/platform/x86/intel_ips.c
288
struct dentry *debug_root;
drivers/platform/x86/lenovo/ideapad-laptop.c
183
struct dentry *debug;
drivers/platform/x86/lenovo/ideapad-laptop.c
567
struct dentry *dir;
drivers/platform/x86/msi-wmi-platform.c
290
struct dentry *dir = data;
drivers/platform/x86/msi-wmi-platform.c
295
static void msi_wmi_platform_debugfs_add(struct msi_wmi_platform_data *drvdata, struct dentry *dir,
drivers/platform/x86/msi-wmi-platform.c
299
struct dentry *entry;
drivers/platform/x86/msi-wmi-platform.c
321
struct dentry *dir;
drivers/platform/x86/pmc_atom.c
336
struct dentry *dir;
drivers/platform/x86/pmc_atom.c
46
struct dentry *dbgfs_dir;
drivers/platform/x86/samsung-laptop.c
1373
struct dentry *root;
drivers/platform/x86/samsung-laptop.c
311
struct dentry *root;
drivers/pmdomain/core.c
285
static struct dentry *genpd_debugfs_dir;
drivers/pmdomain/core.c
3901
struct dentry *d;
drivers/pmdomain/qcom/cpr.c
249
struct dentry *debugfs;
drivers/power/sequencing/core.c
1072
static struct dentry *pwrseq_debugfs_dentry;
drivers/power/supply/axp288_fuel_gauge.c
126
struct dentry *debug_file;
drivers/power/supply/da9030_battery.c
119
struct dentry *debug_file;
drivers/power/supply/da9030_battery.c
178
static struct dentry *da9030_bat_create_debugfs(struct da9030_charger *charger)
drivers/power/supply/da9030_battery.c
190
static inline struct dentry *da9030_bat_create_debugfs(struct da9030_charger *charger)
drivers/ptp/ptp_ocp.c
365
struct dentry *debug_root;
drivers/ptp/ptp_ocp.c
4359
static struct dentry *ptp_ocp_debugfs_root;
drivers/ptp/ptp_ocp.c
4364
struct dentry *d;
drivers/ptp/ptp_private.h
40
struct dentry *debugfs_instance;
drivers/ptp/ptp_private.h
70
struct dentry *debugfs_root;
drivers/ras/amd/fmpm.c
121
static struct dentry *fmpm_dfs_dir;
drivers/ras/amd/fmpm.c
122
static struct dentry *fmpm_dfs_entries;
drivers/ras/amd/fmpm.c
960
struct dentry *dfs = ras_get_debugfs_root();
drivers/ras/cec.c
483
struct dentry *d, *pfn, *decay, *count, *array, *dfs;
drivers/ras/debugfs.c
10
struct dentry *ras_get_debugfs_root(void)
drivers/ras/debugfs.c
48
struct dentry *fentry;
drivers/ras/debugfs.c
6
static struct dentry *ras_debugfs_dir;
drivers/ras/debugfs.h
10
static inline struct dentry *ras_get_debugfs_root(void) { return NULL; }
drivers/ras/debugfs.h
8
struct dentry *ras_get_debugfs_root(void);
drivers/regulator/core.c
49
static struct dentry *debugfs_root;
drivers/regulator/dbx500-prcmu.c
69
struct dentry *dir;
drivers/regulator/internal.h
58
struct dentry *debugfs;
drivers/remoteproc/remoteproc_debugfs.c
28
static struct dentry *rproc_dbg;
drivers/remoteproc/remoteproc_debugfs.c
381
void rproc_remove_trace_file(struct dentry *tfile)
drivers/remoteproc/remoteproc_debugfs.c
386
struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc,
drivers/remoteproc/remoteproc_internal.h
22
struct dentry *tfile;
drivers/remoteproc/remoteproc_internal.h
66
void rproc_remove_trace_file(struct dentry *tfile);
drivers/remoteproc/remoteproc_internal.h
67
struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc,
drivers/s390/block/dasd.c
1045
struct dentry *base_dentry)
drivers/s390/block/dasd.c
1048
profile->dentry = debugfs_create_file("statistics", 0600, base_dentry,
drivers/s390/block/dasd.c
1055
debugfs_remove(profile->dentry);
drivers/s390/block/dasd.c
1056
profile->dentry = NULL;
drivers/s390/block/dasd.c
1089
struct dentry *base_dentry)
drivers/s390/block/dasd.c
1129
static void dasd_hosts_init(struct dentry *base_dentry,
drivers/s390/block/dasd.c
45
static struct dentry *dasd_debugfs_root_entry;
drivers/s390/block/dasd.c
643
static struct dentry *dasd_debugfs_global_entry;
drivers/s390/block/dasd.c
68
static void dasd_profile_init(struct dasd_profile *, struct dentry *);
drivers/s390/block/dasd.c
70
static void dasd_hosts_init(struct dentry *, struct dasd_device *);
drivers/s390/block/dasd_int.h
536
struct dentry *dentry;
drivers/s390/block/dasd_int.h
607
struct dentry *debugfs_dentry;
drivers/s390/block/dasd_int.h
608
struct dentry *hosts_dentry;
drivers/s390/block/dasd_int.h
637
struct dentry *debugfs_dentry;
drivers/s390/char/zcore.c
48
static struct dentry *zcore_dir;
drivers/s390/char/zcore.c
49
static struct dentry *zcore_reipl_file;
drivers/s390/char/zcore.c
50
static struct dentry *zcore_hsa_file;
drivers/s390/cio/cio_debug.h
30
extern struct dentry *cio_debugfs_dir;
drivers/s390/cio/cio_debugfs.c
12
struct dentry *cio_debugfs_dir;
drivers/s390/cio/qdio.h
225
struct dentry *debugfs_dev;
drivers/s390/cio/qdio_debug.c
18
static struct dentry *debugfs_root;
drivers/s390/cio/qdio_debug.c
283
static void setup_debugfs_entry(struct dentry *parent, struct qdio_q *q)
drivers/s390/net/qeth_core.h
813
struct dentry *debugfs;
drivers/s390/net/qeth_core_main.c
64
static struct dentry *qeth_debugfs_root;
drivers/scsi/bfa/bfad_debugfs.c
436
static struct dentry *bfa_debugfs_root;
drivers/scsi/bfa/bfad_drv.h
134
struct dentry *port_debugfs_root;
drivers/scsi/bfa/bfad_drv.h
237
struct dentry *bfad_dentry_files[5];
drivers/scsi/csiostor/csio_hw.h
554
struct dentry *debugfs_root; /* Debug FS */
drivers/scsi/csiostor/csio_init.c
54
static struct dentry *csio_debugfs_root;
drivers/scsi/elx/efct/efct_driver.h
94
struct dentry *sess_debugfs_dir;
drivers/scsi/elx/efct/efct_xport.c
10
static struct dentry *efct_debugfs_root;
drivers/scsi/fnic/fnic.h
387
struct dentry *fnic_stats_debugfs_host;
drivers/scsi/fnic/fnic.h
388
struct dentry *fnic_stats_debugfs_file;
drivers/scsi/fnic/fnic.h
389
struct dentry *fnic_reset_debugfs_file;
drivers/scsi/fnic/fnic_debugfs.c
13
static struct dentry *fnic_trace_debugfs_root;
drivers/scsi/fnic/fnic_debugfs.c
14
static struct dentry *fnic_trace_debugfs_file;
drivers/scsi/fnic/fnic_debugfs.c
15
static struct dentry *fnic_trace_enable;
drivers/scsi/fnic/fnic_debugfs.c
16
static struct dentry *fnic_stats_debugfs_root;
drivers/scsi/fnic/fnic_debugfs.c
18
static struct dentry *fnic_fc_trace_debugfs_file;
drivers/scsi/fnic/fnic_debugfs.c
19
static struct dentry *fnic_fc_rdata_trace_debugfs_file;
drivers/scsi/fnic/fnic_debugfs.c
20
static struct dentry *fnic_fc_trace_enable;
drivers/scsi/fnic/fnic_debugfs.c
21
static struct dentry *fnic_fc_trace_clear;
drivers/scsi/hisi_sas/hisi_sas.h
495
struct dentry *debugfs_dir;
drivers/scsi/hisi_sas/hisi_sas.h
496
struct dentry *debugfs_dump_dentry;
drivers/scsi/hisi_sas/hisi_sas.h
497
struct dentry *debugfs_bist_dentry;
drivers/scsi/hisi_sas/hisi_sas.h
498
struct dentry *debugfs_fifo_dentry;
drivers/scsi/hisi_sas/hisi_sas.h
652
extern struct dentry *hisi_sas_debugfs_dir;
drivers/scsi/hisi_sas/hisi_sas_main.c
2668
struct dentry *hisi_sas_debugfs_dir;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3908
struct dentry *dump_dentry;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3909
struct dentry *dentry;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3929
dentry = debugfs_create_dir("port", dump_dentry);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3933
debugfs_create_file(name, 0400, dentry,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3939
dentry = debugfs_create_dir("cq", dump_dentry);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3943
debugfs_create_file(name, 0400, dentry,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3949
dentry = debugfs_create_dir("dq", dump_dentry);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3953
debugfs_create_file(name, 0400, dentry,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4574
struct dentry *port_dentry;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4806
struct dentry *dir = debugfs_create_dir("phy_down_cnt",
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4821
struct dentry *ports_dentry;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4860
struct dentry *port_dentry;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4861
struct dentry *ffe_dentry;
drivers/scsi/lpfc/lpfc.h
1336
struct dentry *hba_debugfs_root;
drivers/scsi/lpfc/lpfc.h
1359
struct dentry *idiag_root;
drivers/scsi/lpfc/lpfc.h
744
struct dentry *vport_debugfs_root;
drivers/scsi/lpfc/lpfc_debugfs.c
5761
static struct dentry *lpfc_debugfs_root = NULL;
drivers/scsi/megaraid/megaraid_sas.h
2459
struct dentry *debugfs_root;
drivers/scsi/megaraid/megaraid_sas.h
2460
struct dentry *raidmap_dump;
drivers/scsi/megaraid/megaraid_sas_base.c
219
extern struct dentry *megasas_debugfs_root;
drivers/scsi/megaraid/megaraid_sas_debugfs.c
45
struct dentry *megasas_debugfs_root;
drivers/scsi/mpt3sas/mpt3sas_base.h
1630
struct dentry *debugfs_root;
drivers/scsi/mpt3sas/mpt3sas_base.h
1631
struct dentry *ioc_dump;
drivers/scsi/mpt3sas/mpt3sas_debugfs.c
29
static struct dentry *mpt3sas_debugfs_root;
drivers/scsi/qedf/qedf_dbg.h
69
struct dentry *bdf_dentry;
drivers/scsi/qedf/qedf_debugfs.c
16
static struct dentry *qedf_dbg_root;
drivers/scsi/qedi/qedi_dbg.h
67
struct dentry *bdf_dentry;
drivers/scsi/qedi/qedi_debugfs.c
15
static struct dentry *qedi_dbg_root;
drivers/scsi/qla2xxx/qla_def.h
2702
struct dentry *dfs_rport_dir;
drivers/scsi/qla2xxx/qla_def.h
38
struct dentry *dfs_##_debugfs_file_name
drivers/scsi/qla2xxx/qla_def.h
40
struct dentry *qla_dfs_##_debugfs_file_name
drivers/scsi/qla2xxx/qla_def.h
4059
struct dentry *dfs_tgt_sess;
drivers/scsi/qla2xxx/qla_def.h
4060
struct dentry *dfs_tgt_port_database;
drivers/scsi/qla2xxx/qla_def.h
4061
struct dentry *dfs_naqp;
drivers/scsi/qla2xxx/qla_def.h
4653
struct dentry *dfs_dir;
drivers/scsi/qla2xxx/qla_def.h
4654
struct dentry *dfs_fce;
drivers/scsi/qla2xxx/qla_def.h
4655
struct dentry *dfs_tgt_counters;
drivers/scsi/qla2xxx/qla_def.h
4656
struct dentry *dfs_fw_resource_cnt;
drivers/scsi/qla2xxx/qla_def.h
5121
struct dentry *dfs_rport_root;
drivers/scsi/qla2xxx/qla_dfs.c
11
static struct dentry *qla2x00_dfs_root;
drivers/scsi/scsi_debug.c
1041
static struct dentry *sdebug_debugfs_root;
drivers/scsi/scsi_debug.c
422
struct dentry *debugfs_entry;
drivers/scsi/scsi_debug.c
429
struct dentry *debugfs_entry;
drivers/scsi/scsi_debug.c
6636
struct dentry *dentry;
drivers/scsi/scsi_debug.c
6676
dentry = debugfs_create_file("error", 0600, devip->debugfs_entry, sdp,
drivers/scsi/scsi_debug.c
6678
if (IS_ERR_OR_NULL(dentry))
drivers/scsi/snic/snic.h
321
struct dentry *stats_host; /* Per snic debugfs root */
drivers/scsi/snic/snic.h
322
struct dentry *stats_file; /* Per snic debugfs file */
drivers/scsi/snic/snic.h
323
struct dentry *reset_stats_file;/* Per snic reset stats file */
drivers/scsi/snic/snic.h
350
struct dentry *trc_root;
drivers/scsi/snic/snic.h
351
struct dentry *stats_root;
drivers/soc/amlogic/meson-clk-measure.c
909
struct dentry *root, *clks;
drivers/soc/mediatek/mtk-svs.c
858
struct dentry *svs_dir, *svsb_dir, *file_entry;
drivers/soc/qcom/qcom_aoss.c
519
if (qmp->debugfs_files[i] == file->f_path.dentry) {
drivers/soc/qcom/qcom_aoss.c
94
struct dentry *debugfs_root;
drivers/soc/qcom/qcom_aoss.c
95
struct dentry *debugfs_files[QMP_DEBUGFS_FILES];
drivers/soc/qcom/qcom_stats.c
229
static void qcom_create_ddr_stat_files(struct dentry *root, void __iomem *reg,
drivers/soc/qcom/qcom_stats.c
244
static void qcom_create_soc_sleep_stat_files(struct dentry *root, void __iomem *reg,
drivers/soc/qcom/qcom_stats.c
290
static void qcom_create_subsystem_stat_files(struct dentry *root,
drivers/soc/qcom/qcom_stats.c
306
struct dentry *root;
drivers/soc/qcom/qcom_stats.c
357
struct dentry *root = platform_get_drvdata(pdev);
drivers/soc/qcom/rpm_master_stats.c
142
struct dentry *root = platform_get_drvdata(pdev);
drivers/soc/qcom/rpm_master_stats.c
73
struct dentry *dent, *root;
drivers/soc/qcom/socinfo.c
231
struct dentry *dbg_root;
drivers/soc/qcom/socinfo.c
665
struct dentry *dentry;
drivers/soc/qcom/socinfo.c
837
dentry = debugfs_create_dir(socinfo_image_names[i],
drivers/soc/qcom/socinfo.c
839
debugfs_create_file("name", 0444, dentry, &versions[j],
drivers/soc/qcom/socinfo.c
841
debugfs_create_file("variant", 0444, dentry, &versions[j],
drivers/soc/qcom/socinfo.c
843
debugfs_create_file("oem", 0444, dentry, &versions[j],
drivers/soc/tegra/cbb/tegra-cbb.c
74
static struct dentry *root;
drivers/soc/ti/smartreflex.c
37
static struct dentry *sr_dbg_dir;
drivers/soc/ti/smartreflex.c
818
struct dentry *nvalue_dir;
drivers/soundwire/cadence_master.c
537
void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root)
drivers/soundwire/cadence_master.h
184
void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root);
drivers/soundwire/debugfs.c
16
static struct dentry *sdw_debugfs_root;
drivers/soundwire/debugfs.c
341
struct dentry *master;
drivers/soundwire/debugfs.c
342
struct dentry *d;
drivers/soundwire/intel.c
175
struct dentry *root = sdw->cdns.bus.debugfs;
drivers/soundwire/intel.h
82
struct dentry *debugfs;
drivers/soundwire/intel_ace2x_debugfs.c
130
struct dentry *root = sdw->cdns.bus.debugfs;
drivers/soundwire/qcom.c
197
struct dentry *debugfs;
drivers/spi/spi-bcm2835.c
136
struct dentry *debugfs_dir;
drivers/spi/spi-bcm2835.c
171
struct dentry *dir;
drivers/spi/spi-bcm2835aux.c
101
struct dentry *debugfs_dir;
drivers/spi/spi-bcm2835aux.c
109
struct dentry *dir;
drivers/spi/spi-dw.h
200
struct dentry *debugfs;
drivers/spi/spi-hisi-kunpeng.c
138
struct dentry *debugfs;
drivers/staging/axis-fifo/axis-fifo.c
85
struct dentry *debugfs_dir;
drivers/staging/greybus/camera.c
60
struct dentry *root;
drivers/staging/greybus/loopback.c
41
struct dentry *root;
drivers/staging/greybus/loopback.c
62
struct dentry *file;
drivers/thermal/broadcom/bcm2835_thermal.c
71
struct dentry *debugfsdir;
drivers/thermal/intel/int340x_thermal/platform_temperature_control.c
220
static struct dentry *ptc_debugfs;
drivers/thermal/intel/intel_powerclamp.c
52
static struct dentry *debug_dir;
drivers/thermal/intel/x86_pkg_temp_thermal.c
77
static struct dentry *debugfs;
drivers/thermal/mediatek/lvts_thermal.c
195
struct dentry *dom_dentry;
drivers/thermal/mediatek/lvts_thermal.c
262
struct dentry *dentry;
drivers/thermal/mediatek/lvts_thermal.c
275
dentry = debugfs_create_dir(name, lvts_td->dom_dentry);
drivers/thermal/mediatek/lvts_thermal.c
276
if (IS_ERR(dentry))
drivers/thermal/mediatek/lvts_thermal.c
287
debugfs_create_regset32("registers", 0400, dentry, regset);
drivers/thermal/qcom/tsens.h
588
struct dentry *debug_root;
drivers/thermal/qcom/tsens.h
589
struct dentry *debug;
drivers/thermal/tegra/soctherm.c
1457
struct dentry *root;
drivers/thermal/tegra/soctherm.c
347
struct dentry *debugfs_dir;
drivers/thermal/testing/command.c
89
struct dentry *d_testing;
drivers/thermal/testing/thermal_testing.h
3
extern struct dentry *d_testing;
drivers/thermal/testing/zone.c
43
struct dentry *d_tt_zone;
drivers/thermal/thermal_debugfs.c
170
struct dentry *d_top;
drivers/thermal/thermal_debugfs.c
18
static struct dentry *d_root;
drivers/thermal/thermal_debugfs.c
19
static struct dentry *d_cdev;
drivers/thermal/thermal_debugfs.c
191
static struct thermal_debugfs *thermal_debugfs_add_id(struct dentry *d, int id)
drivers/thermal/thermal_debugfs.c
20
static struct dentry *d_tz;
drivers/thunderbolt/debugfs.c
125
static struct dentry *tb_debugfs_root;
drivers/thunderbolt/debugfs.c
1647
u8 index, struct dentry *parent)
drivers/thunderbolt/debugfs.c
1650
struct dentry *dir;
drivers/thunderbolt/debugfs.c
1763
struct dentry *parent;
drivers/thunderbolt/debugfs.c
1778
struct dentry *parent;
drivers/thunderbolt/debugfs.c
1848
static void margining_retimer_init(struct tb_retimer *rt, struct dentry *debugfs_dir)
drivers/thunderbolt/debugfs.c
1866
struct dentry *debugfs_dir) { }
drivers/thunderbolt/debugfs.c
2410
struct dentry *debugfs_dir;
drivers/thunderbolt/debugfs.c
2421
struct dentry *debugfs_dir;
drivers/thunderbolt/debugfs.c
2525
struct dentry *debugfs_dir;
drivers/thunderbolt/dma_test.c
111
struct dentry *debugfs_dir;
drivers/thunderbolt/tb.h
202
struct dentry *debugfs_dir;
drivers/tty/pty.c
598
path.dentry = tty->link->driver_data;
drivers/tty/pty.c
691
return devpts_get_priv(file->f_path.dentry) ? : ERR_PTR(-EIO);
drivers/tty/pty.c
769
struct dentry *dentry;
drivers/tty/pty.c
814
dentry = devpts_pty_new(fsi, index, tty->link);
drivers/tty/pty.c
815
if (IS_ERR(dentry)) {
drivers/tty/pty.c
816
retval = PTR_ERR(dentry);
drivers/tty/pty.c
819
tty->link->driver_data = dentry;
drivers/tty/serial/8250/8250_bcm7271.c
228
struct dentry *debugfs_dir;
drivers/tty/serial/8250/8250_bcm7271.c
242
static struct dentry *brcmuart_debugfs_root;
drivers/ufs/core/ufs-debugfs.c
10
static struct dentry *ufs_debugfs_root;
drivers/ufs/core/ufs-debugfs.c
21
return d_inode(file->f_path.dentry->d_parent)->i_private;
drivers/ufs/core/ufs-debugfs.c
215
struct dentry *root;
drivers/ufs/host/ufshcd-pci.c
291
struct dentry *dir = debugfs_create_dir(dev_name(hba->dev), NULL);
drivers/ufs/host/ufshcd-pci.c
36
struct dentry *debugfs_root;
drivers/usb/chipidea/debug.c
291
struct dentry *dir;
drivers/usb/common/common.c
429
struct dentry *usb_debug_root;
drivers/usb/common/ulpi.c
274
static struct dentry *ulpi_root;
drivers/usb/common/ulpi.c
279
struct dentry *root;
drivers/usb/dwc2/core.h
1104
struct dentry *debug_root;
drivers/usb/dwc2/core.h
127
struct dentry *debugfs;
drivers/usb/dwc2/debugfs.c
294
struct dentry *root;
drivers/usb/dwc2/debugfs.c
778
struct dentry *root;
drivers/usb/dwc3/core.h
1417
struct dentry *debug_root;
drivers/usb/dwc3/debugfs.c
1004
struct dentry *root;
drivers/usb/dwc3/debugfs.c
985
struct dentry *dir;
drivers/usb/fotg210/fotg210-hcd.c
311
static struct dentry *fotg210_debug_root;
drivers/usb/fotg210/fotg210-hcd.c
842
struct dentry *root;
drivers/usb/gadget/function/f_fs.c
1887
struct dentry *dentry;
drivers/usb/gadget/function/f_fs.c
1893
dentry = simple_start_creating(sb->s_root, name);
drivers/usb/gadget/function/f_fs.c
1894
if (IS_ERR(dentry)) {
drivers/usb/gadget/function/f_fs.c
1896
return PTR_ERR(dentry);
drivers/usb/gadget/function/f_fs.c
1899
d_make_persistent(dentry, inode);
drivers/usb/gadget/function/f_fs.c
1901
simple_done_creating(dentry);
drivers/usb/gadget/function/f_fs.c
2359
static void clear_one(struct dentry *dentry)
drivers/usb/gadget/function/f_fs.c
2361
smp_store_release(&dentry->d_inode->i_private, NULL);
drivers/usb/gadget/function/f_fs.c
2368
struct dentry *root = sb->s_root;
drivers/usb/gadget/legacy/inode.c
1989
struct dentry *dentry;
drivers/usb/gadget/legacy/inode.c
1997
dentry = simple_start_creating(sb->s_root, name);
drivers/usb/gadget/legacy/inode.c
1998
if (IS_ERR(dentry)) {
drivers/usb/gadget/legacy/inode.c
2000
return PTR_ERR(dentry);
drivers/usb/gadget/legacy/inode.c
2003
d_make_persistent(dentry, inode);
drivers/usb/gadget/legacy/inode.c
2005
simple_done_creating(dentry);
drivers/usb/gadget/udc/atmel_usba_udc.c
205
struct dentry *ep_root;
drivers/usb/gadget/udc/atmel_usba_udc.c
225
struct dentry *root;
drivers/usb/gadget/udc/atmel_usba_udc.h
289
struct dentry *debugfs_dir;
drivers/usb/gadget/udc/atmel_usba_udc.h
357
struct dentry *debugfs_root;
drivers/usb/gadget/udc/bcm63xx_udc.c
2238
struct dentry *root;
drivers/usb/gadget/udc/gr_udc.c
209
struct dentry *root;
drivers/usb/gadget/udc/pxa27x_udc.c
208
struct dentry *root;
drivers/usb/gadget/udc/renesas_usb3.c
2648
usb3->dentry = debugfs_create_dir(dev_name(dev), usb_debug_root);
drivers/usb/gadget/udc/renesas_usb3.c
2650
debugfs_create_file("b_device", 0644, usb3->dentry, usb3,
drivers/usb/gadget/udc/renesas_usb3.c
2659
debugfs_remove_recursive(usb3->dentry);
drivers/usb/gadget/udc/renesas_usb3.c
346
struct dentry *dentry;
drivers/usb/host/ehci-dbg.c
331
static struct dentry *ehci_debug_root;
drivers/usb/host/ehci.h
249
struct dentry *debug_dir;
drivers/usb/host/fhci.h
264
struct dentry *dfs_root;
drivers/usb/host/ohci-dbg.c
389
static struct dentry *ohci_debug_root;
drivers/usb/host/ohci-dbg.c
765
struct dentry *root;
drivers/usb/host/ohci.h
435
struct dentry *debug_dir;
drivers/usb/host/uhci-debug.c
22
static struct dentry *uhci_debugfs_root;
drivers/usb/host/xhci-debugfs.c
116
size_t nregs, struct dentry *parent,
drivers/usb/host/xhci-debugfs.c
430
struct dentry *parent,
drivers/usb/host/xhci-debugfs.c
440
static struct dentry *xhci_debugfs_create_ring_dir(struct xhci_hcd *xhci,
drivers/usb/host/xhci-debugfs.c
443
struct dentry *parent)
drivers/usb/host/xhci-debugfs.c
445
struct dentry *dir;
drivers/usb/host/xhci-debugfs.c
455
struct dentry *parent,
drivers/usb/host/xhci-debugfs.c
655
struct dentry *parent)
drivers/usb/host/xhci-debugfs.c
659
struct dentry *dir;
drivers/usb/host/xhci-debugfs.c
765
struct dentry *parent)
drivers/usb/host/xhci-debugfs.c
84
static struct dentry *xhci_debugfs_root;
drivers/usb/host/xhci-debugfs.h
101
struct dentry *root;
drivers/usb/host/xhci-debugfs.h
93
struct dentry *root;
drivers/usb/host/xhci.h
1669
struct dentry *debugfs_root;
drivers/usb/host/xhci.h
1670
struct dentry *debugfs_slots;
drivers/usb/mon/mon_text.c
96
static struct dentry *mon_dir; /* Usually /sys/kernel/debug/usbmon */
drivers/usb/mon/usb_mon.h
25
struct dentry *dent_s; /* Debugging file */
drivers/usb/mon/usb_mon.h
26
struct dentry *dent_t; /* Text interface file */
drivers/usb/mon/usb_mon.h
27
struct dentry *dent_u; /* Second text interface file */
drivers/usb/mtu3/mtu3.h
269
struct dentry *dbgfs_root;
drivers/usb/mtu3/mtu3_debugfs.c
127
const char *name, struct dentry *parent)
drivers/usb/mtu3/mtu3_debugfs.c
146
struct dentry *parent)
drivers/usb/mtu3/mtu3_debugfs.c
329
struct dentry *dir_prb;
drivers/usb/mtu3/mtu3_debugfs.c
345
struct dentry *parent)
drivers/usb/mtu3/mtu3_debugfs.c
348
struct dentry *dir_ep;
drivers/usb/mtu3/mtu3_debugfs.c
365
struct dentry *dir_eps;
drivers/usb/mtu3/mtu3_debugfs.c
379
struct dentry *dir_regs;
drivers/usb/mtu3/mtu3_debugfs.c
499
struct dentry *root = ssusb->dbgfs_root;
drivers/usb/musb/musb_core.h
416
struct dentry *debugfs_root;
drivers/usb/musb/musb_debugfs.c
321
struct dentry *root;
drivers/usb/musb/musb_dsps.c
113
struct dentry *dbgfs_root;
drivers/usb/musb/musb_dsps.c
409
struct dentry *root;
drivers/usb/typec/mux/intel_pmc_mux.c
160
struct dentry *dentry;
drivers/usb/typec/mux/intel_pmc_mux.c
163
static struct dentry *pmc_mux_debugfs_root;
drivers/usb/typec/mux/intel_pmc_mux.c
720
struct dentry *debugfs_dir;
drivers/usb/typec/mux/intel_pmc_mux.c
725
debugfs_dir = debugfs_create_dir(name, port->pmc->dentry);
drivers/usb/typec/mux/intel_pmc_mux.c
765
pmc->dentry = debugfs_create_dir(dev_name(pmc->dev), pmc_mux_debugfs_root);
drivers/usb/typec/mux/intel_pmc_mux.c
798
debugfs_remove(pmc->dentry);
drivers/usb/typec/mux/intel_pmc_mux.c
816
debugfs_remove(pmc->dentry);
drivers/usb/typec/tcpm/fusb302.c
115
struct dentry *dentry;
drivers/usb/typec/tcpm/fusb302.c
218
chip->dentry = debugfs_create_dir(name, usb_debug_root);
drivers/usb/typec/tcpm/fusb302.c
219
debugfs_create_file("log", S_IFREG | 0444, chip->dentry, chip,
drivers/usb/typec/tcpm/fusb302.c
225
debugfs_remove(chip->dentry);
drivers/usb/typec/tcpm/tcpm.c
589
struct dentry *dentry;
drivers/usb/typec/tcpm/tcpm.c
880
port->dentry = debugfs_create_dir(name, usb_debug_root);
drivers/usb/typec/tcpm/tcpm.c
881
debugfs_create_file("log", S_IFREG | 0444, port->dentry, port,
drivers/usb/typec/tcpm/tcpm.c
896
debugfs_remove(port->dentry);
drivers/usb/typec/ucsi/debugfs.c
119
ucsi->debugfs->dentry = debugfs_create_dir(dev_name(ucsi->dev), ucsi_debugfs_root);
drivers/usb/typec/ucsi/debugfs.c
120
debugfs_create_file("command", 0200, ucsi->debugfs->dentry, ucsi, &ucsi_cmd_fops);
drivers/usb/typec/ucsi/debugfs.c
121
debugfs_create_file("response", 0400, ucsi->debugfs->dentry, ucsi, &ucsi_resp_fops);
drivers/usb/typec/ucsi/debugfs.c
122
debugfs_create_file("peak_current", 0400, ucsi->debugfs->dentry, ucsi, &ucsi_peak_curr_fops);
drivers/usb/typec/ucsi/debugfs.c
123
debugfs_create_file("avg_current", 0400, ucsi->debugfs->dentry, ucsi, &ucsi_avg_curr_fops);
drivers/usb/typec/ucsi/debugfs.c
124
debugfs_create_file("vbus_voltage", 0400, ucsi->debugfs->dentry, ucsi, &ucsi_vbus_volt_fops);
drivers/usb/typec/ucsi/debugfs.c
132
debugfs_remove_recursive(ucsi->debugfs->dentry);
drivers/usb/typec/ucsi/debugfs.c
21
static struct dentry *ucsi_debugfs_root;
drivers/usb/typec/ucsi/ucsi.h
22
struct dentry;
drivers/usb/typec/ucsi/ucsi.h
463
struct dentry *dentry;
drivers/vdpa/mlx5/net/debug.c
87
struct dentry *parent)
drivers/vdpa/mlx5/net/mlx5_vnet.h
19
struct dentry *tirn_dent;
drivers/vdpa/mlx5/net/mlx5_vnet.h
56
struct dentry *rx_dent;
drivers/vdpa/mlx5/net/mlx5_vnet.h
57
struct dentry *rx_table_dent;
drivers/vdpa/mlx5/net/mlx5_vnet.h
68
struct dentry *debugfs;
drivers/vdpa/mlx5/net/mlx5_vnet.h
82
struct dentry *dent;
drivers/vdpa/mlx5/net/mlx5_vnet.h
94
struct dentry *dent;
drivers/vdpa/pds/aux_drv.h
21
struct dentry *dentry;
drivers/vdpa/pds/debugfs.c
16
static struct dentry *dbfs_dir;
drivers/vdpa/pds/debugfs.c
172
vdpa_aux->dentry = debugfs_create_dir(pci_name(vdpa_aux->padev->vf_pdev), dbfs_dir);
drivers/vdpa/pds/debugfs.c
197
debugfs_create_file("identity", 0400, vdpa_aux->dentry,
drivers/vdpa/pds/debugfs.c
261
debugfs_create_file("config", 0400, vdpa_aux->dentry, vdpa_aux->pdsv, &config_fops);
drivers/vdpa/pds/debugfs.c
267
debugfs_create_file(name, 0400, vdpa_aux->dentry,
drivers/vdpa/pds/debugfs.c
274
debugfs_remove_recursive(vdpa_aux->dentry);
drivers/vdpa/pds/debugfs.c
275
vdpa_aux->dentry = NULL;
drivers/vfio/debugfs.c
12
static struct dentry *vfio_debugfs_root;
drivers/vfio/debugfs.c
86
struct dentry *vfio_dev_migration = NULL;
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
1665
struct dentry *vfio_dev_migration;
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
1666
struct dentry *vfio_hisi_acc;
drivers/video/fbdev/omap2/omapfb/dss/core.c
101
static struct dentry *dss_debugfs_dir;
drivers/video/fbdev/omap2/omapfb/dss/dss.h
321
struct dentry;
drivers/virt/coco/efi_secret/efi_secret.c
118
static int efi_secret_unlink(struct inode *dir, struct dentry *dentry)
drivers/virt/coco/efi_secret/efi_secret.c
120
struct inode *inode = d_inode(dentry);
drivers/virt/coco/efi_secret/efi_secret.c
131
return simple_unlink(inode, dentry);
drivers/virt/coco/efi_secret/efi_secret.c
195
struct dentry *dent, *dir;
drivers/virt/coco/efi_secret/efi_secret.c
33
struct dentry *secrets_dir;
drivers/virtio/virtio_debug.c
7
static struct dentry *virtio_debugfs_dir;
drivers/watchdog/bcm_kona_wdt.c
137
struct dentry *dir;
drivers/watchdog/bcm_kona_wdt.c
54
struct dentry *debugfs;
drivers/watchdog/dw_wdt.c
96
struct dentry *dbgfs_dir;
drivers/watchdog/ie6xx_wdt.c
71
struct dentry *debugfs;
drivers/watchdog/mei_wdt.c
104
struct dentry *dbgfs_dir;
drivers/watchdog/mei_wdt.c
543
struct dentry *dir;
fs/9p/acl.c
144
struct dentry *dentry, int type)
fs/9p/acl.c
148
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/acl.c
151
return v9fs_acl_get(dentry, posix_acl_xattr_name(type));
fs/9p/acl.c
152
return v9fs_get_cached_acl(d_inode(dentry), type);
fs/9p/acl.c
155
int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/9p/acl.c
163
struct inode *inode = d_inode(dentry);
fs/9p/acl.c
182
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/acl.c
184
retval = v9fs_xattr_set(dentry, acl_name, value, size, 0);
fs/9p/acl.c
223
v9fs_vfs_setattr_dotl(&nop_mnt_idmap, dentry, &iattr);
fs/9p/acl.c
234
retval = v9fs_xattr_set(dentry, acl_name, value, size, 0);
fs/9p/acl.c
48
static struct posix_acl *v9fs_acl_get(struct dentry *dentry, const char *name)
fs/9p/acl.c
53
fid = v9fs_fid_lookup(dentry);
fs/9p/acl.h
14
struct dentry *dentry, int type);
fs/9p/acl.h
15
int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/9p/fid.c
113
static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any)
fs/9p/fid.c
118
dentry, dentry, from_kuid(&init_user_ns, uid),
fs/9p/fid.c
122
if (dentry->d_fsdata) {
fs/9p/fid.c
123
struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata;
fs/9p/fid.c
125
spin_lock(&dentry->d_lock);
fs/9p/fid.c
133
spin_unlock(&dentry->d_lock);
fs/9p/fid.c
135
if (!ret && dentry->d_inode)
fs/9p/fid.c
136
ret = v9fs_fid_find_inode(dentry->d_inode, false, uid, any);
fs/9p/fid.c
147
struct dentry *dentry, const unsigned char ***names)
fs/9p/fid.c
151
struct dentry *ds;
fs/9p/fid.c
153
for (ds = dentry; !IS_ROOT(ds); ds = ds->d_parent)
fs/9p/fid.c
160
for (ds = dentry, i = (n-1); i >= 0; i--, ds = ds->d_parent)
fs/9p/fid.c
169
static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry,
fs/9p/fid.c
172
struct dentry *ds;
fs/9p/fid.c
178
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/fid.c
180
fid = v9fs_fid_find(dentry, uid, any);
fs/9p/fid.c
189
ds = dentry->d_parent;
fs/9p/fid.c
195
fid = p9_client_walk(old_fid, 1, &dentry->d_name.name, 1);
fs/9p/fid.c
202
root_fid = v9fs_fid_find(dentry->d_sb->s_root, uid, any);
fs/9p/fid.c
21
static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid)
fs/9p/fid.c
219
v9fs_fid_add(dentry->d_sb->s_root, &fid);
fs/9p/fid.c
222
if (dentry->d_sb->s_root == dentry)
fs/9p/fid.c
23
hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata);
fs/9p/fid.c
231
n = build_path_from_dentry(v9ses, dentry, &wnames);
fs/9p/fid.c
261
spin_lock(&dentry->d_lock);
fs/9p/fid.c
262
if (d_unhashed(dentry)) {
fs/9p/fid.c
263
spin_unlock(&dentry->d_lock);
fs/9p/fid.c
267
__add_fid(dentry, fid);
fs/9p/fid.c
269
spin_unlock(&dentry->d_lock);
fs/9p/fid.c
287
struct p9_fid *v9fs_fid_lookup(struct dentry *dentry)
fs/9p/fid.c
293
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/fid.c
313
return v9fs_fid_lookup_with_uid(dentry, uid, any);
fs/9p/fid.c
33
void v9fs_fid_add(struct dentry *dentry, struct p9_fid **pfid)
fs/9p/fid.c
37
spin_lock(&dentry->d_lock);
fs/9p/fid.c
38
__add_fid(dentry, fid);
fs/9p/fid.c
39
spin_unlock(&dentry->d_lock);
fs/9p/fid.h
14
struct p9_fid *v9fs_fid_lookup(struct dentry *dentry);
fs/9p/fid.h
15
static inline struct p9_fid *v9fs_parent_fid(struct dentry *dentry)
fs/9p/fid.h
17
return v9fs_fid_lookup(dentry->d_parent);
fs/9p/fid.h
19
void v9fs_fid_add(struct dentry *dentry, struct p9_fid **fid);
fs/9p/fid.h
25
static inline struct p9_fid *v9fs_fid_clone(struct dentry *dentry)
fs/9p/fid.h
29
fid = v9fs_fid_lookup(dentry);
fs/9p/v9fs.c
148
int v9fs_show_options(struct seq_file *m, struct dentry *root)
fs/9p/v9fs.h
172
extern int v9fs_show_options(struct seq_file *m, struct dentry *root);
fs/9p/v9fs.h
179
extern struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
fs/9p/v9fs.h
181
extern int v9fs_vfs_unlink(struct inode *i, struct dentry *d);
fs/9p/v9fs.h
182
extern int v9fs_vfs_rmdir(struct inode *i, struct dentry *d);
fs/9p/v9fs.h
184
struct inode *old_dir, struct dentry *old_dentry,
fs/9p/v9fs.h
185
struct inode *new_dir, struct dentry *new_dentry,
fs/9p/v9fs.h
210
static inline struct v9fs_session_info *v9fs_dentry2v9ses(const struct dentry *dentry)
fs/9p/v9fs.h
212
return dentry->d_sb->s_fs_info;
fs/9p/v9fs_vfs.h
63
struct dentry *dentry, struct iattr *iattr);
fs/9p/vfs_dentry.c
100
dentry, dentry);
fs/9p/vfs_dentry.c
105
dentry, dentry);
fs/9p/vfs_dentry.c
111
dentry, dentry, ERR_PTR(retval));
fs/9p/vfs_dentry.c
116
p9_debug(P9_DEBUG_VFS, "dentry: %pd (%p) is valid\n", dentry, dentry);
fs/9p/vfs_dentry.c
121
struct dentry *dentry, unsigned int flags)
fs/9p/vfs_dentry.c
123
return __v9fs_lookup_revalidate(dentry, flags);
fs/9p/vfs_dentry.c
126
static bool v9fs_dentry_unalias_trylock(const struct dentry *dentry)
fs/9p/vfs_dentry.c
128
struct v9fs_session_info *v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_dentry.c
132
static void v9fs_dentry_unalias_unlock(const struct dentry *dentry)
fs/9p/vfs_dentry.c
134
struct v9fs_session_info *v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_dentry.c
31
static int v9fs_cached_dentry_delete(const struct dentry *dentry)
fs/9p/vfs_dentry.c
34
dentry, dentry);
fs/9p/vfs_dentry.c
37
if (d_really_is_negative(dentry))
fs/9p/vfs_dentry.c
48
static void v9fs_dentry_release(struct dentry *dentry)
fs/9p/vfs_dentry.c
54
dentry, dentry);
fs/9p/vfs_dentry.c
56
spin_lock(&dentry->d_lock);
fs/9p/vfs_dentry.c
57
hlist_move_list((struct hlist_head *)&dentry->d_fsdata, &head);
fs/9p/vfs_dentry.c
58
spin_unlock(&dentry->d_lock);
fs/9p/vfs_dentry.c
64
static int __v9fs_lookup_revalidate(struct dentry *dentry, unsigned int flags)
fs/9p/vfs_dentry.c
73
inode = d_inode(dentry);
fs/9p/vfs_dentry.c
82
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_dentry.c
87
dentry, dentry, fid);
fs/9p/vfs_inode.c
1013
struct dentry *dentry, struct iattr *iattr)
fs/9p/vfs_inode.c
1016
struct inode *inode = d_inode(dentry);
fs/9p/vfs_inode.c
1022
retval = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/9p/vfs_inode.c
1026
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_inode.c
1032
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_inode.c
1060
if (d_is_reg(dentry)) {
fs/9p/vfs_inode.c
1159
static const char *v9fs_vfs_get_link(struct dentry *dentry,
fs/9p/vfs_inode.c
1168
if (!dentry)
fs/9p/vfs_inode.c
1171
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_inode.c
1175
p9_debug(P9_DEBUG_VFS, "%pd\n", dentry);
fs/9p/vfs_inode.c
1176
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_inode.c
1211
static int v9fs_vfs_mkspecial(struct inode *dir, struct dentry *dentry,
fs/9p/vfs_inode.c
1223
fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm,
fs/9p/vfs_inode.c
1246
struct dentry *dentry, const char *symname)
fs/9p/vfs_inode.c
1249
dir->i_ino, dentry, symname);
fs/9p/vfs_inode.c
1251
return v9fs_vfs_mkspecial(dir, dentry, P9_DMSYMLINK, symname);
fs/9p/vfs_inode.c
1265
v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir,
fs/9p/vfs_inode.c
1266
struct dentry *dentry)
fs/9p/vfs_inode.c
1273
dir->i_ino, dentry, old_dentry);
fs/9p/vfs_inode.c
1280
retval = v9fs_vfs_mkspecial(dir, dentry, P9_DMLINK, name);
fs/9p/vfs_inode.c
1301
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/9p/vfs_inode.c
1309
dir->i_ino, dentry, mode,
fs/9p/vfs_inode.c
1321
retval = v9fs_vfs_mkspecial(dir, dentry, perm, name);
fs/9p/vfs_inode.c
507
static int v9fs_remove(struct inode *dir, struct dentry *dentry, int flags)
fs/9p/vfs_inode.c
515
dir, dentry, flags);
fs/9p/vfs_inode.c
518
inode = d_inode(dentry);
fs/9p/vfs_inode.c
519
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode.c
526
retval = p9_client_unlinkat(dfid, dentry->d_name.name,
fs/9p/vfs_inode.c
531
v9fid = v9fs_fid_clone(dentry);
fs/9p/vfs_inode.c
552
dentry->d_op->d_release(dentry);
fs/9p/vfs_inode.c
569
struct dentry *dentry, char *extension, u32 perm, u8 mode)
fs/9p/vfs_inode.c
576
p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry);
fs/9p/vfs_inode.c
578
name = dentry->d_name.name;
fs/9p/vfs_inode.c
579
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode.c
619
v9fs_fid_add(dentry, &fid);
fs/9p/vfs_inode.c
620
d_instantiate(dentry, inode);
fs/9p/vfs_inode.c
646
struct dentry *dentry, umode_t mode, bool excl)
fs/9p/vfs_inode.c
653
fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR);
fs/9p/vfs_inode.c
672
static struct dentry *v9fs_vfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/9p/vfs_inode.c
673
struct dentry *dentry, umode_t mode)
fs/9p/vfs_inode.c
680
p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry);
fs/9p/vfs_inode.c
684
fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD);
fs/9p/vfs_inode.c
706
struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
fs/9p/vfs_inode.c
709
struct dentry *res;
fs/9p/vfs_inode.c
716
dir, dentry, dentry, flags);
fs/9p/vfs_inode.c
718
if (dentry->d_name.len > NAME_MAX)
fs/9p/vfs_inode.c
723
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode.c
732
name = dentry->d_name.name;
fs/9p/vfs_inode.c
750
res = d_splice_alias(inode, dentry);
fs/9p/vfs_inode.c
753
v9fs_fid_add(dentry, &fid);
fs/9p/vfs_inode.c
763
v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry,
fs/9p/vfs_inode.c
774
if (d_in_lookup(dentry)) {
fs/9p/vfs_inode.c
775
struct dentry *res = v9fs_vfs_lookup(dir, dentry, 0);
fs/9p/vfs_inode.c
776
if (res || d_really_is_positive(dentry))
fs/9p/vfs_inode.c
793
fid = v9fs_create(v9ses, dir, dentry, NULL, perm, p9_omode);
fs/9p/vfs_inode.c
798
inode = d_inode(dentry);
fs/9p/vfs_inode.c
800
err = finish_open(file, dentry, generic_file_open);
fs/9p/vfs_inode.c
827
int v9fs_vfs_unlink(struct inode *i, struct dentry *d)
fs/9p/vfs_inode.c
839
int v9fs_vfs_rmdir(struct inode *i, struct dentry *d)
fs/9p/vfs_inode.c
857
struct dentry *old_dentry, struct inode *new_dir,
fs/9p/vfs_inode.c
858
struct dentry *new_dentry, unsigned int flags)
fs/9p/vfs_inode.c
967
struct dentry *dentry = path->dentry;
fs/9p/vfs_inode.c
968
struct inode *inode = d_inode(dentry);
fs/9p/vfs_inode.c
973
p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
fs/9p/vfs_inode.c
974
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_inode.c
987
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_inode.c
996
v9fs_stat2inode(st, d_inode(dentry), dentry->d_sb, 0);
fs/9p/vfs_inode.c
997
generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(dentry), stat);
fs/9p/vfs_inode_dotl.c
221
struct dentry *dentry, umode_t omode, bool excl)
fs/9p/vfs_inode_dotl.c
223
return v9fs_vfs_mknod_dotl(idmap, dir, dentry, omode, 0);
fs/9p/vfs_inode_dotl.c
227
v9fs_vfs_atomic_open_dotl(struct inode *dir, struct dentry *dentry,
fs/9p/vfs_inode_dotl.c
242
if (d_in_lookup(dentry)) {
fs/9p/vfs_inode_dotl.c
243
struct dentry *res = v9fs_vfs_lookup(dir, dentry, 0);
fs/9p/vfs_inode_dotl.c
244
if (res || d_really_is_positive(dentry))
fs/9p/vfs_inode_dotl.c
254
name = dentry->d_name.name;
fs/9p/vfs_inode_dotl.c
258
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode_dotl.c
313
v9fs_fid_add(dentry, &fid);
fs/9p/vfs_inode_dotl.c
314
d_instantiate(dentry, inode);
fs/9p/vfs_inode_dotl.c
317
err = finish_open(file, dentry, generic_file_open);
fs/9p/vfs_inode_dotl.c
33
struct dentry *dentry, umode_t omode, dev_t rdev);
fs/9p/vfs_inode_dotl.c
348
static struct dentry *v9fs_vfs_mkdir_dotl(struct mnt_idmap *idmap,
fs/9p/vfs_inode_dotl.c
349
struct inode *dir, struct dentry *dentry,
fs/9p/vfs_inode_dotl.c
362
p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry);
fs/9p/vfs_inode_dotl.c
369
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode_dotl.c
385
name = dentry->d_name.name;
fs/9p/vfs_inode_dotl.c
406
v9fs_fid_add(dentry, &fid);
fs/9p/vfs_inode_dotl.c
407
d_instantiate(dentry, inode);
fs/9p/vfs_inode_dotl.c
423
struct dentry *dentry = path->dentry;
fs/9p/vfs_inode_dotl.c
426
struct inode *inode = d_inode(dentry);
fs/9p/vfs_inode_dotl.c
429
p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
fs/9p/vfs_inode_dotl.c
430
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_inode_dotl.c
443
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_inode_dotl.c
456
v9fs_stat2inode_dotl(st, d_inode(dentry), 0);
fs/9p/vfs_inode_dotl.c
457
generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(dentry), stat);
fs/9p/vfs_inode_dotl.c
514
struct dentry *dentry, struct iattr *iattr)
fs/9p/vfs_inode_dotl.c
517
struct inode *inode = d_inode(dentry);
fs/9p/vfs_inode_dotl.c
527
retval = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/9p/vfs_inode_dotl.c
531
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_inode_dotl.c
556
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_inode_dotl.c
684
struct dentry *dentry, const char *symname)
fs/9p/vfs_inode_dotl.c
693
name = dentry->d_name.name;
fs/9p/vfs_inode_dotl.c
696
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode_dotl.c
730
v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
fs/9p/vfs_inode_dotl.c
731
struct dentry *dentry)
fs/9p/vfs_inode_dotl.c
738
dir->i_ino, old_dentry, dentry);
fs/9p/vfs_inode_dotl.c
741
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode_dotl.c
751
err = p9_client_link(dfid, oldfid, dentry->d_name.name);
fs/9p/vfs_inode_dotl.c
773
d_instantiate(dentry, d_inode(old_dentry));
fs/9p/vfs_inode_dotl.c
789
struct dentry *dentry, umode_t omode, dev_t rdev)
fs/9p/vfs_inode_dotl.c
802
dir->i_ino, dentry, omode,
fs/9p/vfs_inode_dotl.c
806
dfid = v9fs_parent_fid(dentry);
fs/9p/vfs_inode_dotl.c
822
name = dentry->d_name.name;
fs/9p/vfs_inode_dotl.c
844
v9fs_fid_add(dentry, &fid);
fs/9p/vfs_inode_dotl.c
845
d_instantiate(dentry, inode);
fs/9p/vfs_inode_dotl.c
863
v9fs_vfs_get_link_dotl(struct dentry *dentry,
fs/9p/vfs_inode_dotl.c
871
if (!dentry)
fs/9p/vfs_inode_dotl.c
874
p9_debug(P9_DEBUG_VFS, "%pd\n", dentry);
fs/9p/vfs_inode_dotl.c
876
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_super.c
190
static int v9fs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/9p/vfs_super.c
197
fid = v9fs_fid_lookup(dentry);
fs/9p/vfs_super.c
203
v9ses = v9fs_dentry2v9ses(dentry);
fs/9p/vfs_super.c
220
res = simple_statfs(dentry, buf);
fs/9p/vfs_super.c
86
struct dentry *root = NULL;
fs/9p/xattr.c
100
fid = v9fs_fid_lookup(dentry);
fs/9p/xattr.c
140
ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/9p/xattr.c
143
return v9fs_xattr_get(dentry, "", buffer, buffer_size);
fs/9p/xattr.c
147
struct dentry *dentry, struct inode *inode,
fs/9p/xattr.c
152
return v9fs_xattr_get(dentry, full_name, buffer, size);
fs/9p/xattr.c
157
struct dentry *dentry, struct inode *inode,
fs/9p/xattr.c
163
return v9fs_xattr_set(dentry, full_name, value, size, flags);
fs/9p/xattr.c
65
ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
fs/9p/xattr.c
73
fid = v9fs_fid_lookup(dentry);
fs/9p/xattr.c
94
int v9fs_xattr_set(struct dentry *dentry, const char *name,
fs/9p/xattr.h
17
ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
fs/9p/xattr.h
21
int v9fs_xattr_set(struct dentry *dentry, const char *name,
fs/9p/xattr.h
23
ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer,
fs/adfs/adfs.h
147
int adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
fs/adfs/dir.c
396
adfs_hash(const struct dentry *parent, struct qstr *qstr)
fs/adfs/dir.c
419
static int adfs_compare(const struct dentry *dentry, unsigned int len,
fs/adfs/dir.c
430
static struct dentry *
fs/adfs/dir.c
431
adfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/adfs/dir.c
437
error = adfs_dir_lookup_byname(dir, &dentry->d_name, &obj);
fs/adfs/dir.c
449
return d_splice_alias(inode, dentry);
fs/adfs/inode.c
302
adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
fs/adfs/inode.c
305
struct inode *inode = d_inode(dentry);
fs/adfs/inode.c
310
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/adfs/super.c
101
static int adfs_show_options(struct seq_file *seq, struct dentry *root)
fs/adfs/super.c
176
static int adfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/adfs/super.c
178
struct super_block *sb = dentry->d_sb;
fs/affs/affs.h
138
extern int affs_remove_header(struct dentry *dentry);
fs/affs/affs.h
150
extern bool affs_nofilenametruncate(const struct dentry *dentry);
fs/affs/affs.h
153
extern int affs_copy_name(unsigned char *bstr, struct dentry *dentry);
fs/affs/affs.h
167
extern struct dentry *affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int);
fs/affs/affs.h
168
extern int affs_unlink(struct inode *dir, struct dentry *dentry);
fs/affs/affs.h
170
struct dentry *dentry, umode_t mode, bool);
fs/affs/affs.h
171
extern struct dentry *affs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/affs/affs.h
172
struct dentry *dentry, umode_t mode);
fs/affs/affs.h
173
extern int affs_rmdir(struct inode *dir, struct dentry *dentry);
fs/affs/affs.h
174
extern int affs_link(struct dentry *olddentry, struct inode *dir,
fs/affs/affs.h
175
struct dentry *dentry);
fs/affs/affs.h
177
struct inode *dir, struct dentry *dentry,
fs/affs/affs.h
180
struct inode *old_dir, struct dentry *old_dentry,
fs/affs/affs.h
181
struct inode *new_dir, struct dentry *new_dentry,
fs/affs/affs.h
188
struct dentry *dentry, struct iattr *attr);
fs/affs/affs.h
195
struct dentry *dentry, s32 type);
fs/affs/amigaffs.c
127
struct dentry *dentry;
fs/affs/amigaffs.c
129
hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) {
fs/affs/amigaffs.c
130
if (entry_ino == (u32)(long)dentry->d_fsdata) {
fs/affs/amigaffs.c
131
dentry->d_fsdata = (void *)inode->i_ino;
fs/affs/amigaffs.c
142
affs_remove_link(struct dentry *dentry)
fs/affs/amigaffs.c
144
struct inode *dir, *inode = d_inode(dentry);
fs/affs/amigaffs.c
156
link_ino = (u32)(long)dentry->d_fsdata;
fs/affs/amigaffs.c
267
affs_remove_header(struct dentry *dentry)
fs/affs/amigaffs.c
274
dir = d_inode(dentry->d_parent);
fs/affs/amigaffs.c
278
inode = d_inode(dentry);
fs/affs/amigaffs.c
284
bh = affs_bread(sb, (u32)(long)dentry->d_fsdata);
fs/affs/amigaffs.c
314
retval = affs_remove_link(dentry);
fs/affs/amigaffs.c
502
affs_nofilenametruncate(const struct dentry *dentry)
fs/affs/amigaffs.c
504
return affs_test_opt(AFFS_SB(dentry->d_sb)->s_flags, SF_NO_TRUNCATE);
fs/affs/amigaffs.c
536
affs_copy_name(unsigned char *bstr, struct dentry *dentry)
fs/affs/amigaffs.c
538
u32 len = min(dentry->d_name.len, AFFSNAMEMAX);
fs/affs/amigaffs.c
541
memcpy(bstr, dentry->d_name.name, len);
fs/affs/inode.c
216
affs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
fs/affs/inode.c
219
struct inode *inode = d_inode(dentry);
fs/affs/inode.c
224
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/affs/inode.c
348
affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s32 type)
fs/affs/inode.c
357
dir->i_ino, inode->i_ino, dentry, type);
fs/affs/inode.c
384
affs_copy_name(AFFS_TAIL(sb, bh)->name, dentry);
fs/affs/inode.c
401
dentry->d_fsdata = (void *)(long)bh->b_blocknr;
fs/affs/inode.c
409
d_instantiate(dentry, inode);
fs/affs/namei.c
116
affs_compare_dentry(const struct dentry *dentry,
fs/affs/namei.c
121
affs_nofilenametruncate(dentry));
fs/affs/namei.c
125
affs_intl_compare_dentry(const struct dentry *dentry,
fs/affs/namei.c
129
affs_nofilenametruncate(dentry));
fs/affs/namei.c
138
affs_match(struct dentry *dentry, const u8 *name2, toupper_t fn)
fs/affs/namei.c
140
const u8 *name = dentry->d_name.name;
fs/affs/namei.c
141
int len = dentry->d_name.len;
fs/affs/namei.c
170
affs_find_entry(struct inode *dir, struct dentry *dentry)
fs/affs/namei.c
177
pr_debug("%s(\"%pd\")\n", __func__, dentry);
fs/affs/namei.c
183
key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)]);
fs/affs/namei.c
192
if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, fn))
fs/affs/namei.c
198
struct dentry *
fs/affs/namei.c
199
affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/affs/namei.c
204
struct dentry *res;
fs/affs/namei.c
206
pr_debug("%s(\"%pd\")\n", __func__, dentry);
fs/affs/namei.c
209
bh = affs_find_entry(dir, dentry);
fs/affs/namei.c
218
dentry->d_fsdata = (void *)(long)ino;
fs/affs/namei.c
228
res = d_splice_alias(inode, dentry);
fs/affs/namei.c
230
res->d_fsdata = dentry->d_fsdata;
fs/affs/namei.c
236
affs_unlink(struct inode *dir, struct dentry *dentry)
fs/affs/namei.c
239
d_inode(dentry)->i_ino, dentry);
fs/affs/namei.c
241
return affs_remove_header(dentry);
fs/affs/namei.c
246
struct dentry *dentry, umode_t mode, bool excl)
fs/affs/namei.c
253
__func__, dir->i_ino, dentry, mode);
fs/affs/namei.c
267
error = affs_add_entry(dir, inode, dentry, ST_FILE);
fs/affs/namei.c
276
struct dentry *
fs/affs/namei.c
278
struct dentry *dentry, umode_t mode)
fs/affs/namei.c
284
__func__, dir->i_ino, dentry, mode);
fs/affs/namei.c
296
error = affs_add_entry(dir, inode, dentry, ST_USERDIR);
fs/affs/namei.c
307
affs_rmdir(struct inode *dir, struct dentry *dentry)
fs/affs/namei.c
310
d_inode(dentry)->i_ino, dentry);
fs/affs/namei.c
312
return affs_remove_header(dentry);
fs/affs/namei.c
317
struct dentry *dentry, const char *symname)
fs/affs/namei.c
327
__func__, dir->i_ino, dentry, symname);
fs/affs/namei.c
380
error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK);
fs/affs/namei.c
394
affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
fs/affs/namei.c
399
dentry);
fs/affs/namei.c
401
return affs_add_entry(dir, inode, dentry, ST_LINKFILE);
fs/affs/namei.c
405
affs_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/affs/namei.c
406
struct inode *new_dir, struct dentry *new_dentry)
fs/affs/namei.c
452
affs_xrename(struct inode *old_dir, struct dentry *old_dentry,
fs/affs/namei.c
453
struct inode *new_dir, struct dentry *new_dentry)
fs/affs/namei.c
46
__affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr, toupper_t fn, bool notruncate)
fs/affs/namei.c
507
struct dentry *old_dentry, struct inode *new_dir,
fs/affs/namei.c
508
struct dentry *new_dentry, unsigned int flags)
fs/affs/namei.c
523
static struct dentry *affs_get_parent(struct dentry *child)
fs/affs/namei.c
553
static struct dentry *affs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/affs/namei.c
560
static struct dentry *affs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/affs/namei.c
57
hash = init_name_hash(dentry);
fs/affs/namei.c
67
affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
fs/affs/namei.c
69
return __affs_hash_dentry(dentry, qstr, affs_toupper,
fs/affs/namei.c
70
affs_nofilenametruncate(dentry));
fs/affs/namei.c
75
affs_intl_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
fs/affs/namei.c
77
return __affs_hash_dentry(dentry, qstr, affs_intl_toupper,
fs/affs/namei.c
78
affs_nofilenametruncate(dentry));
fs/affs/super.c
268
static int affs_show_options(struct seq_file *m, struct dentry *root)
fs/affs/super.c
29
static int affs_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/affs/super.c
30
static int affs_show_options(struct seq_file *m, struct dentry *root);
fs/affs/super.c
560
affs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/affs/super.c
562
struct super_block *sb = dentry->d_sb;
fs/afs/dir.c
1000
dentry->d_name.name[dentry->d_name.len - 1] == 's')
fs/afs/dir.c
1001
return afs_lookup_atsys(dir, dentry);
fs/afs/dir.c
1004
inode = afs_do_lookup(dir, dentry);
fs/afs/dir.c
1010
_debug("splice %p", dentry->d_inode);
fs/afs/dir.c
1011
d = d_splice_alias(inode, dentry);
fs/afs/dir.c
1013
d->d_fsdata = dentry->d_fsdata;
fs/afs/dir.c
1016
trace_afs_lookup(dvnode, &dentry->d_name, &fid);
fs/afs/dir.c
1025
static int afs_d_revalidate_rcu(struct afs_vnode *dvnode, struct dentry *dentry)
fs/afs/dir.c
1029
_enter("%p", dentry);
fs/afs/dir.c
1043
de_version = (long)READ_ONCE(dentry->d_fsdata);
fs/afs/dir.c
1059
struct dentry *dentry, unsigned int flags)
fs/afs/dir.c
1070
return afs_d_revalidate_rcu(dir, dentry);
fs/afs/dir.c
1072
if (d_really_is_positive(dentry)) {
fs/afs/dir.c
1073
vnode = AFS_FS_I(d_inode(dentry));
fs/afs/dir.c
1075
vnode->fid.vid, vnode->fid.vnode, dentry,
fs/afs/dir.c
1078
_enter("{neg n=%pd}", dentry);
fs/afs/dir.c
1081
key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell);
fs/afs/dir.c
1093
_debug("%pd: parent dir deleted", dentry);
fs/afs/dir.c
1103
de_version = (long)dentry->d_fsdata;
fs/afs/dir.c
1119
if (d_really_is_negative(dentry))
fs/afs/dir.c
1121
inode = d_inode(dentry);
fs/afs/dir.c
1124
dentry);
fs/afs/dir.c
1134
dentry, fid.vnode,
fs/afs/dir.c
1144
dentry, fid.unique,
fs/afs/dir.c
1153
_debug("%pd: dirent not found", dentry);
fs/afs/dir.c
1154
if (d_really_is_positive(dentry))
fs/afs/dir.c
1159
_debug("failed to iterate parent %pd2: %d", dentry, ret);
fs/afs/dir.c
1164
dentry->d_fsdata = (void *)(unsigned long)dir_version;
fs/afs/dir.c
1171
_debug("dropping dentry %pd2", dentry);
fs/afs/dir.c
1184
static int afs_d_delete(const struct dentry *dentry)
fs/afs/dir.c
1186
_enter("%pd", dentry);
fs/afs/dir.c
1188
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/afs/dir.c
1191
if (d_really_is_positive(dentry) &&
fs/afs/dir.c
1192
(test_bit(AFS_VNODE_DELETED, &AFS_FS_I(d_inode(dentry))->flags) ||
fs/afs/dir.c
1193
test_bit(AFS_VNODE_PSEUDODIR, &AFS_FS_I(d_inode(dentry))->flags)))
fs/afs/dir.c
1207
static void afs_d_iput(struct dentry *dentry, struct inode *inode)
fs/afs/dir.c
1209
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/afs/dir.c
1210
afs_silly_iput(dentry, inode);
fs/afs/dir.c
1217
void afs_d_release(struct dentry *dentry)
fs/afs/dir.c
1219
_enter("%pd", dentry);
fs/afs/dir.c
1265
d_instantiate(op->dentry, inode);
fs/afs/dir.c
1273
afs_update_dentry_version(op, &op->file[0], op->dentry);
fs/afs/dir.c
1290
afs_edit_dir_add(dvnode, &op->dentry->d_name, &vp->fid,
fs/afs/dir.c
1301
d_drop(op->dentry);
fs/afs/dir.c
1316
static struct dentry *afs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/afs/dir.c
1317
struct dentry *dentry, umode_t mode)
fs/afs/dir.c
1324
dvnode->fid.vid, dvnode->fid.vnode, dentry, mode);
fs/afs/dir.c
1328
d_drop(dentry);
fs/afs/dir.c
1338
op->dentry = dentry;
fs/afs/dir.c
1351
static void afs_dir_remove_subdir(struct dentry *dentry)
fs/afs/dir.c
1353
if (d_really_is_positive(dentry)) {
fs/afs/dir.c
1354
struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry));
fs/afs/dir.c
1368
afs_update_dentry_version(op, &op->file[0], op->dentry);
fs/afs/dir.c
1378
afs_dir_remove_subdir(op->dentry);
fs/afs/dir.c
1384
afs_edit_dir_remove(dvnode, &op->dentry->d_name,
fs/afs/dir.c
1409
static int afs_rmdir(struct inode *dir, struct dentry *dentry)
fs/afs/dir.c
1416
dvnode->fid.vid, dvnode->fid.vnode, dentry);
fs/afs/dir.c
1429
op->dentry = dentry;
fs/afs/dir.c
1433
if (d_really_is_positive(dentry)) {
fs/afs/dir.c
1434
vnode = AFS_FS_I(d_inode(dentry));
fs/afs/dir.c
1475
struct dentry *dentry = op->dentry;
fs/afs/dir.c
1481
if (d_really_is_positive(dentry))
fs/afs/dir.c
1515
afs_update_dentry_version(op, &op->file[0], op->dentry);
fs/afs/dir.c
1530
afs_edit_dir_remove(dvnode, &op->dentry->d_name,
fs/afs/dir.c
1540
d_rehash(op->dentry);
fs/afs/dir.c
1555
static int afs_unlink(struct inode *dir, struct dentry *dentry)
fs/afs/dir.c
1559
struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry));
fs/afs/dir.c
1563
dvnode->fid.vid, dvnode->fid.vnode, dentry);
fs/afs/dir.c
1565
if (dentry->d_name.len >= AFSNAMEMAX)
fs/afs/dir.c
1586
spin_lock(&dentry->d_lock);
fs/afs/dir.c
1587
if (d_count(dentry) > 1) {
fs/afs/dir.c
1588
spin_unlock(&dentry->d_lock);
fs/afs/dir.c
1590
write_inode_now(d_inode(dentry), 0);
fs/afs/dir.c
1591
afs_op_set_error(op, afs_sillyrename(dvnode, vnode, dentry, op->key));
fs/afs/dir.c
1594
if (!d_unhashed(dentry)) {
fs/afs/dir.c
1596
__d_drop(dentry);
fs/afs/dir.c
1599
spin_unlock(&dentry->d_lock);
fs/afs/dir.c
1604
op->dentry = dentry;
fs/afs/dir.c
1639
struct dentry *dentry, umode_t mode, bool excl)
fs/afs/dir.c
1646
dvnode->fid.vid, dvnode->fid.vnode, dentry, mode);
fs/afs/dir.c
1648
if (dentry->d_name.len >= AFSNAMEMAX)
fs/afs/dir.c
1664
op->dentry = dentry;
fs/afs/dir.c
1674
d_drop(dentry);
fs/afs/dir.c
1688
afs_update_dentry_version(op, dvp, op->dentry);
fs/afs/dir.c
1689
if (op->dentry_2->d_parent == op->dentry->d_parent)
fs/afs/dir.c
1692
d_instantiate(op->dentry, &vp->vnode->netfs.inode);
fs/afs/dir.c
1699
d_drop(op->dentry);
fs/afs/dir.c
1714
static int afs_link(struct dentry *from, struct inode *dir,
fs/afs/dir.c
1715
struct dentry *dentry)
fs/afs/dir.c
1725
dentry);
fs/afs/dir.c
1727
if (dentry->d_name.len >= AFSNAMEMAX)
fs/afs/dir.c
1749
op->dentry = dentry;
fs/afs/dir.c
1761
d_drop(dentry);
fs/afs/dir.c
1779
struct dentry *dentry, const char *content)
fs/afs/dir.c
1786
dvnode->fid.vid, dvnode->fid.vnode, dentry,
fs/afs/dir.c
1790
if (dentry->d_name.len >= AFSNAMEMAX)
fs/afs/dir.c
1808
op->dentry = dentry;
fs/afs/dir.c
1818
d_drop(dentry);
fs/afs/dir.c
1881
struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry));
fs/afs/dir.c
1882
struct dentry *old_dentry = op->dentry;
fs/afs/dir.c
1883
struct dentry *new_dentry = op->dentry_2;
fs/afs/dir.c
1937
afs_update_dentry_version(op, new_dvp, op->dentry);
fs/afs/dir.c
1956
struct dentry *old_dentry = op->dentry;
fs/afs/dir.c
1957
struct dentry *new_dentry = op->dentry_2;
fs/afs/dir.c
2016
d_rehash(op->dentry);
fs/afs/dir.c
2057
struct dentry *old_dentry, struct inode *new_dir,
fs/afs/dir.c
2058
struct dentry *new_dentry, unsigned int flags)
fs/afs/dir.c
2115
op->dentry = old_dentry;
fs/afs/dir.c
22
static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
fs/afs/dir.c
27
struct dentry *dentry, unsigned int flags);
fs/afs/dir.c
28
static int afs_d_delete(const struct dentry *dentry);
fs/afs/dir.c
29
static void afs_d_iput(struct dentry *dentry, struct inode *inode);
fs/afs/dir.c
35
struct dentry *dentry, umode_t mode, bool excl);
fs/afs/dir.c
36
static struct dentry *afs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/afs/dir.c
37
struct dentry *dentry, umode_t mode);
fs/afs/dir.c
38
static int afs_rmdir(struct inode *dir, struct dentry *dentry);
fs/afs/dir.c
39
static int afs_unlink(struct inode *dir, struct dentry *dentry);
fs/afs/dir.c
40
static int afs_link(struct dentry *from, struct inode *dir,
fs/afs/dir.c
41
struct dentry *dentry);
fs/afs/dir.c
43
struct dentry *dentry, const char *content);
fs/afs/dir.c
45
struct dentry *old_dentry, struct inode *new_dir,
fs/afs/dir.c
46
struct dentry *new_dentry, unsigned int flags);
fs/afs/dir.c
774
static struct inode *afs_do_lookup(struct inode *dir, struct dentry *dentry)
fs/afs/dir.c
786
_enter("{%lu},%p{%pd},", dir->i_ino, dentry, dentry);
fs/afs/dir.c
795
cookie->name = dentry->d_name;
fs/afs/dir.c
800
ret = afs_dir_search(dvnode, &dentry->d_name, &cookie->fids[1], &data_version);
fs/afs/dir.c
811
dentry->d_fsdata = (void *)(unsigned long)data_version;
fs/afs/dir.c
898
dentry->d_fsdata = (void *)(unsigned long)op->file[0].scb.status.data_version;
fs/afs/dir.c
900
dentry->d_fsdata = (void *)(unsigned long)op->file[0].dv_before;
fs/afs/dir.c
911
static struct dentry *afs_lookup_atsys(struct inode *dir, struct dentry *dentry)
fs/afs/dir.c
915
struct dentry *ret;
fs/afs/dir.c
925
if (dentry->d_name.len > 4) {
fs/afs/dir.c
926
memcpy(p, dentry->d_name.name, dentry->d_name.len - 4);
fs/afs/dir.c
927
p += dentry->d_name.len - 4;
fs/afs/dir.c
938
len = dentry->d_name.len - 4 + strlen(name);
fs/afs/dir.c
945
ret = lookup_noperm(&QSTR(buf), dentry->d_parent);
fs/afs/dir.c
965
static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
fs/afs/dir.c
971
struct dentry *d;
fs/afs/dir.c
975
dvnode->fid.vid, dvnode->fid.vnode, dentry, dentry);
fs/afs/dir.c
977
ASSERTCMP(d_inode(dentry), ==, NULL);
fs/afs/dir.c
979
if (dentry->d_name.len >= AFSNAMEMAX) {
fs/afs/dir.c
996
if (dentry->d_name.len >= 4 &&
fs/afs/dir.c
997
dentry->d_name.name[dentry->d_name.len - 4] == '@' &&
fs/afs/dir.c
998
dentry->d_name.name[dentry->d_name.len - 3] == 's' &&
fs/afs/dir.c
999
dentry->d_name.name[dentry->d_name.len - 2] == 'y' &&
fs/afs/dir_silly.c
112
struct dentry *dentry, struct key *key)
fs/afs/dir_silly.c
115
struct dentry *sdentry = NULL;
fs/afs/dir_silly.c
122
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/afs/dir_silly.c
134
sdentry = lookup_noperm(&QSTR(silly), dentry->d_parent);
fs/afs/dir_silly.c
145
ret = afs_do_silly_rename(dvnode, vnode, dentry, sdentry, key);
fs/afs/dir_silly.c
150
d_move(dentry, sdentry);
fs/afs/dir_silly.c
156
d_drop(dentry);
fs/afs/dir_silly.c
173
afs_update_dentry_version(op, &op->file[0], op->dentry);
fs/afs/dir_silly.c
185
afs_edit_dir_remove(dvnode, &op->dentry->d_name,
fs/afs/dir_silly.c
202
struct dentry *dentry, struct key *key)
fs/afs/dir_silly.c
220
op->dentry = dentry;
fs/afs/dir_silly.c
244
int afs_silly_iput(struct dentry *dentry, struct inode *inode)
fs/afs/dir_silly.c
246
struct afs_vnode *dvnode = AFS_FS_I(d_inode(dentry->d_parent));
fs/afs/dir_silly.c
248
struct dentry *alias;
fs/afs/dir_silly.c
253
_enter("%p{%pd},%llx", dentry, dentry, vnode->fid.vnode);
fs/afs/dir_silly.c
257
alias = d_alloc_parallel(dentry->d_parent, &dentry->d_name, &wq);
fs/afs/dir_silly.c
27
struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry));
fs/afs/dir_silly.c
28
struct dentry *old = op->dentry;
fs/afs/dir_silly.c
286
afs_do_silly_unlink(dvnode, vnode, dentry, dvnode->silly_key);
fs/afs/dir_silly.c
29
struct dentry *new = op->dentry_2;
fs/afs/dir_silly.c
61
struct dentry *old, struct dentry *new,
fs/afs/dir_silly.c
92
op->dentry = old;
fs/afs/dynroot.c
100
size_t len = dentry->d_name.len;
fs/afs/dynroot.c
125
dentry->d_fsdata = cell;
fs/afs/dynroot.c
126
return d_splice_alias(inode, dentry);
fs/afs/dynroot.c
132
return d_splice_alias(inode, dentry);
fs/afs/dynroot.c
139
static struct dentry *afs_dynroot_lookup(struct inode *dir, struct dentry *dentry,
fs/afs/dynroot.c
142
_enter("%pd", dentry);
fs/afs/dynroot.c
147
if (dentry->d_name.len >= AFSNAMEMAX) {
fs/afs/dynroot.c
152
if (dentry->d_name.len == 5 &&
fs/afs/dynroot.c
153
memcmp(dentry->d_name.name, "@cell", 5) == 0)
fs/afs/dynroot.c
154
return afs_lookup_atcell(dir, dentry, 2);
fs/afs/dynroot.c
156
if (dentry->d_name.len == 6 &&
fs/afs/dynroot.c
157
memcmp(dentry->d_name.name, ".@cell", 6) == 0)
fs/afs/dynroot.c
158
return afs_lookup_atcell(dir, dentry, 3);
fs/afs/dynroot.c
16
static struct dentry *afs_lookup_atcell(struct inode *dir, struct dentry *dentry, ino_t ino);
fs/afs/dynroot.c
160
return afs_dynroot_lookup_cell(dir, dentry, flags);
fs/afs/dynroot.c
167
static void afs_dynroot_d_release(struct dentry *dentry)
fs/afs/dynroot.c
169
struct afs_cell *cell = dentry->d_fsdata;
fs/afs/dynroot.c
178
static int afs_dynroot_delete_dentry(const struct dentry *dentry)
fs/afs/dynroot.c
180
const struct qstr *name = &dentry->d_name;
fs/afs/dynroot.c
205
static const char *afs_atcell_get_link(struct dentry *dentry, struct inode *inode,
fs/afs/dynroot.c
217
if (!dentry) {
fs/afs/dynroot.c
249
static struct dentry *afs_lookup_atcell(struct inode *dir, struct dentry *dentry, ino_t ino)
fs/afs/dynroot.c
277
return d_splice_alias(inode, dentry);
fs/afs/dynroot.c
332
struct afs_net *net = afs_d2net(file->f_path.dentry);
fs/afs/dynroot.c
93
static struct dentry *afs_dynroot_lookup_cell(struct inode *dir, struct dentry *dentry,
fs/afs/dynroot.c
97
struct afs_net *net = afs_d2net(dentry);
fs/afs/dynroot.c
99
const char *name = dentry->d_name.name;
fs/afs/fsclient.c
536
const struct qstr *name = &op->dentry->d_name;
fs/afs/fsclient.c
590
const struct qstr *name = &op->dentry->d_name;
fs/afs/fsclient.c
670
const struct qstr *name = &op->dentry->d_name;
fs/afs/fsclient.c
718
const struct qstr *name = &op->dentry->d_name;
fs/afs/fsclient.c
796
const struct qstr *name = &op->dentry->d_name;
fs/afs/fsclient.c
878
const struct qstr *name = &op->dentry->d_name;
fs/afs/fsclient.c
975
const struct qstr *orig_name = &op->dentry->d_name;
fs/afs/inode.c
100
content = afs_get_link(dentry, d_inode(dentry), &done);
fs/afs/inode.c
54
const char *afs_get_link(struct dentry *dentry, struct inode *inode,
fs/afs/inode.c
62
if (!dentry) {
fs/afs/inode.c
681
struct inode *inode = d_inode(path->dentry);
fs/afs/inode.c
838
int afs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/afs/inode.c
845
struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry));
fs/afs/inode.c
851
vnode->fid.vid, vnode->fid.vnode, dentry,
fs/afs/inode.c
94
int afs_readlink(struct dentry *dentry, char __user *buffer, int buflen)
fs/afs/internal.h
1105
extern void afs_d_release(struct dentry *);
fs/afs/internal.h
1135
struct dentry *, struct key *);
fs/afs/internal.h
1136
extern int afs_silly_iput(struct dentry *, struct inode *);
fs/afs/internal.h
1251
const char *afs_get_link(struct dentry *dentry, struct inode *inode,
fs/afs/internal.h
1253
int afs_readlink(struct dentry *dentry, char __user *buffer, int buflen);
fs/afs/internal.h
1261
extern int afs_setattr(struct mnt_idmap *idmap, struct dentry *, struct iattr *);
fs/afs/internal.h
1281
static inline struct afs_net *afs_d2net(struct dentry *dentry)
fs/afs/internal.h
1283
return afs_sb2net(dentry->d_sb);
fs/afs/internal.h
1755
struct dentry *dentry)
fs/afs/internal.h
1758
dentry->d_fsdata =
fs/afs/internal.h
874
struct dentry *dentry; /* Dentry to be altered */
fs/afs/internal.h
875
struct dentry *dentry_2; /* Second dentry to be altered */
fs/afs/internal.h
897
struct dentry *rehash;
fs/afs/internal.h
898
struct dentry *tmp;
fs/afs/mntpt.c
159
static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
fs/afs/mntpt.c
188
_enter("{%pd}", path->dentry);
fs/afs/mntpt.c
190
newmnt = afs_mntpt_do_automount(path->dentry);
fs/afs/mntpt.c
20
static struct dentry *afs_mntpt_lookup(struct inode *dir,
fs/afs/mntpt.c
21
struct dentry *dentry,
fs/afs/mntpt.c
51
static struct dentry *afs_mntpt_lookup(struct inode *dir,
fs/afs/mntpt.c
52
struct dentry *dentry,
fs/afs/mntpt.c
55
_enter("%p,%p{%pd2}", dir, dentry, dentry);
fs/afs/mntpt.c
71
static int afs_mntpt_set_params(struct fs_context *fc, struct dentry *mntpt)
fs/afs/super.c
156
static int afs_show_devname(struct seq_file *m, struct dentry *root)
fs/afs/super.c
190
static int afs_show_options(struct seq_file *m, struct dentry *root)
fs/afs/super.c
37
static int afs_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/afs/super.c
38
static int afs_show_devname(struct seq_file *m, struct dentry *root);
fs/afs/super.c
39
static int afs_show_options(struct seq_file *m, struct dentry *root);
fs/afs/super.c
744
static int afs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/afs/super.c
746
struct afs_super_info *as = AFS_FS_S(dentry->d_sb);
fs/afs/super.c
748
struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry));
fs/afs/super.c
750
buf->f_type = dentry->d_sb->s_magic;
fs/afs/xattr.c
101
struct dentry *dentry,
fs/afs/xattr.c
139
struct dentry *dentry,
fs/afs/xattr.c
232
struct dentry *dentry,
fs/afs/xattr.c
269
struct dentry *dentry,
fs/afs/xattr.c
296
struct dentry *dentry,
fs/afs/xattr.c
334
struct dentry *dentry,
fs/afs/xattr.c
37
struct dentry *dentry,
fs/afs/yfsclient.c
1038
const struct qstr *orig_name = &op->dentry->d_name;
fs/afs/yfsclient.c
1193
const struct qstr *orig_name = &op->dentry->d_name;
fs/afs/yfsclient.c
1239
const struct qstr *orig_name = &op->dentry->d_name;
fs/afs/yfsclient.c
1283
const struct qstr *orig_name = &op->dentry->d_name;
fs/afs/yfsclient.c
551
const struct qstr *name = &op->dentry->d_name;
fs/afs/yfsclient.c
602
const struct qstr *name = &op->dentry->d_name;
fs/afs/yfsclient.c
694
const struct qstr *name = &op->dentry->d_name;
fs/afs/yfsclient.c
762
const struct qstr *name = &op->dentry->d_name;
fs/afs/yfsclient.c
807
const struct qstr *name = &op->dentry->d_name;
fs/afs/yfsclient.c
877
const struct qstr *name = &op->dentry->d_name;
fs/afs/yfsclient.c
954
const struct qstr *name = &op->dentry->d_name;
fs/anon_inodes.c
53
struct inode *inode = d_inode(path->dentry);
fs/anon_inodes.c
60
int anon_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/anon_inodes.c
74
static char *anon_inodefs_dname(struct dentry *dentry, char *buffer, int buflen)
fs/anon_inodes.c
77
dentry->d_name.name);
fs/attr.c
161
int setattr_prepare(struct mnt_idmap *idmap, struct dentry *dentry,
fs/attr.c
164
struct inode *inode = d_inode(dentry);
fs/attr.c
229
error = security_inode_killpriv(idmap, dentry);
fs/attr.c
427
int notify_change(struct mnt_idmap *idmap, struct dentry *dentry,
fs/attr.c
430
struct inode *inode = dentry->d_inode;
fs/attr.c
481
error = security_inode_need_killpriv(dentry);
fs/attr.c
540
error = security_inode_setattr(idmap, dentry, attr);
fs/attr.c
556
error = inode->i_op->setattr(idmap, dentry, attr);
fs/attr.c
558
error = simple_setattr(idmap, dentry, attr);
fs/attr.c
561
fsnotify_change(dentry, ia_valid);
fs/attr.c
562
security_inode_post_setattr(idmap, dentry, ia_valid);
fs/autofs/autofs_i.h
145
static inline struct autofs_info *autofs_dentry_ino(struct dentry *dentry)
fs/autofs/autofs_i.h
147
return (struct autofs_info *)(dentry->d_fsdata);
fs/autofs/autofs_i.h
169
int is_autofs_dentry(struct dentry *);
fs/autofs/autofs_i.h
193
static inline void __managed_dentry_set_managed(struct dentry *dentry)
fs/autofs/autofs_i.h
195
dentry->d_flags |= (DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT);
fs/autofs/autofs_i.h
198
static inline void managed_dentry_set_managed(struct dentry *dentry)
fs/autofs/autofs_i.h
200
spin_lock(&dentry->d_lock);
fs/autofs/autofs_i.h
201
__managed_dentry_set_managed(dentry);
fs/autofs/autofs_i.h
202
spin_unlock(&dentry->d_lock);
fs/autofs/autofs_i.h
205
static inline void __managed_dentry_clear_managed(struct dentry *dentry)
fs/autofs/autofs_i.h
207
dentry->d_flags &= ~(DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT);
fs/autofs/autofs_i.h
210
static inline void managed_dentry_clear_managed(struct dentry *dentry)
fs/autofs/autofs_i.h
212
spin_lock(&dentry->d_lock);
fs/autofs/autofs_i.h
213
__managed_dentry_clear_managed(dentry);
fs/autofs/autofs_i.h
214
spin_unlock(&dentry->d_lock);
fs/autofs/autofs_i.h
269
static inline void __autofs_add_expiring(struct dentry *dentry)
fs/autofs/autofs_i.h
271
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/autofs_i.h
272
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/autofs_i.h
280
static inline void autofs_add_expiring(struct dentry *dentry)
fs/autofs/autofs_i.h
282
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/autofs_i.h
283
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/autofs_i.h
293
static inline void autofs_del_expiring(struct dentry *dentry)
fs/autofs/autofs_i.h
295
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/autofs_i.h
296
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/autofs_i.h
59
struct dentry *dentry;
fs/autofs/dev-ioctl.c
200
while (path.dentry == path.mnt->mnt_root) {
fs/autofs/dev-ioctl.c
201
if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) {
fs/autofs/dev-ioctl.c
218
return path->dentry->d_sb->s_dev == *(dev_t *)p;
fs/autofs/dev-ioctl.c
223
struct autofs_info *ino = autofs_dentry_ino(path->dentry);
fs/autofs/dev-ioctl.c
427
struct dentry *base = fp->f_path.dentry;
fs/autofs/dev-ioctl.c
429
struct dentry *dentry;
fs/autofs/dev-ioctl.c
435
dentry = try_lookup_noperm(&QSTR_LEN(param->path, path_len),
fs/autofs/dev-ioctl.c
437
if (IS_ERR_OR_NULL(dentry))
fs/autofs/dev-ioctl.c
438
return dentry ? PTR_ERR(dentry) : -ENOENT;
fs/autofs/dev-ioctl.c
439
ino = autofs_dentry_ino(dentry);
fs/autofs/dev-ioctl.c
441
dput(dentry);
fs/autofs/dev-ioctl.c
475
dput(dentry);
fs/autofs/dev-ioctl.c
508
ino = autofs_dentry_ino(path.dentry);
fs/autofs/dev-ioctl.c
600
devid = new_encode_dev(path.dentry->d_sb->s_dev);
fs/autofs/dev-ioctl.c
602
if (path.mnt->mnt_root == path.dentry) {
fs/autofs/dev-ioctl.c
604
magic = path.dentry->d_sb->s_magic;
fs/autofs/dev-ioctl.c
618
magic = path.dentry->d_sb->s_magic;
fs/autofs/expire.c
11
static inline int autofs_can_expire(struct dentry *dentry,
fs/autofs/expire.c
112
static struct dentry *get_next_positive_dentry(struct dentry *prev,
fs/autofs/expire.c
113
struct dentry *root)
fs/autofs/expire.c
116
struct dentry *p = prev, *ret = NULL, *d = NULL;
fs/autofs/expire.c
124
struct dentry *parent;
fs/autofs/expire.c
14
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/expire.c
148
struct dentry *top,
fs/autofs/expire.c
180
struct dentry *top,
fs/autofs/expire.c
185
struct dentry *p;
fs/autofs/expire.c
238
static struct dentry *autofs_check_leaves(struct vfsmount *mnt,
fs/autofs/expire.c
239
struct dentry *parent,
fs/autofs/expire.c
243
struct dentry *p;
fs/autofs/expire.c
271
static struct dentry *autofs_expire_direct(struct super_block *sb,
fs/autofs/expire.c
276
struct dentry *root = dget(sb->s_root);
fs/autofs/expire.c
30
struct dentry *dentry, unsigned int how)
fs/autofs/expire.c
318
static struct dentry *should_expire(struct dentry *dentry,
fs/autofs/expire.c
32
struct dentry *top = dentry;
fs/autofs/expire.c
323
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/expire.c
33
struct path path = {.mnt = mnt, .dentry = dentry};
fs/autofs/expire.c
336
if (d_mountpoint(dentry)) {
fs/autofs/expire.c
337
pr_debug("checking mountpoint %p %pd\n", dentry, dentry);
fs/autofs/expire.c
340
if (autofs_mount_busy(mnt, dentry, how))
fs/autofs/expire.c
347
return dentry;
fs/autofs/expire.c
350
if (autofs_can_expire(dentry, timeout, how))
fs/autofs/expire.c
351
return dentry;
fs/autofs/expire.c
355
if (d_is_symlink(dentry)) {
fs/autofs/expire.c
356
pr_debug("checking symlink %p %pd\n", dentry, dentry);
fs/autofs/expire.c
36
pr_debug("dentry %p %pd\n", dentry, dentry);
fs/autofs/expire.c
360
return dentry;
fs/autofs/expire.c
366
if (autofs_can_expire(dentry, timeout, how))
fs/autofs/expire.c
367
return dentry;
fs/autofs/expire.c
380
if (d_count(dentry) > ino_count)
fs/autofs/expire.c
384
if (!autofs_tree_busy(mnt, dentry, timeout, how))
fs/autofs/expire.c
385
return dentry;
fs/autofs/expire.c
391
struct dentry *expired;
fs/autofs/expire.c
397
if (d_count(dentry) > ino_count)
fs/autofs/expire.c
401
expired = autofs_check_leaves(mnt, dentry, timeout, how);
fs/autofs/expire.c
403
if (expired == dentry)
fs/autofs/expire.c
404
dput(dentry);
fs/autofs/expire.c
417
static struct dentry *autofs_expire_indirect(struct super_block *sb,
fs/autofs/expire.c
423
struct dentry *root = sb->s_root;
fs/autofs/expire.c
424
struct dentry *dentry;
fs/autofs/expire.c
425
struct dentry *expired;
fs/autofs/expire.c
426
struct dentry *found;
fs/autofs/expire.c
43
if (is_autofs_dentry(path.dentry)) {
fs/autofs/expire.c
432
dentry = NULL;
fs/autofs/expire.c
433
while ((dentry = get_next_positive_subdir(dentry, root))) {
fs/autofs/expire.c
435
ino = autofs_dentry_ino(dentry);
fs/autofs/expire.c
44
struct autofs_sb_info *sbi = autofs_sbi(path.dentry->d_sb);
fs/autofs/expire.c
447
expired = should_expire(dentry, mnt, timeout, how);
fs/autofs/expire.c
467
if (expired != dentry)
fs/autofs/expire.c
468
dput(dentry);
fs/autofs/expire.c
476
if (expired != dentry)
fs/autofs/expire.c
491
struct dentry *dentry = path->dentry;
fs/autofs/expire.c
492
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/expire.c
493
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/expire.c
518
pr_debug("waiting for expire %p name=%pd\n", dentry, dentry);
fs/autofs/expire.c
525
if (d_unhashed(dentry))
fs/autofs/expire.c
543
struct dentry *dentry;
fs/autofs/expire.c
551
dentry = autofs_expire_indirect(sb, mnt, sbi, 0);
fs/autofs/expire.c
552
if (!dentry)
fs/autofs/expire.c
555
pkt.len = dentry->d_name.len;
fs/autofs/expire.c
556
memcpy(pkt.name, dentry->d_name.name, pkt.len);
fs/autofs/expire.c
563
ino = autofs_dentry_ino(dentry);
fs/autofs/expire.c
570
dput(dentry);
fs/autofs/expire.c
578
struct dentry *dentry;
fs/autofs/expire.c
582
dentry = autofs_expire_direct(sb, mnt, sbi, how);
fs/autofs/expire.c
584
dentry = autofs_expire_indirect(sb, mnt, sbi, how);
fs/autofs/expire.c
586
if (dentry) {
fs/autofs/expire.c
587
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/expire.c
588
const struct path path = { .mnt = mnt, .dentry = dentry };
fs/autofs/expire.c
601
dput(dentry);
fs/autofs/expire.c
74
static struct dentry *positive_after(struct dentry *p, struct dentry *child)
fs/autofs/expire.c
94
static struct dentry *get_next_positive_subdir(struct dentry *prev,
fs/autofs/expire.c
95
struct dentry *root)
fs/autofs/expire.c
98
struct dentry *q;
fs/autofs/inode.c
63
static int autofs_show_options(struct seq_file *m, struct dentry *root)
fs/autofs/root.c
109
static void autofs_dentry_release(struct dentry *de)
fs/autofs/root.c
131
static struct dentry *autofs_lookup_active(struct dentry *dentry)
fs/autofs/root.c
133
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
134
struct dentry *parent = dentry->d_parent;
fs/autofs/root.c
135
const struct qstr *name = &dentry->d_name;
fs/autofs/root.c
147
struct dentry *active;
fs/autofs/root.c
15
struct dentry *, const char *);
fs/autofs/root.c
151
active = ino->dentry;
fs/autofs/root.c
16
static int autofs_dir_unlink(struct inode *, struct dentry *);
fs/autofs/root.c
17
static int autofs_dir_rmdir(struct inode *, struct dentry *);
fs/autofs/root.c
18
static struct dentry *autofs_dir_mkdir(struct mnt_idmap *, struct inode *,
fs/autofs/root.c
185
static struct dentry *autofs_lookup_expiring(struct dentry *dentry,
fs/autofs/root.c
188
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
189
struct dentry *parent = dentry->d_parent;
fs/autofs/root.c
19
struct dentry *, umode_t);
fs/autofs/root.c
190
const struct qstr *name = &dentry->d_name;
fs/autofs/root.c
202
struct dentry *expiring;
fs/autofs/root.c
211
expiring = ino->dentry;
fs/autofs/root.c
247
struct autofs_sb_info *sbi = autofs_sbi(path->dentry->d_sb);
fs/autofs/root.c
248
struct autofs_info *ino = autofs_dentry_ino(path->dentry);
fs/autofs/root.c
254
pr_debug("waiting for mount name=%pd\n", path->dentry);
fs/autofs/root.c
26
static struct dentry *autofs_lookup(struct inode *,
fs/autofs/root.c
267
struct dentry *dentry = path->dentry;
fs/autofs/root.c
268
struct dentry *expiring;
fs/autofs/root.c
27
struct dentry *, unsigned int);
fs/autofs/root.c
270
expiring = autofs_lookup_expiring(dentry, rcu_walk);
fs/autofs/root.c
276
const struct path this = { .mnt = path->mnt, .dentry = expiring };
fs/autofs/root.c
289
static struct dentry *autofs_mountpoint_changed(struct path *path)
fs/autofs/root.c
291
struct dentry *dentry = path->dentry;
fs/autofs/root.c
292
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
30
static void autofs_dentry_release(struct dentry *);
fs/autofs/root.c
315
if (autofs_type_indirect(sbi->type) && d_unhashed(dentry)) {
fs/autofs/root.c
316
struct dentry *parent = dentry->d_parent;
fs/autofs/root.c
318
struct dentry *new;
fs/autofs/root.c
320
new = d_lookup(parent, &dentry->d_name);
fs/autofs/root.c
325
dput(path->dentry);
fs/autofs/root.c
326
path->dentry = new;
fs/autofs/root.c
328
return path->dentry;
fs/autofs/root.c
333
struct dentry *dentry = path->dentry;
fs/autofs/root.c
334
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
335
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
338
pr_debug("dentry=%p %pd\n", dentry, dentry);
fs/autofs/root.c
379
if (d_really_is_positive(dentry) && d_is_symlink(dentry)) {
fs/autofs/root.c
420
dentry = autofs_mountpoint_changed(path);
fs/autofs/root.c
421
if (!dentry)
fs/autofs/root.c
429
struct dentry *dentry = path->dentry;
fs/autofs/root.c
430
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
431
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
434
pr_debug("dentry=%p %pd\n", dentry, dentry);
fs/autofs/root.c
468
inode = d_inode_rcu(dentry);
fs/autofs/root.c
492
(d_really_is_positive(dentry) && d_is_symlink(dentry)))
fs/autofs/root.c
501
static struct dentry *autofs_lookup(struct inode *dir,
fs/autofs/root.c
502
struct dentry *dentry, unsigned int flags)
fs/autofs/root.c
506
struct dentry *active;
fs/autofs/root.c
508
pr_debug("name = %pd\n", dentry);
fs/autofs/root.c
511
if (dentry->d_name.len > NAME_MAX)
fs/autofs/root.c
521
active = autofs_lookup_active(dentry);
fs/autofs/root.c
531
if (!autofs_oz_mode(sbi) && !IS_ROOT(dentry->d_parent))
fs/autofs/root.c
539
spin_lock(&dentry->d_lock);
fs/autofs/root.c
541
if (IS_ROOT(dentry->d_parent) &&
fs/autofs/root.c
543
__managed_dentry_set_managed(dentry);
fs/autofs/root.c
544
dentry->d_fsdata = ino;
fs/autofs/root.c
545
ino->dentry = dentry;
fs/autofs/root.c
549
spin_unlock(&dentry->d_lock);
fs/autofs/root.c
575
struct inode *dir, struct dentry *dentry,
fs/autofs/root.c
578
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
584
pr_debug("%s <- %pd\n", symname, dentry);
fs/autofs/root.c
590
autofs_del_active(dentry);
fs/autofs/root.c
606
d_make_persistent(dentry, inode);
fs/autofs/root.c
607
p_ino = autofs_dentry_ino(dentry->d_parent);
fs/autofs/root.c
630
static int autofs_dir_unlink(struct inode *dir, struct dentry *dentry)
fs/autofs/root.c
635
p_ino = autofs_dentry_ino(dentry->d_parent);
fs/autofs/root.c
637
d_make_discardable(dentry);
fs/autofs/root.c
639
d_inode(dentry)->i_size = 0;
fs/autofs/root.c
640
clear_nlink(d_inode(dentry));
fs/autofs/root.c
645
__autofs_add_expiring(dentry);
fs/autofs/root.c
646
d_drop(dentry);
fs/autofs/root.c
663
static void autofs_set_leaf_automount_flags(struct dentry *dentry)
fs/autofs/root.c
665
struct dentry *parent;
fs/autofs/root.c
668
if (IS_ROOT(dentry->d_parent))
fs/autofs/root.c
67
static void autofs_del_active(struct dentry *dentry)
fs/autofs/root.c
671
managed_dentry_set_managed(dentry);
fs/autofs/root.c
673
parent = dentry->d_parent;
fs/autofs/root.c
680
static void autofs_clear_leaf_automount_flags(struct dentry *dentry)
fs/autofs/root.c
682
struct dentry *parent;
fs/autofs/root.c
685
if (IS_ROOT(dentry->d_parent))
fs/autofs/root.c
688
managed_dentry_clear_managed(dentry);
fs/autofs/root.c
69
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
690
parent = dentry->d_parent;
fs/autofs/root.c
698
static int autofs_dir_rmdir(struct inode *dir, struct dentry *dentry)
fs/autofs/root.c
701
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
704
pr_debug("dentry %p, removing %pd\n", dentry, dentry);
fs/autofs/root.c
710
__autofs_add_expiring(dentry);
fs/autofs/root.c
711
d_drop(dentry);
fs/autofs/root.c
715
autofs_clear_leaf_automount_flags(dentry);
fs/autofs/root.c
717
p_ino = autofs_dentry_ino(dentry->d_parent);
fs/autofs/root.c
719
d_make_discardable(dentry);
fs/autofs/root.c
72
ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
720
d_inode(dentry)->i_size = 0;
fs/autofs/root.c
721
clear_nlink(d_inode(dentry));
fs/autofs/root.c
729
static struct dentry *autofs_dir_mkdir(struct mnt_idmap *idmap,
fs/autofs/root.c
730
struct inode *dir, struct dentry *dentry,
fs/autofs/root.c
734
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
738
pr_debug("dentry %p, creating %pd\n", dentry, dentry);
fs/autofs/root.c
744
autofs_del_active(dentry);
fs/autofs/root.c
751
autofs_set_leaf_automount_flags(dentry);
fs/autofs/root.c
753
d_make_persistent(dentry, inode);
fs/autofs/root.c
754
p_ino = autofs_dentry_ino(dentry->d_parent);
fs/autofs/root.c
80
struct dentry *dentry = file->f_path.dentry;
fs/autofs/root.c
81
struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
fs/autofs/root.c
82
struct autofs_info *ino = autofs_dentry_ino(dentry);
fs/autofs/root.c
84
pr_debug("file=%p dentry=%p %pd\n", file, dentry, dentry);
fs/autofs/root.c
848
int is_autofs_dentry(struct dentry *dentry)
fs/autofs/root.c
850
return dentry && d_really_is_positive(dentry) &&
fs/autofs/root.c
851
dentry->d_op == &autofs_dentry_operations &&
fs/autofs/root.c
852
dentry->d_fsdata != NULL;
fs/autofs/symlink.c
15
if (!dentry)
fs/autofs/symlink.c
17
sbi = autofs_sbi(dentry->d_sb);
fs/autofs/symlink.c
18
ino = autofs_dentry_ino(dentry);
fs/autofs/symlink.c
21
return d_inode(dentry)->i_private;
fs/autofs/symlink.c
8
static const char *autofs_get_link(struct dentry *dentry,
fs/autofs/waitq.c
207
struct dentry *dentry = path->dentry;
fs/autofs/waitq.c
224
ino = autofs_dentry_ino(dentry);
fs/autofs/waitq.c
269
struct dentry *new = NULL;
fs/autofs/waitq.c
280
if (!IS_ROOT(dentry)) {
fs/autofs/waitq.c
281
if (d_unhashed(dentry) &&
fs/autofs/waitq.c
282
d_really_is_positive(dentry)) {
fs/autofs/waitq.c
283
struct dentry *parent = dentry->d_parent;
fs/autofs/waitq.c
285
new = d_lookup(parent, &dentry->d_name);
fs/autofs/waitq.c
287
dentry = new;
fs/autofs/waitq.c
291
this.dentry = dentry;
fs/autofs/waitq.c
306
struct dentry *dentry = path->dentry;
fs/autofs/waitq.c
329
if (d_really_is_negative(dentry)) {
fs/autofs/waitq.c
340
else if (!IS_ROOT(dentry->d_parent))
fs/autofs/waitq.c
349
if (IS_ROOT(dentry) && autofs_type_trigger(sbi->type)) {
fs/autofs/waitq.c
351
qstr.len = sprintf(name, "%p", dentry);
fs/autofs/waitq.c
353
char *p = dentry_path_raw(dentry, name, NAME_MAX);
fs/autofs/waitq.c
362
qstr.hash = full_name_hash(dentry, qstr.name, qstr.len);
fs/autofs/waitq.c
454
struct dentry *de = NULL;
fs/autofs/waitq.c
457
ino = autofs_dentry_ino(dentry);
fs/autofs/waitq.c
460
de = d_lookup(dentry->d_parent, &dentry->d_name);
fs/bad_inode.c
106
struct dentry *direntry, struct iattr *attrs)
fs/bad_inode.c
111
static ssize_t bad_inode_listxattr(struct dentry *dentry, char *buffer,
fs/bad_inode.c
117
static const char *bad_inode_get_link(struct dentry *dentry,
fs/bad_inode.c
142
static int bad_inode_atomic_open(struct inode *inode, struct dentry *dentry,
fs/bad_inode.c
157
struct dentry *dentry, struct posix_acl *acl,
fs/bad_inode.c
31
struct inode *dir, struct dentry *dentry,
fs/bad_inode.c
37
static struct dentry *bad_inode_lookup(struct inode *dir,
fs/bad_inode.c
38
struct dentry *dentry, unsigned int flags)
fs/bad_inode.c
43
static int bad_inode_link (struct dentry *old_dentry, struct inode *dir,
fs/bad_inode.c
44
struct dentry *dentry)
fs/bad_inode.c
49
static int bad_inode_unlink(struct inode *dir, struct dentry *dentry)
fs/bad_inode.c
55
struct inode *dir, struct dentry *dentry,
fs/bad_inode.c
61
static struct dentry *bad_inode_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/bad_inode.c
62
struct dentry *dentry, umode_t mode)
fs/bad_inode.c
67
static int bad_inode_rmdir (struct inode *dir, struct dentry *dentry)
fs/bad_inode.c
73
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/bad_inode.c
79
struct inode *old_dir, struct dentry *old_dentry,
fs/bad_inode.c
80
struct inode *new_dir, struct dentry *new_dentry,
fs/bad_inode.c
86
static int bad_inode_readlink(struct dentry *dentry, char __user *buffer,
fs/befs/linuxvfs.c
172
static struct dentry *
fs/befs/linuxvfs.c
173
befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/befs/linuxvfs.c
182
const char *name = dentry->d_name.name;
fs/befs/linuxvfs.c
185
dentry, dir->i_ino);
fs/befs/linuxvfs.c
203
befs_debug(sb, "<--- %s %pd not found", __func__, dentry);
fs/befs/linuxvfs.c
213
return d_splice_alias(inode, dentry);
fs/befs/linuxvfs.c
47
static struct dentry *befs_lookup(struct inode *, struct dentry *,
fs/befs/linuxvfs.c
59
static int befs_statfs(struct dentry *, struct kstatfs *);
fs/befs/linuxvfs.c
60
static int befs_show_options(struct seq_file *, struct dentry *);
fs/befs/linuxvfs.c
61
static struct dentry *befs_fh_to_dentry(struct super_block *sb,
fs/befs/linuxvfs.c
63
static struct dentry *befs_fh_to_parent(struct super_block *sb,
fs/befs/linuxvfs.c
648
static struct dentry *befs_fh_to_dentry(struct super_block *sb,
fs/befs/linuxvfs.c
65
static struct dentry *befs_get_parent(struct dentry *child);
fs/befs/linuxvfs.c
658
static struct dentry *befs_fh_to_parent(struct super_block *sb,
fs/befs/linuxvfs.c
665
static struct dentry *befs_get_parent(struct dentry *child)
fs/befs/linuxvfs.c
725
static int befs_show_options(struct seq_file *m, struct dentry *root)
fs/befs/linuxvfs.c
921
befs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/befs/linuxvfs.c
923
struct super_block *sb = dentry->d_sb;
fs/bfs/dir.c
113
err = bfs_add_entry(dir, &dentry->d_name, inode->i_ino);
fs/bfs/dir.c
121
d_instantiate(dentry, inode);
fs/bfs/dir.c
125
static struct dentry *bfs_lookup(struct inode *dir, struct dentry *dentry,
fs/bfs/dir.c
133
if (dentry->d_name.len > BFS_NAMELEN)
fs/bfs/dir.c
137
bh = bfs_find_entry(dir, &dentry->d_name, &de);
fs/bfs/dir.c
144
return d_splice_alias(inode, dentry);
fs/bfs/dir.c
147
static int bfs_link(struct dentry *old, struct inode *dir,
fs/bfs/dir.c
148
struct dentry *new)
fs/bfs/dir.c
169
static int bfs_unlink(struct inode *dir, struct dentry *dentry)
fs/bfs/dir.c
172
struct inode *inode = d_inode(dentry);
fs/bfs/dir.c
178
bh = bfs_find_entry(dir, &dentry->d_name, &de);
fs/bfs/dir.c
203
struct dentry *old_dentry, struct inode *new_dir,
fs/bfs/dir.c
204
struct dentry *new_dentry, unsigned int flags)
fs/bfs/dir.c
79
struct dentry *dentry, umode_t mode, bool excl)
fs/bfs/inode.c
236
static int bfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/bfs/inode.c
238
struct super_block *s = dentry->d_sb;
fs/binfmt_misc.c
59
struct dentry *dentry;
fs/binfmt_misc.c
695
locked_recursive_removal(e->dentry, NULL);
fs/binfmt_misc.c
772
struct dentry *dentry = simple_start_creating(sb->s_root, e->name);
fs/binfmt_misc.c
776
if (IS_ERR(dentry))
fs/binfmt_misc.c
777
return PTR_ERR(dentry);
fs/binfmt_misc.c
781
simple_done_creating(dentry);
fs/binfmt_misc.c
786
e->dentry = dentry;
fs/binfmt_misc.c
790
d_make_persistent(dentry, inode);
fs/binfmt_misc.c
795
simple_done_creating(dentry);
fs/bpf_fs_kfuncs.c
127
__bpf_kfunc int bpf_get_dentry_xattr(struct dentry *dentry, const char *name__str,
fs/bpf_fs_kfuncs.c
131
struct inode *inode = d_inode(dentry);
fs/bpf_fs_kfuncs.c
144
return __vfs_getxattr(dentry, inode, name__str, value, value_len);
fs/bpf_fs_kfuncs.c
163
struct dentry *dentry;
fs/bpf_fs_kfuncs.c
165
dentry = file_dentry(file);
fs/bpf_fs_kfuncs.c
166
return bpf_get_dentry_xattr(dentry, name__str, value_p);
fs/bpf_fs_kfuncs.c
199
int bpf_set_dentry_xattr_locked(struct dentry *dentry, const char *name__str,
fs/bpf_fs_kfuncs.c
204
struct inode *inode = d_inode(dentry);
fs/bpf_fs_kfuncs.c
218
ret = __vfs_setxattr(&nop_mnt_idmap, dentry, inode, name__str,
fs/bpf_fs_kfuncs.c
221
fsnotify_xattr(dentry);
fs/bpf_fs_kfuncs.c
247
int bpf_remove_dentry_xattr_locked(struct dentry *dentry, const char *name__str)
fs/bpf_fs_kfuncs.c
249
struct inode *inode = d_inode(dentry);
fs/bpf_fs_kfuncs.c
256
ret = __vfs_removexattr(&nop_mnt_idmap, dentry, name__str);
fs/bpf_fs_kfuncs.c
258
fsnotify_xattr(dentry);
fs/bpf_fs_kfuncs.c
286
__bpf_kfunc int bpf_set_dentry_xattr(struct dentry *dentry, const char *name__str,
fs/bpf_fs_kfuncs.c
289
struct inode *inode = d_inode(dentry);
fs/bpf_fs_kfuncs.c
293
ret = bpf_set_dentry_xattr_locked(dentry, name__str, value_p, flags);
fs/bpf_fs_kfuncs.c
312
__bpf_kfunc int bpf_remove_dentry_xattr(struct dentry *dentry, const char *name__str)
fs/bpf_fs_kfuncs.c
314
struct inode *inode = d_inode(dentry);
fs/bpf_fs_kfuncs.c
318
ret = bpf_remove_dentry_xattr_locked(dentry, name__str);
fs/btrfs/acl.c
103
int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/btrfs/acl.c
107
struct inode *inode = d_inode(dentry);
fs/btrfs/acl.h
15
struct dentry;
fs/btrfs/acl.h
18
int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/btrfs/btrfs_inode.h
555
struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry);
fs/btrfs/btrfs_inode.h
563
int btrfs_delete_subvolume(struct btrfs_inode *dir, struct dentry *dentry);
fs/btrfs/btrfs_inode.h
576
struct dentry *dentry;
fs/btrfs/export.c
106
static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh,
fs/btrfs/export.c
130
static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
fs/btrfs/export.c
152
struct dentry *btrfs_get_parent(struct dentry *child)
fs/btrfs/export.c
230
static int btrfs_get_name(struct dentry *parent, char *name,
fs/btrfs/export.c
231
struct dentry *child)
fs/btrfs/export.c
79
struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
fs/btrfs/export.h
25
struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
fs/btrfs/export.h
27
struct dentry *btrfs_get_parent(struct dentry *child);
fs/btrfs/export.h
9
struct dentry;
fs/btrfs/file.c
1559
struct dentry *dentry = file_dentry(file);
fs/btrfs/file.c
1560
struct btrfs_inode *inode = BTRFS_I(d_inode(dentry));
fs/btrfs/file.c
1731
ret = btrfs_log_dentry_safe(trans, dentry, &ctx);
fs/btrfs/inode.c
451
&args->dentry->d_name);
fs/btrfs/inode.c
4535
static int btrfs_unlink(struct inode *dir, struct dentry *dentry)
fs/btrfs/inode.c
4538
struct inode *inode = d_inode(dentry);
fs/btrfs/inode.c
4542
ret = fscrypt_setup_filename(dir, &dentry->d_name, 1, &fname);
fs/btrfs/inode.c
4554
btrfs_record_unlink_dir(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)),
fs/btrfs/inode.c
4557
ret = btrfs_unlink_inode(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)),
fs/btrfs/inode.c
4577
struct btrfs_inode *dir, struct dentry *dentry)
fs/btrfs/inode.c
4580
struct btrfs_inode *inode = BTRFS_I(d_inode(dentry));
fs/btrfs/inode.c
4591
ret = fscrypt_setup_filename(&dir->vfs_inode, &dentry->d_name, 1, &fname);
fs/btrfs/inode.c
4764
int btrfs_delete_subvolume(struct btrfs_inode *dir, struct dentry *dentry)
fs/btrfs/inode.c
4768
struct inode *inode = d_inode(dentry);
fs/btrfs/inode.c
4832
ret = btrfs_unlink_subvol(trans, dir, dentry);
fs/btrfs/inode.c
4898
d_invalidate(dentry);
fs/btrfs/inode.c
4906
static int btrfs_rmdir(struct inode *vfs_dir, struct dentry *dentry)
fs/btrfs/inode.c
4909
struct btrfs_inode *inode = BTRFS_I(d_inode(dentry));
fs/btrfs/inode.c
4923
return btrfs_delete_subvolume(dir, dentry);
fs/btrfs/inode.c
4926
ret = fscrypt_setup_filename(vfs_dir, &dentry->d_name, 1, &fname);
fs/btrfs/inode.c
4956
ret = btrfs_unlink_subvol(trans, dir, dentry);
fs/btrfs/inode.c
5479
static int btrfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/btrfs/inode.c
5482
struct inode *inode = d_inode(dentry);
fs/btrfs/inode.c
5489
ret = setattr_prepare(idmap, dentry, attr);
fs/btrfs/inode.c
5505
ret = posix_acl_chmod(idmap, dentry, inode->i_mode);
fs/btrfs/inode.c
5759
static int btrfs_inode_by_name(struct btrfs_inode *dir, struct dentry *dentry,
fs/btrfs/inode.c
5772
ret = fscrypt_setup_filename(&dir->vfs_inode, &dentry->d_name, 1, &fname);
fs/btrfs/inode.c
5813
struct dentry *dentry,
fs/btrfs/inode.c
5826
ret = fscrypt_setup_filename(&dir->vfs_inode, &dentry->d_name, 0, &fname);
fs/btrfs/inode.c
6062
struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry)
fs/btrfs/inode.c
6072
if (dentry->d_name.len > BTRFS_NAME_LEN)
fs/btrfs/inode.c
6075
ret = btrfs_inode_by_name(BTRFS_I(dir), dentry, &location, &di_type);
fs/btrfs/inode.c
6096
ret = fixup_tree_root_location(fs_info, BTRFS_I(dir), dentry,
fs/btrfs/inode.c
6126
static int btrfs_dentry_delete(const struct dentry *dentry)
fs/btrfs/inode.c
6129
struct inode *inode = d_inode(dentry);
fs/btrfs/inode.c
6131
if (!inode && !IS_ROOT(dentry))
fs/btrfs/inode.c
6132
inode = d_inode(dentry->d_parent);
fs/btrfs/inode.c
6145
static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry,
fs/btrfs/inode.c
6148
struct inode *inode = btrfs_lookup_dentry(dir, dentry);
fs/btrfs/inode.c
6152
return d_splice_alias(inode, dentry);
fs/btrfs/inode.c
6528
ret = fscrypt_setup_filename(dir, &args->dentry->d_name, 0,
fs/btrfs/inode.c
6963
static int btrfs_create_common(struct inode *dir, struct dentry *dentry,
fs/btrfs/inode.c
6970
.dentry = dentry,
fs/btrfs/inode.c
6991
d_instantiate_new(dentry, inode);
fs/btrfs/inode.c
7005
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/btrfs/inode.c
7015
return btrfs_create_common(dir, dentry, inode);
fs/btrfs/inode.c
7019
struct dentry *dentry, umode_t mode, bool excl)
fs/btrfs/inode.c
7030
return btrfs_create_common(dir, dentry, inode);
fs/btrfs/inode.c
7033
static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
fs/btrfs/inode.c
7034
struct dentry *dentry)
fs/btrfs/inode.c
7051
ret = fscrypt_setup_filename(dir, &dentry->d_name, 0, &fname);
fs/btrfs/inode.c
7104
d_instantiate(dentry, inode);
fs/btrfs/inode.c
7105
btrfs_log_new_name(trans, old_dentry, NULL, 0, dentry->d_parent);
fs/btrfs/inode.c
7115
static struct dentry *btrfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/btrfs/inode.c
7116
struct dentry *dentry, umode_t mode)
fs/btrfs/inode.c
7126
return ERR_PTR(btrfs_create_common(dir, dentry, inode));
fs/btrfs/inode.c
8237
struct inode *inode = d_inode(path->dentry);
fs/btrfs/inode.c
8277
struct dentry *old_dentry,
fs/btrfs/inode.c
8279
struct dentry *new_dentry)
fs/btrfs/inode.c
8562
struct inode *old_dir, struct dentry *old_dentry,
fs/btrfs/inode.c
8563
struct inode *new_dir, struct dentry *new_dentry,
fs/btrfs/inode.c
8569
.dentry = old_dentry,
fs/btrfs/inode.c
8842
struct dentry *old_dentry, struct inode *new_dir,
fs/btrfs/inode.c
8843
struct dentry *new_dentry, unsigned int flags)
fs/btrfs/inode.c
9030
struct dentry *dentry, const char *symname)
fs/btrfs/inode.c
9040
.dentry = dentry,
fs/btrfs/inode.c
9121
d_instantiate_new(dentry, inode);
fs/btrfs/inode.c
9378
.dentry = file->f_path.dentry,
fs/btrfs/ioctl.c
2163
struct dentry *parent = file->f_path.dentry;
fs/btrfs/ioctl.c
2164
struct dentry *dentry;
fs/btrfs/ioctl.c
2219
dentry = btrfs_get_dentry(fs_info->sb,
fs/btrfs/ioctl.c
2222
if (IS_ERR(dentry)) {
fs/btrfs/ioctl.c
2223
ret = PTR_ERR(dentry);
fs/btrfs/ioctl.c
2231
parent = btrfs_get_parent(dentry);
fs/btrfs/ioctl.c
2241
dput(dentry);
fs/btrfs/ioctl.c
2307
dentry = start_removing_killable(idmap, parent, &QSTR(subvol_name));
fs/btrfs/ioctl.c
2308
if (IS_ERR(dentry)) {
fs/btrfs/ioctl.c
2309
ret = PTR_ERR(dentry);
fs/btrfs/ioctl.c
2313
inode = d_inode(dentry);
fs/btrfs/ioctl.c
2350
ret = may_delete_dentry(idmap, dir, dentry, true);
fs/btrfs/ioctl.c
2360
ret = btrfs_delete_subvolume(BTRFS_I(dir), dentry);
fs/btrfs/ioctl.c
2363
d_delete_notify(dir, dentry);
fs/btrfs/ioctl.c
2366
end_removing(dentry);
fs/btrfs/ioctl.c
248
int btrfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/btrfs/ioctl.c
250
const struct btrfs_inode *inode = BTRFS_I(d_inode(dentry));
fs/btrfs/ioctl.c
257
struct dentry *dentry, struct file_kattr *fa)
fs/btrfs/ioctl.c
259
struct btrfs_inode *inode = BTRFS_I(d_inode(dentry));
fs/btrfs/ioctl.c
500
struct inode *dir, struct dentry *dentry,
fs/btrfs/ioctl.c
515
.dentry = dentry,
fs/btrfs/ioctl.c
682
d_instantiate_new(dentry, new_inode_args.inode);
fs/btrfs/ioctl.c
705
struct dentry *dentry, bool readonly,
fs/btrfs/ioctl.c
764
pending_snapshot->dentry = dentry;
fs/btrfs/ioctl.c
797
inode = btrfs_lookup_dentry(d_inode(dentry->d_parent), dentry);
fs/btrfs/ioctl.c
803
d_instantiate(dentry, inode);
fs/btrfs/ioctl.c
829
static noinline int btrfs_mksubvol(struct dentry *parent,
fs/btrfs/ioctl.c
837
struct dentry *dentry;
fs/btrfs/ioctl.c
841
dentry = start_creating_killable(idmap, parent, qname);
fs/btrfs/ioctl.c
842
if (IS_ERR(dentry))
fs/btrfs/ioctl.c
843
return PTR_ERR(dentry);
fs/btrfs/ioctl.c
845
ret = may_create_dentry(idmap, dir, dentry);
fs/btrfs/ioctl.c
863
ret = create_snapshot(snap_src, dir, dentry, readonly, inherit);
fs/btrfs/ioctl.c
865
ret = create_subvol(idmap, dir, dentry, inherit);
fs/btrfs/ioctl.c
868
fsnotify_mkdir(dir, dentry);
fs/btrfs/ioctl.c
872
end_creating(dentry);
fs/btrfs/ioctl.c
876
static noinline int btrfs_mksnapshot(struct dentry *parent,
fs/btrfs/ioctl.h
19
int btrfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/btrfs/ioctl.h
21
struct dentry *dentry, struct file_kattr *fa);
fs/btrfs/ioctl.h
9
struct dentry;
fs/btrfs/super.c
1060
static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry)
fs/btrfs/super.c
1062
struct btrfs_fs_info *info = btrfs_sb(dentry->d_sb);
fs/btrfs/super.c
1151
seq_printf(seq, ",subvolid=%llu", btrfs_root_id(BTRFS_I(d_inode(dentry))->root));
fs/btrfs/super.c
1153
btrfs_root_id(BTRFS_I(d_inode(dentry))->root));
fs/btrfs/super.c
1171
static struct dentry *mount_subvol(const char *subvol_name, u64 subvol_objectid,
fs/btrfs/super.c
1174
struct dentry *root;
fs/btrfs/super.c
1726
static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/btrfs/super.c
1728
struct btrfs_fs_info *fs_info = btrfs_sb(dentry->d_sb);
fs/btrfs/super.c
1827
buf->f_fsid.val[0] ^= btrfs_root_id(BTRFS_I(d_inode(dentry))->root) >> 32;
fs/btrfs/super.c
1828
buf->f_fsid.val[1] ^= btrfs_root_id(BTRFS_I(d_inode(dentry))->root);
fs/btrfs/super.c
2045
struct dentry *dentry;
fs/btrfs/super.c
2105
dentry = mount_subvol(ctx->subvol_name, ctx->subvol_objectid, mnt);
fs/btrfs/super.c
2107
if (IS_ERR(dentry))
fs/btrfs/super.c
2108
return PTR_ERR(dentry);
fs/btrfs/super.c
2110
fc->root = dentry;
fs/btrfs/super.c
2389
static int btrfs_show_devname(struct seq_file *m, struct dentry *root)
fs/btrfs/super.c
2486
static int btrfs_show_stats(struct seq_file *seq, struct dentry *root)
fs/btrfs/transaction.c
1688
&pending->dentry->d_name, 0,
fs/btrfs/transaction.h
176
struct dentry *dentry;
fs/btrfs/transaction.h
18
struct dentry;
fs/btrfs/tree-log.c
7418
struct dentry *parent,
fs/btrfs/tree-log.c
7422
struct dentry *old_parent = NULL;
fs/btrfs/tree-log.c
7456
struct dentry *parent,
fs/btrfs/tree-log.c
7540
struct dentry *parent,
fs/btrfs/tree-log.c
7667
struct dentry *dentry,
fs/btrfs/tree-log.c
7670
struct dentry *parent = dget_parent(dentry);
fs/btrfs/tree-log.c
7673
ret = btrfs_log_inode_parent(trans, BTRFS_I(d_inode(dentry)), parent,
fs/btrfs/tree-log.c
7985
struct dentry *old_dentry, struct btrfs_inode *old_dir,
fs/btrfs/tree-log.c
7986
u64 old_dir_index, struct dentry *parent)
fs/btrfs/tree-log.h
15
struct dentry;
fs/btrfs/tree-log.h
79
struct dentry *dentry,
fs/btrfs/tree-log.h
98
struct dentry *old_dentry, struct btrfs_inode *old_dir,
fs/btrfs/tree-log.h
99
u64 old_dir_index, struct dentry *parent);
fs/btrfs/volumes.c
744
struct path old = { .mnt = NULL, .dentry = NULL };
fs/btrfs/volumes.c
745
struct path new = { .mnt = NULL, .dentry = NULL };
fs/btrfs/xattr.c
262
ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/btrfs/xattr.c
266
struct inode *inode = d_inode(dentry);
fs/btrfs/xattr.c
348
struct dentry *unused, struct inode *inode,
fs/btrfs/xattr.c
357
struct dentry *unused, struct inode *inode,
fs/btrfs/xattr.c
369
struct dentry *unused,
fs/btrfs/xattr.c
399
struct dentry *unused,
fs/btrfs/xattr.c
417
struct dentry *unused, struct inode *inode,
fs/btrfs/xattr.h
11
struct dentry;
fs/btrfs/xattr.h
25
ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
fs/cachefiles/cache.c
195
.dentry = cache->mnt->mnt_root,
fs/cachefiles/cache.c
212
trace_cachefiles_vfs_error(NULL, d_inode(path.dentry), ret,
fs/cachefiles/cache.c
22
struct dentry *graveyard, *cachedir, *root;
fs/cachefiles/cache.c
45
root = path.dentry;
fs/cachefiles/daemon.c
655
if (!d_can_lookup(path.dentry))
fs/cachefiles/daemon.c
659
ret = cachefiles_cull(cache, path.dentry, args);
fs/cachefiles/daemon.c
726
if (!d_can_lookup(path.dentry))
fs/cachefiles/daemon.c
730
ret = cachefiles_check_in_use(cache, path.dentry, args);
fs/cachefiles/interface.c
147
ret = notify_change(&nop_mnt_idmap, file->f_path.dentry,
fs/cachefiles/interface.c
157
ret = notify_change(&nop_mnt_idmap, file->f_path.dentry,
fs/cachefiles/interface.c
253
cachefiles_remove_object_xattr(cache, object, file->f_path.dentry);
fs/cachefiles/interface.c
268
cachefiles_remove_object_xattr(cache, object, file->f_path.dentry);
fs/cachefiles/interface.c
431
struct dentry *fan = volume->fanout[(u8)cookie->key_hash];
fs/cachefiles/interface.c
432
struct dentry *obj;
fs/cachefiles/interface.c
434
obj = start_removing_dentry(fan, old_file->f_path.dentry);
fs/cachefiles/internal.h
280
struct dentry *dir,
fs/cachefiles/internal.h
281
struct dentry *rep,
fs/cachefiles/internal.h
286
extern struct dentry *cachefiles_get_directory(struct cachefiles_cache *cache,
fs/cachefiles/internal.h
287
struct dentry *dir,
fs/cachefiles/internal.h
290
extern void cachefiles_put_directory(struct dentry *dir);
fs/cachefiles/internal.h
292
extern int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir,
fs/cachefiles/internal.h
296
struct dentry *dir, char *filename);
fs/cachefiles/internal.h
390
struct dentry *root,
fs/cachefiles/internal.h
420
struct dentry *dentry);
fs/cachefiles/internal.h
43
struct dentry *dentry; /* The volume dentry */
fs/cachefiles/internal.h
44
struct dentry *fanout[256]; /* Fanout subdirs */
fs/cachefiles/internal.h
90
struct dentry *store; /* Directory into which live objects go */
fs/cachefiles/internal.h
91
struct dentry *graveyard; /* directory into which dead objects go */
fs/cachefiles/namei.c
126
path.dentry = dir;
fs/cachefiles/namei.c
218
void cachefiles_put_directory(struct dentry *dir)
fs/cachefiles/namei.c
231
struct dentry *dir, struct dentry *dentry,
fs/cachefiles/namei.c
236
.dentry = dir,
fs/cachefiles/namei.c
240
trace_cachefiles_unlink(object, d_inode(dentry)->i_ino, why);
fs/cachefiles/namei.c
241
ret = security_path_unlink(&path, dentry);
fs/cachefiles/namei.c
249
ret = vfs_unlink(&nop_mnt_idmap, d_backing_inode(dir), dentry, NULL);
fs/cachefiles/namei.c
269
struct dentry *dir,
fs/cachefiles/namei.c
270
struct dentry *rep,
fs/cachefiles/namei.c
273
struct dentry *grave, *trap;
fs/cachefiles/namei.c
378
path.dentry = dir;
fs/cachefiles/namei.c
380
path_to_graveyard.dentry = cache->graveyard;
fs/cachefiles/namei.c
418
struct dentry *dentry = object->file->f_path.dentry;
fs/cachefiles/namei.c
419
struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash];
fs/cachefiles/namei.c
424
dentry = start_removing_dentry(fan, dentry);
fs/cachefiles/namei.c
425
if (IS_ERR(dentry))
fs/cachefiles/namei.c
426
ret = PTR_ERR(dentry);
fs/cachefiles/namei.c
428
ret = cachefiles_unlink(volume->cache, object, fan, dentry, why);
fs/cachefiles/namei.c
429
end_removing(dentry);
fs/cachefiles/namei.c
442
struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash];
fs/cachefiles/namei.c
444
const struct path parentpath = { .mnt = cache->mnt, .dentry = fan };
fs/cachefiles/namei.c
542
struct dentry *dentry)
fs/cachefiles/namei.c
549
_enter("%pd", dentry);
fs/cachefiles/namei.c
551
if (!cachefiles_mark_inode_in_use(object, d_inode(dentry))) {
fs/cachefiles/namei.c
553
dentry, d_inode(dentry)->i_ino);
fs/cachefiles/namei.c
562
path.dentry = dentry;
fs/cachefiles/namei.c
565
trace_cachefiles_vfs_error(object, d_backing_inode(dentry),
fs/cachefiles/namei.c
576
_debug("file -> %pd positive", dentry);
fs/cachefiles/namei.c
608
cachefiles_do_unmark_inode_in_use(object, d_inode(dentry));
fs/cachefiles/namei.c
619
struct dentry *dentry, *fan = volume->fanout[(u8)object->cookie->key_hash];
fs/cachefiles/namei.c
627
dentry = lookup_one_positive_unlocked(&nop_mnt_idmap,
fs/cachefiles/namei.c
630
dentry = ERR_PTR(ret);
fs/cachefiles/namei.c
631
trace_cachefiles_lookup(object, fan, dentry);
fs/cachefiles/namei.c
632
if (IS_ERR(dentry)) {
fs/cachefiles/namei.c
633
if (dentry == ERR_PTR(-ENOENT))
fs/cachefiles/namei.c
635
if (dentry == ERR_PTR(-EIO))
fs/cachefiles/namei.c
640
if (!d_is_reg(dentry)) {
fs/cachefiles/namei.c
641
pr_err("%pd is not a file\n", dentry);
fs/cachefiles/namei.c
642
struct dentry *de = start_removing_dentry(fan, dentry);
fs/cachefiles/namei.c
649
dput(dentry);
fs/cachefiles/namei.c
655
ret = cachefiles_open_file(object, dentry);
fs/cachefiles/namei.c
656
dput(dentry);
fs/cachefiles/namei.c
675
struct dentry *dentry, *fan = volume->fanout[(u8)object->cookie->key_hash];
fs/cachefiles/namei.c
683
dentry = start_creating(&nop_mnt_idmap, fan, &QSTR(object->d_name));
fs/cachefiles/namei.c
685
dentry = ERR_PTR(ret);
fs/cachefiles/namei.c
686
if (IS_ERR(dentry)) {
fs/cachefiles/namei.c
687
trace_cachefiles_vfs_error(object, d_inode(fan), PTR_ERR(dentry),
fs/cachefiles/namei.c
689
_debug("lookup fail %ld", PTR_ERR(dentry));
fs/cachefiles/namei.c
697
while (!d_is_negative(dentry)) {
fs/cachefiles/namei.c
698
ret = cachefiles_unlink(volume->cache, object, fan, dentry,
fs/cachefiles/namei.c
703
end_creating(dentry);
fs/cachefiles/namei.c
707
dentry = start_creating(&nop_mnt_idmap, fan,
fs/cachefiles/namei.c
710
dentry = ERR_PTR(ret);
fs/cachefiles/namei.c
711
if (IS_ERR(dentry)) {
fs/cachefiles/namei.c
712
trace_cachefiles_vfs_error(object, d_inode(fan), PTR_ERR(dentry),
fs/cachefiles/namei.c
714
_debug("lookup fail %ld", PTR_ERR(dentry));
fs/cachefiles/namei.c
721
ret = vfs_link(object->file->f_path.dentry, &nop_mnt_idmap,
fs/cachefiles/namei.c
722
d_inode(fan), dentry, NULL);
fs/cachefiles/namei.c
737
end_creating(dentry);
fs/cachefiles/namei.c
747
static struct dentry *cachefiles_lookup_for_cull(struct cachefiles_cache *cache,
fs/cachefiles/namei.c
748
struct dentry *dir,
fs/cachefiles/namei.c
751
struct dentry *victim;
fs/cachefiles/namei.c
786
int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir,
fs/cachefiles/namei.c
789
struct dentry *victim;
fs/cachefiles/namei.c
84
struct dentry *cachefiles_get_directory(struct cachefiles_cache *cache,
fs/cachefiles/namei.c
843
int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir,
fs/cachefiles/namei.c
846
struct dentry *victim;
fs/cachefiles/namei.c
85
struct dentry *dir,
fs/cachefiles/namei.c
89
struct dentry *subdir;
fs/cachefiles/security.c
50
struct dentry *root)
fs/cachefiles/security.c
76
struct dentry *root,
fs/cachefiles/volume.c
100
cachefiles_put_directory(volume->dentry);
fs/cachefiles/volume.c
121
cachefiles_put_directory(volume->dentry);
fs/cachefiles/volume.c
23
struct dentry *vdentry, *fan;
fs/cachefiles/volume.c
52
volume->dentry = vdentry;
fs/cachefiles/volume.c
67
cachefiles_put_directory(volume->dentry);
fs/cachefiles/xattr.c
105
struct dentry *dentry = file->f_path.dentry;
fs/cachefiles/xattr.c
119
xlen = vfs_getxattr(&nop_mnt_idmap, dentry, cachefiles_xattr_cache, buf, tlen);
fs/cachefiles/xattr.c
162
struct dentry *dentry)
fs/cachefiles/xattr.c
170
ret = vfs_removexattr(&nop_mnt_idmap, dentry,
fs/cachefiles/xattr.c
176
trace_cachefiles_vfs_error(object, d_inode(dentry), ret,
fs/cachefiles/xattr.c
184
d_backing_inode(dentry)->i_ino, -ret);
fs/cachefiles/xattr.c
217
struct dentry *dentry = volume->dentry;
fs/cachefiles/xattr.c
233
ret = vfs_setxattr(&nop_mnt_idmap, dentry,
fs/cachefiles/xattr.c
240
trace_cachefiles_vfs_error(NULL, d_inode(dentry), ret,
fs/cachefiles/xattr.c
242
trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino,
fs/cachefiles/xattr.c
248
trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino,
fs/cachefiles/xattr.c
263
struct dentry *dentry = volume->dentry;
fs/cachefiles/xattr.c
279
xlen = vfs_getxattr(&nop_mnt_idmap, dentry, cachefiles_xattr_cache, buf, len);
fs/cachefiles/xattr.c
283
trace_cachefiles_vfs_error(NULL, d_inode(dentry), xlen,
fs/cachefiles/xattr.c
300
trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino, why);
fs/cachefiles/xattr.c
42
struct dentry *dentry;
fs/cachefiles/xattr.c
49
dentry = file->f_path.dentry;
fs/cachefiles/xattr.c
70
ret = vfs_setxattr(&nop_mnt_idmap, dentry,
fs/ceph/acl.c
90
int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ceph/acl.c
98
struct inode *inode = d_inode(dentry);
fs/ceph/caps.c
3433
struct dentry *dn, *prev = NULL;
fs/ceph/caps.c
4935
int ceph_encode_dentry_release(void **p, struct dentry *dentry,
fs/ceph/caps.c
4940
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/caps.c
4954
spin_lock(&dentry->d_lock);
fs/ceph/caps.c
4957
spin_unlock(&dentry->d_lock);
fs/ceph/caps.c
4962
spin_lock(&dentry->d_lock);
fs/ceph/caps.c
4964
int len = dentry->d_name.len;
fs/ceph/caps.c
4965
doutc(cl, "%p mds%d seq %d\n", dentry, mds,
fs/ceph/caps.c
4968
__ceph_mdsc_drop_dentry_lease(dentry);
fs/ceph/caps.c
4969
memcpy(*p, dentry->d_name.name, len);
fs/ceph/caps.c
4970
spin_unlock(&dentry->d_lock);
fs/ceph/caps.c
4979
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1023
struct dentry *dentry, const char *dest)
fs/ceph/dir.c
1035
err = ceph_wait_on_conflict_unlink(dentry);
fs/ceph/dir.c
1044
doutc(cl, "%p %llx.%llx/'%pd' to '%s'\n", dir, ceph_vinop(dir), dentry,
fs/ceph/dir.c
1052
req->r_new_inode = ceph_new_inode(dir, dentry, &mode, &as_ctx);
fs/ceph/dir.c
1076
req->r_dentry = dget(dentry);
fs/ceph/dir.c
1086
err = ceph_handle_notrace_create(dir, dentry);
fs/ceph/dir.c
1091
d_drop(dentry);
fs/ceph/dir.c
1096
static struct dentry *ceph_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/ceph/dir.c
1097
struct dentry *dentry, umode_t mode)
fs/ceph/dir.c
1103
struct dentry *ret;
fs/ceph/dir.c
1107
err = ceph_wait_on_conflict_unlink(dentry);
fs/ceph/dir.c
1115
ceph_vinop(dir), dentry, dentry);
fs/ceph/dir.c
1118
ceph_vinop(dir), dentry, dentry, mode);
fs/ceph/dir.c
1144
req->r_new_inode = ceph_new_inode(dir, dentry, &mode, &as_ctx);
fs/ceph/dir.c
1151
req->r_dentry = dget(dentry);
fs/ceph/dir.c
1169
err = ceph_handle_notrace_create(dir, dentry);
fs/ceph/dir.c
1172
if (!IS_ERR(ret) && req->r_dentry != dentry)
fs/ceph/dir.c
1179
dentry = ret;
fs/ceph/dir.c
1180
ceph_init_inode_acls(d_inode(dentry), &as_ctx);
fs/ceph/dir.c
1182
d_drop(dentry);
fs/ceph/dir.c
1188
static int ceph_link(struct dentry *old_dentry, struct inode *dir,
fs/ceph/dir.c
1189
struct dentry *dentry)
fs/ceph/dir.c
1196
if (dentry->d_flags & DCACHE_DISCONNECTED)
fs/ceph/dir.c
1199
err = ceph_wait_on_conflict_unlink(dentry);
fs/ceph/dir.c
1206
err = fscrypt_prepare_link(old_dentry, dir, dentry);
fs/ceph/dir.c
1211
old_dentry, dentry);
fs/ceph/dir.c
1214
d_drop(dentry);
fs/ceph/dir.c
1217
req->r_dentry = dget(dentry);
fs/ceph/dir.c
1235
d_drop(dentry);
fs/ceph/dir.c
1238
d_instantiate(dentry, d_inode(old_dentry));
fs/ceph/dir.c
1247
struct dentry *dentry = req->r_dentry;
fs/ceph/dir.c
1248
struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dentry->d_sb);
fs/ceph/dir.c
1250
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
1257
dentry, dentry);
fs/ceph/dir.c
1263
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1265
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1275
char *path = ceph_mdsc_build_path(mdsc, dentry, &path_info, 0);
fs/ceph/dir.c
1282
if (!d_unhashed(dentry))
fs/ceph/dir.c
1283
d_drop(dentry);
fs/ceph/dir.c
1297
static int get_caps_for_async_unlink(struct inode *dir, struct dentry *dentry)
fs/ceph/dir.c
130
static struct dentry *
fs/ceph/dir.c
131
__dcache_find_get_entry(struct dentry *parent, u64 idx,
fs/ceph/dir.c
1314
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1315
di = ceph_dentry(dentry);
fs/ceph/dir.c
1323
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1336
static int ceph_unlink(struct inode *dir, struct dentry *dentry)
fs/ceph/dir.c
1341
struct inode *inode = d_inode(dentry);
fs/ceph/dir.c
1345
struct dentry *dn;
fs/ceph/dir.c
1353
dentry);
fs/ceph/dir.c
1357
ceph_vinop(dir), dentry, ceph_vinop(inode));
fs/ceph/dir.c
1358
op = d_is_dir(dentry) ?
fs/ceph/dir.c
136
struct dentry *dentry;
fs/ceph/dir.c
137
unsigned idx_mask = (PAGE_SIZE / sizeof(struct dentry *)) - 1;
fs/ceph/dir.c
138
loff_t ptr_pos = idx * sizeof(struct dentry *);
fs/ceph/dir.c
1393
req->r_dentry = dget(dentry);
fs/ceph/dir.c
1402
(req->r_dir_caps = get_caps_for_async_unlink(dir, dentry))) {
fs/ceph/dir.c
1403
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
1406
ceph_vinop(dir), dentry,
fs/ceph/dir.c
1410
req->r_old_inode = d_inode(dentry);
fs/ceph/dir.c
1413
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1415
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1419
dentry->d_name.hash);
fs/ceph/dir.c
1441
d_delete(dentry);
fs/ceph/dir.c
1447
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1449
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1461
d_delete(dentry);
fs/ceph/dir.c
1470
struct dentry *old_dentry, struct inode *new_dir,
fs/ceph/dir.c
1471
struct dentry *new_dentry, unsigned int flags)
fs/ceph/dir.c
1550
struct dentry *dn = di->dentry;
fs/ceph/dir.c
1584
struct dentry *dn = di->dentry;
fs/ceph/dir.c
1621
mdsc = ceph_sb_to_fs_client(di->dentry->d_sb)->mdsc;
fs/ceph/dir.c
1641
static int __dir_lease_check(const struct dentry *, struct ceph_lease_walk_control *);
fs/ceph/dir.c
1642
static int __dentry_lease_check(const struct dentry *);
fs/ceph/dir.c
1649
struct dentry *dentry, *last = NULL;
fs/ceph/dir.c
165
dentry = cache_ctl->dentries[cache_ctl->index];
fs/ceph/dir.c
1662
dentry = di->dentry;
fs/ceph/dir.c
1663
if (last == dentry)
fs/ceph/dir.c
1666
if (!spin_trylock(&dentry->d_lock))
fs/ceph/dir.c
1669
if (__lockref_is_dead(&dentry->d_lockref)) {
fs/ceph/dir.c
167
dentry = NULL;
fs/ceph/dir.c
1675
ret = __dir_lease_check(dentry, lwc);
fs/ceph/dir.c
1677
ret = __dentry_lease_check(dentry);
fs/ceph/dir.c
1682
last = dentry;
fs/ceph/dir.c
1687
if (dentry->d_lockref.count > 0) {
fs/ceph/dir.c
169
if (dentry && !lockref_get_not_dead(&dentry->d_lockref))
fs/ceph/dir.c
1696
dget_dlock(dentry);
fs/ceph/dir.c
170
dentry = NULL;
fs/ceph/dir.c
1700
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1709
dentry = di->dentry;
fs/ceph/dir.c
1710
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
172
return dentry ? : ERR_PTR(-EAGAIN);
fs/ceph/dir.c
1727
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1729
dput(dentry);
fs/ceph/dir.c
1734
static int __dentry_lease_check(const struct dentry *dentry)
fs/ceph/dir.c
1736
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
1741
ret = __dir_lease_try_check(dentry);
fs/ceph/dir.c
1749
static int __dir_lease_check(const struct dentry *dentry,
fs/ceph/dir.c
1752
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
1754
int ret = __dir_lease_try_check(dentry);
fs/ceph/dir.c
1765
if (dentry->d_lockref.count > 0 ||
fs/ceph/dir.c
1810
void ceph_invalidate_dentry_lease(struct dentry *dentry)
fs/ceph/dir.c
1812
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
1813
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1818
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1849
static int dentry_lease_is_valid(struct dentry *dentry, unsigned int flags)
fs/ceph/dir.c
1853
struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(dentry->d_sb)->mdsc;
fs/ceph/dir.c
1858
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1859
di = ceph_dentry(dentry);
fs/ceph/dir.c
1880
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1883
ceph_mdsc_lease_send_msg(session, dentry,
fs/ceph/dir.c
1887
doutc(cl, "dentry %p = %d\n", dentry, valid);
fs/ceph/dir.c
1894
static int __dir_lease_try_check(const struct dentry *dentry)
fs/ceph/dir.c
1896
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
190
struct dentry *parent = file->f_path.dentry;
fs/ceph/dir.c
1903
if (IS_ROOT(dentry))
fs/ceph/dir.c
1906
dir = d_inode(dentry->d_parent);
fs/ceph/dir.c
1926
static int dir_lease_is_valid(struct inode *dir, struct dentry *dentry,
fs/ceph/dir.c
194
struct dentry *dentry, *last = NULL;
fs/ceph/dir.c
1943
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
1944
di = ceph_dentry(dentry);
fs/ceph/dir.c
1945
if (dir == d_inode(dentry->d_parent) &&
fs/ceph/dir.c
1950
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
1954
dentry, dentry, valid);
fs/ceph/dir.c
1962
struct dentry *dentry, unsigned int flags)
fs/ceph/dir.c
1964
struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(dentry->d_sb)->mdsc;
fs/ceph/dir.c
1969
valid = fscrypt_d_revalidate(dir, name, dentry, flags);
fs/ceph/dir.c
1973
inode = d_inode_rcu(dentry);
fs/ceph/dir.c
1976
dentry, dentry, inode, ceph_dentry(dentry)->offset,
fs/ceph/dir.c
1977
!!(dentry->d_flags & DCACHE_NOKEY_NAME));
fs/ceph/dir.c
1983
doutc(cl, "%p '%pd' inode %p is SNAPPED\n", dentry,
fs/ceph/dir.c
1984
dentry, inode);
fs/ceph/dir.c
1989
valid = dentry_lease_is_valid(dentry, flags);
fs/ceph/dir.c
1992
if (valid || dir_lease_is_valid(dir, dentry, mdsc)) {
fs/ceph/dir.c
2014
req->r_dentry = dget(dentry);
fs/ceph/dir.c
2029
if (d_really_is_positive(dentry) &&
fs/ceph/dir.c
2030
d_inode(dentry) == req->r_target_inode)
fs/ceph/dir.c
2034
if (d_really_is_negative(dentry))
fs/ceph/dir.c
2041
doutc(cl, "%p '%pd', lookup result=%d\n", dentry,
fs/ceph/dir.c
2042
dentry, err);
fs/ceph/dir.c
2048
doutc(cl, "%p '%pd' %s\n", dentry, dentry, valid ? "valid" : "invalid");
fs/ceph/dir.c
205
u64 count = div_u64(i_size_read(dir), sizeof(struct dentry *));
fs/ceph/dir.c
2059
static int ceph_d_delete(const struct dentry *dentry)
fs/ceph/dir.c
2064
if (d_really_is_negative(dentry))
fs/ceph/dir.c
2066
if (ceph_snap(d_inode(dentry)) != CEPH_NOSNAP)
fs/ceph/dir.c
2069
di = ceph_dentry(dentry);
fs/ceph/dir.c
2073
if (__dir_lease_try_check(dentry))
fs/ceph/dir.c
208
dentry = __dcache_find_get_entry(parent, idx + step,
fs/ceph/dir.c
2082
static void ceph_d_release(struct dentry *dentry)
fs/ceph/dir.c
2084
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
2085
struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dentry->d_sb);
fs/ceph/dir.c
2087
doutc(fsc->client, "dentry %p '%pd'\n", dentry, dentry);
fs/ceph/dir.c
2091
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
2093
dentry->d_fsdata = NULL;
fs/ceph/dir.c
2094
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
210
if (!dentry) {
fs/ceph/dir.c
2106
static void ceph_d_prune(struct dentry *dentry)
fs/ceph/dir.c
2108
struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb);
fs/ceph/dir.c
2113
doutc(cl, "dentry %p '%pd'\n", dentry, dentry);
fs/ceph/dir.c
2116
if (IS_ROOT(dentry))
fs/ceph/dir.c
2120
dir_ci = ceph_inode(d_inode(dentry->d_parent));
fs/ceph/dir.c
2125
if (d_really_is_negative(dentry))
fs/ceph/dir.c
2129
if (!d_unhashed(dentry)) {
fs/ceph/dir.c
2137
di = ceph_dentry(dentry);
fs/ceph/dir.c
215
if (IS_ERR(dentry)) {
fs/ceph/dir.c
216
err = PTR_ERR(dentry);
fs/ceph/dir.c
219
di = ceph_dentry(dentry);
fs/ceph/dir.c
2199
unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn)
fs/ceph/dir.c
220
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
227
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
228
dput(dentry);
fs/ceph/dir.c
238
dentry = __dcache_find_get_entry(parent, idx++, &cache_ctl);
fs/ceph/dir.c
239
if (!dentry) {
fs/ceph/dir.c
244
if (IS_ERR(dentry)) {
fs/ceph/dir.c
245
err = PTR_ERR(dentry);
fs/ceph/dir.c
249
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
250
di = ceph_dentry(dentry);
fs/ceph/dir.c
251
if (d_unhashed(dentry) ||
fs/ceph/dir.c
252
d_really_is_negative(dentry) ||
fs/ceph/dir.c
254
((dentry->d_flags & DCACHE_NOKEY_NAME) &&
fs/ceph/dir.c
256
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
257
dput(dentry);
fs/ceph/dir.c
265
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
269
dentry, dentry, d_inode(dentry));
fs/ceph/dir.c
271
if (!dir_emit(ctx, dentry->d_name.name,
fs/ceph/dir.c
272
dentry->d_name.len, ceph_present_inode(d_inode(dentry)),
fs/ceph/dir.c
273
d_inode(dentry)->i_mode >> 12)) {
fs/ceph/dir.c
274
dput(dentry);
fs/ceph/dir.c
282
last = dentry;
fs/ceph/dir.c
284
dput(dentry);
fs/ceph/dir.c
34
static int __dir_lease_try_check(const struct dentry *dentry);
fs/ceph/dir.c
346
struct dentry *dentry = file->f_path.dentry;
fs/ceph/dir.c
348
spin_lock(&dentry->d_lock);
fs/ceph/dir.c
349
ino = ceph_present_inode(dentry->d_parent->d_inode);
fs/ceph/dir.c
350
spin_unlock(&dentry->d_lock);
fs/ceph/dir.c
39
static int ceph_d_init(struct dentry *dentry)
fs/ceph/dir.c
42
struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb);
fs/ceph/dir.c
455
req->r_dentry = dget(file->f_path.dentry);
fs/ceph/dir.c
48
di->dentry = dentry;
fs/ceph/dir.c
51
dentry->d_fsdata = di;
fs/ceph/dir.c
622
sizeof(struct dentry*));
fs/ceph/dir.c
722
struct dentry *ceph_handle_snapdir(struct ceph_mds_request *req,
fs/ceph/dir.c
723
struct dentry *dentry)
fs/ceph/dir.c
725
struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dentry->d_sb);
fs/ceph/dir.c
726
struct inode *parent = d_inode(dentry->d_parent); /* we hold i_rwsem */
fs/ceph/dir.c
731
strcmp(dentry->d_name.name, fsc->mount_options->snapdir_name) == 0) {
fs/ceph/dir.c
732
struct dentry *res;
fs/ceph/dir.c
735
res = d_splice_alias(inode, dentry);
fs/ceph/dir.c
738
dentry, dentry, inode, ceph_vinop(inode), res);
fs/ceph/dir.c
740
dentry = res;
fs/ceph/dir.c
742
return dentry;
fs/ceph/dir.c
756
struct dentry *ceph_finish_lookup(struct ceph_mds_request *req,
fs/ceph/dir.c
757
struct dentry *dentry, int err)
fs/ceph/dir.c
767
dentry, ceph_vinop(d_inode(dentry)));
fs/ceph/dir.c
768
if (d_really_is_positive(dentry)) {
fs/ceph/dir.c
769
d_drop(dentry);
fs/ceph/dir.c
772
d_add(dentry, NULL);
fs/ceph/dir.c
777
dentry = ERR_PTR(err);
fs/ceph/dir.c
778
else if (dentry != req->r_dentry)
fs/ceph/dir.c
779
dentry = dget(req->r_dentry); /* we got spliced */
fs/ceph/dir.c
781
dentry = NULL;
fs/ceph/dir.c
782
return dentry;
fs/ceph/dir.c
785
static bool is_root_ceph_dentry(struct inode *inode, struct dentry *dentry)
fs/ceph/dir.c
788
strncmp(dentry->d_name.name, ".ceph", 5) == 0;
fs/ceph/dir.c
795
static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
fs/ceph/dir.c
807
dentry, dentry);
fs/ceph/dir.c
809
if (dentry->d_name.len > NAME_MAX)
fs/ceph/dir.c
815
err = fscrypt_prepare_lookup_partial(dir, dentry);
fs/ceph/dir.c
825
if (d_really_is_negative(dentry)) {
fs/ceph/dir.c
827
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/dir.c
832
if (strncmp(dentry->d_name.name,
fs/ceph/dir.c
834
dentry->d_name.len) &&
fs/ceph/dir.c
835
!is_root_ceph_dentry(dir, dentry) &&
fs/ceph/dir.c
843
d_add(dentry, NULL);
fs/ceph/dir.c
855
req->r_dentry = dget(dentry);
fs/ceph/dir.c
868
struct dentry *res;
fs/ceph/dir.c
870
res = ceph_handle_snapdir(req, dentry);
fs/ceph/dir.c
874
dentry = res;
fs/ceph/dir.c
878
dentry = ceph_finish_lookup(req, dentry, err);
fs/ceph/dir.c
880
doutc(cl, "result=%p\n", dentry);
fs/ceph/dir.c
881
return dentry;
fs/ceph/dir.c
888
int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry)
fs/ceph/dir.c
890
struct dentry *result = ceph_lookup(dir, dentry, 0);
fs/ceph/dir.c
912
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/ceph/dir.c
923
err = ceph_wait_on_conflict_unlink(dentry);
fs/ceph/dir.c
933
dir, ceph_vinop(dir), dentry, dentry, mode, rdev);
fs/ceph/dir.c
940
req->r_new_inode = ceph_new_inode(dir, dentry, &mode, &as_ctx);
fs/ceph/dir.c
950
req->r_dentry = dget(dentry);
fs/ceph/dir.c
966
err = ceph_handle_notrace_create(dir, dentry);
fs/ceph/dir.c
971
ceph_init_inode_acls(d_inode(dentry), &as_ctx);
fs/ceph/dir.c
973
d_drop(dentry);
fs/ceph/dir.c
979
struct dentry *dentry, umode_t mode, bool excl)
fs/ceph/dir.c
981
return ceph_mknod(idmap, dir, dentry, mode, 0);
fs/ceph/export.c
189
static struct dentry *__fh_to_dentry(struct super_block *sb, u64 ino)
fs/ceph/export.c
211
static struct dentry *__snapfh_to_dentry(struct super_block *sb,
fs/ceph/export.c
301
static struct dentry *ceph_fh_to_dentry(struct super_block *sb,
fs/ceph/export.c
323
static struct dentry *__get_parent(struct super_block *sb,
fs/ceph/export.c
324
struct dentry *child, u64 ino)
fs/ceph/export.c
369
static struct dentry *ceph_get_parent(struct dentry *child)
fs/ceph/export.c
373
struct dentry *dn;
fs/ceph/export.c
420
static struct dentry *ceph_fh_to_parent(struct super_block *sb,
fs/ceph/export.c
426
struct dentry *dentry;
fs/ceph/export.c
439
dentry = __get_parent(sb, NULL, cfh->ino);
fs/ceph/export.c
440
if (unlikely(dentry == ERR_PTR(-ENOENT)))
fs/ceph/export.c
441
dentry = __fh_to_dentry(sb, cfh->parent_ino);
fs/ceph/export.c
442
return dentry;
fs/ceph/export.c
445
static int __get_snap_name(struct dentry *parent, char *name,
fs/ceph/export.c
446
struct dentry *child)
fs/ceph/export.c
548
static int ceph_get_name(struct dentry *parent, char *name,
fs/ceph/export.c
549
struct dentry *child)
fs/ceph/export.c
63
struct dentry *dentry = d_find_alias(inode);
fs/ceph/export.c
64
if (!dentry)
fs/ceph/export.c
68
dir = d_inode_rcu(dentry->d_parent);
fs/ceph/export.c
71
sfh->hash = ceph_dentry_hash(dir, dentry);
fs/ceph/export.c
75
dput(dentry);
fs/ceph/file.c
369
struct dentry *dentry;
fs/ceph/file.c
396
dentry = d_find_alias(inode);
fs/ceph/file.c
397
if (!dentry) {
fs/ceph/file.c
401
path = ceph_mdsc_build_path(mdsc, dentry, &path_info, 0);
fs/ceph/file.c
409
dput(dentry);
fs/ceph/file.c
505
static int try_prep_async_create(struct inode *dir, struct dentry *dentry,
fs/ceph/file.c
509
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/file.c
528
if (d_in_lookup(dentry)) {
fs/ceph/file.c
531
spin_lock(&dentry->d_lock);
fs/ceph/file.c
533
spin_unlock(&dentry->d_lock);
fs/ceph/file.c
600
struct dentry *dentry = req->r_dentry;
fs/ceph/file.c
601
struct inode *dinode = d_inode(dentry);
fs/ceph/file.c
624
if (!d_unhashed(dentry))
fs/ceph/file.c
625
d_drop(dentry);
fs/ceph/file.c
653
struct dentry *dentry,
fs/ceph/file.c
664
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/file.c
733
if (!d_unhashed(dentry))
fs/ceph/file.c
734
d_drop(dentry);
fs/ceph/file.c
737
struct dentry *dn;
fs/ceph/file.c
740
vino.ino, ceph_ino(dir), dentry->d_name.name);
fs/ceph/file.c
753
if (d_in_lookup(dentry) || d_really_is_negative(dentry)) {
fs/ceph/file.c
754
if (!d_unhashed(dentry))
fs/ceph/file.c
755
d_drop(dentry);
fs/ceph/file.c
756
dn = d_splice_alias(inode, dentry);
fs/ceph/file.c
757
WARN_ON_ONCE(dn && dn != dentry);
fs/ceph/file.c
760
ret = finish_open(file, dentry, ceph_open);
fs/ceph/file.c
763
spin_lock(&dentry->d_lock);
fs/ceph/file.c
765
spin_unlock(&dentry->d_lock);
fs/ceph/file.c
774
int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
fs/ceph/file.c
783
struct dentry *dn;
fs/ceph/file.c
791
dir, ceph_vinop(dir), dentry, dentry,
fs/ceph/file.c
792
d_unhashed(dentry) ? "unhashed" : "hashed", flags, mode);
fs/ceph/file.c
794
if (dentry->d_name.len > NAME_MAX)
fs/ceph/file.c
797
err = ceph_wait_on_conflict_unlink(dentry);
fs/ceph/file.c
840
new_inode = ceph_new_inode(dir, dentry, &mode, &as_ctx);
fs/ceph/file.c
849
} else if (!d_in_lookup(dentry)) {
fs/ceph/file.c
860
req->r_dentry = dget(dentry);
fs/ceph/file.c
872
err = fscrypt_prepare_lookup_partial(dir, dentry);
fs/ceph/file.c
887
try_prep_async_create(dir, dentry, &lo,
fs/ceph/file.c
891
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/file.c
906
spin_lock(&dentry->d_lock);
fs/ceph/file.c
908
spin_unlock(&dentry->d_lock);
fs/ceph/file.c
913
dentry, file,
fs/ceph/file.c
938
dentry = ceph_handle_snapdir(req, dentry);
fs/ceph/file.c
939
if (IS_ERR(dentry)) {
fs/ceph/file.c
940
err = PTR_ERR(dentry);
fs/ceph/file.c
947
err = ceph_handle_notrace_create(dir, dentry);
fs/ceph/file.c
949
if (d_in_lookup(dentry)) {
fs/ceph/file.c
950
dn = ceph_finish_lookup(req, dentry, err);
fs/ceph/file.c
959
if (dn || d_really_is_negative(dentry) || d_is_symlink(dentry)) {
fs/ceph/file.c
965
!fscrypt_has_permitted_context(dir, d_inode(dentry))) {
fs/ceph/file.c
968
ceph_vinop(dir), ceph_vinop(d_inode(dentry)));
fs/ceph/file.c
974
struct inode *newino = d_inode(dentry);
fs/ceph/file.c
980
err = finish_open(file, dentry, ceph_open);
fs/ceph/inode.c
117
struct inode *ceph_new_inode(struct inode *dir, struct dentry *dentry,
fs/ceph/inode.c
1378
static void __update_dentry_lease(struct inode *dir, struct dentry *dentry,
fs/ceph/inode.c
138
err = ceph_security_init_secctx(dentry, *mode, as_ctx);
fs/ceph/inode.c
1385
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/inode.c
1391
doutc(cl, "%p duration %lu ms ttl %lu\n", dentry, duration, ttl);
fs/ceph/inode.c
1428
static inline void update_dentry_lease(struct inode *dir, struct dentry *dentry,
fs/ceph/inode.c
1434
spin_lock(&dentry->d_lock);
fs/ceph/inode.c
1435
__update_dentry_lease(dir, dentry, lease, session, from_time,
fs/ceph/inode.c
1437
spin_unlock(&dentry->d_lock);
fs/ceph/inode.c
1444
static void update_dentry_lease_careful(struct dentry *dentry,
fs/ceph/inode.c
1456
spin_lock(&dentry->d_lock);
fs/ceph/inode.c
1458
if (dentry->d_name.len != dname_len ||
fs/ceph/inode.c
1459
memcmp(dentry->d_name.name, dname, dname_len))
fs/ceph/inode.c
1462
dir = d_inode(dentry->d_parent);
fs/ceph/inode.c
1470
if (d_really_is_negative(dentry))
fs/ceph/inode.c
1472
if (!ceph_ino_compare(d_inode(dentry), ptvino))
fs/ceph/inode.c
1475
if (d_really_is_positive(dentry))
fs/ceph/inode.c
1479
__update_dentry_lease(dir, dentry, lease, session,
fs/ceph/inode.c
1482
spin_unlock(&dentry->d_lock);
fs/ceph/inode.c
1490
static int splice_dentry(struct dentry **pdn, struct inode *in)
fs/ceph/inode.c
1493
struct dentry *dn = *pdn;
fs/ceph/inode.c
1494
struct dentry *realdn;
fs/ceph/inode.c
1600
struct dentry *dn, *parent;
fs/ceph/inode.c
1710
struct dentry *dn = req->r_dentry;
fs/ceph/inode.c
1912
static int fill_readdir_cache(struct inode *dir, struct dentry *dn,
fs/ceph/inode.c
1918
unsigned nsize = PAGE_SIZE / sizeof(struct dentry*);
fs/ceph/inode.c
1961
struct dentry *parent = req->r_dentry;
fs/ceph/inode.c
1967
struct dentry *dn;
fs/ceph/inode.c
2345
static const char *ceph_encrypted_get_link(struct dentry *dentry,
fs/ceph/inode.c
2351
if (!dentry)
fs/ceph/inode.c
2546
struct dentry *dentry;
fs/ceph/inode.c
2550
dentry = d_find_alias(inode);
fs/ceph/inode.c
2551
if (!dentry) {
fs/ceph/inode.c
2555
path = ceph_mdsc_build_path(mdsc, dentry, &path_info, 0);
fs/ceph/inode.c
2563
dput(dentry);
fs/ceph/inode.c
2881
int ceph_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ceph/inode.c
2884
struct inode *inode = d_inode(dentry);
fs/ceph/inode.c
2894
err = fscrypt_prepare_setattr(dentry, attr);
fs/ceph/inode.c
2898
err = setattr_prepare(idmap, dentry, attr);
fs/ceph/inode.c
2913
err = posix_acl_chmod(idmap, dentry, attr->ia_mode);
fs/ceph/inode.c
3108
struct inode *inode = d_inode(path->dentry);
fs/ceph/mds_client.c
1261
static struct inode *get_nonsnap_parent(struct dentry *dentry)
fs/ceph/mds_client.c
1265
while (dentry && !IS_ROOT(dentry)) {
fs/ceph/mds_client.c
1266
inode = d_inode_rcu(dentry);
fs/ceph/mds_client.c
1269
dentry = dentry->d_parent;
fs/ceph/mds_client.c
1329
struct dentry *parent;
fs/ceph/mds_client.c
2130
static bool drop_negative_children(struct dentry *dentry)
fs/ceph/mds_client.c
2132
struct dentry *child;
fs/ceph/mds_client.c
2135
if (!d_is_dir(dentry))
fs/ceph/mds_client.c
2138
spin_lock(&dentry->d_lock);
fs/ceph/mds_client.c
2139
hlist_for_each_entry(child, &dentry->d_children, d_sib) {
fs/ceph/mds_client.c
2145
spin_unlock(&dentry->d_lock);
fs/ceph/mds_client.c
2148
shrink_dcache_parent(dentry);
fs/ceph/mds_client.c
2218
struct dentry *dentry;
fs/ceph/mds_client.c
2221
dentry = d_find_any_alias(inode);
fs/ceph/mds_client.c
2222
if (dentry && drop_negative_children(dentry)) {
fs/ceph/mds_client.c
2224
dput(dentry);
fs/ceph/mds_client.c
2232
dput(dentry);
fs/ceph/mds_client.c
2630
struct dentry *dentry = req->r_dentry;
fs/ceph/mds_client.c
2637
if (!dir || !dentry)
fs/ceph/mds_client.c
2653
name = &dentry->d_name;
fs/ceph/mds_client.c
2708
char *ceph_mdsc_build_path(struct ceph_mds_client *mdsc, struct dentry *dentry,
fs/ceph/mds_client.c
2712
struct dentry *cur;
fs/ceph/mds_client.c
2719
if (!dentry)
fs/ceph/mds_client.c
2730
cur = dget(dentry);
fs/ceph/mds_client.c
2732
struct dentry *parent;
fs/ceph/mds_client.c
2740
} else if (for_wire && inode && dentry != cur &&
fs/ceph/mds_client.c
2831
if (d_inode(dentry))
fs/ceph/mds_client.c
2832
path_info->vino.snap = ceph_snap(d_inode(dentry));
fs/ceph/mds_client.c
2836
doutc(cl, "on %p %d built %llx '%.*s'\n", dentry, d_count(dentry),
fs/ceph/mds_client.c
2841
static int build_dentry_path(struct ceph_mds_client *mdsc, struct dentry *dentry,
fs/ceph/mds_client.c
2849
dir = d_inode_rcu(dentry->d_parent);
fs/ceph/mds_client.c
2855
path_info->path = dentry->d_name.name;
fs/ceph/mds_client.c
2856
path_info->pathlen = dentry->d_name.len;
fs/ceph/mds_client.c
2861
path = ceph_mdsc_build_path(mdsc, dentry, path_info, 1);
fs/ceph/mds_client.c
2873
struct dentry *dentry;
fs/ceph/mds_client.c
2883
dentry = d_find_alias(inode);
fs/ceph/mds_client.c
2884
path = ceph_mdsc_build_path(mdsc, dentry, path_info, 1);
fs/ceph/mds_client.c
2885
dput(dentry);
fs/ceph/mds_client.c
2901
struct dentry *rdentry, struct inode *rdiri,
fs/ceph/mds_client.c
3006
struct dentry *old_dentry = NULL;
fs/ceph/mds_client.c
4599
static struct dentry* d_find_primary(struct inode *inode)
fs/ceph/mds_client.c
4601
struct dentry *alias, *dn = NULL;
fs/ceph/mds_client.c
4611
alias = hlist_entry(inode->i_dentry.first, struct dentry, d_u.d_alias);
fs/ceph/mds_client.c
4646
struct dentry *dentry;
fs/ceph/mds_client.c
4652
dentry = d_find_primary(inode);
fs/ceph/mds_client.c
4653
if (dentry) {
fs/ceph/mds_client.c
4655
char *path = ceph_mdsc_build_path(mdsc, dentry, &path_info,
fs/ceph/mds_client.c
4657
dput(dentry);
fs/ceph/mds_client.c
5234
void __ceph_mdsc_drop_dentry_lease(struct dentry *dentry)
fs/ceph/mds_client.c
5236
struct ceph_dentry_info *di = ceph_dentry(dentry);
fs/ceph/mds_client.c
5249
struct dentry *parent, *dentry;
fs/ceph/mds_client.c
5293
dentry = d_lookup(parent, &dname);
fs/ceph/mds_client.c
5295
if (!dentry)
fs/ceph/mds_client.c
5298
spin_lock(&dentry->d_lock);
fs/ceph/mds_client.c
5299
di = ceph_dentry(dentry);
fs/ceph/mds_client.c
5305
__ceph_mdsc_drop_dentry_lease(dentry);
fs/ceph/mds_client.c
5326
spin_unlock(&dentry->d_lock);
fs/ceph/mds_client.c
5327
dput(dentry);
fs/ceph/mds_client.c
5353
struct dentry *dentry, char action,
fs/ceph/mds_client.c
5362
doutc(cl, "identry %p %s to mds%d\n", dentry, ceph_lease_op_name(action),
fs/ceph/mds_client.c
5372
spin_lock(&dentry->d_lock);
fs/ceph/mds_client.c
5373
dir = d_inode(dentry->d_parent);
fs/ceph/mds_client.c
5377
put_unaligned_le32(dentry->d_name.len, lease + 1);
fs/ceph/mds_client.c
5379
dentry->d_name.name, dentry->d_name.len);
fs/ceph/mds_client.c
5380
spin_unlock(&dentry->d_lock);
fs/ceph/mds_client.c
837
int ceph_wait_on_conflict_unlink(struct dentry *dentry)
fs/ceph/mds_client.c
839
struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dentry->d_sb);
fs/ceph/mds_client.c
841
struct dentry *pdentry = dentry->d_parent;
fs/ceph/mds_client.c
842
struct dentry *udentry, *found = NULL;
fs/ceph/mds_client.c
845
u32 hash = dentry->d_name.hash;
fs/ceph/mds_client.c
848
dname.name = dentry->d_name.name;
fs/ceph/mds_client.c
849
dname.len = dentry->d_name.len;
fs/ceph/mds_client.c
854
udentry = di->dentry;
fs/ceph/mds_client.c
866
dentry, dentry);
fs/ceph/mds_client.c
882
doutc(cl, "dentry %p:%pd conflict with old %p:%pd\n", dentry, dentry,
fs/ceph/mds_client.h
292
struct dentry *r_dentry; /* arg1 */
fs/ceph/mds_client.h
293
struct dentry *r_old_dentry; /* arg2: rename from or link from */
fs/ceph/mds_client.h
637
struct dentry *dentry, struct ceph_path_info *path_info,
fs/ceph/mds_client.h
640
extern void __ceph_mdsc_drop_dentry_lease(struct dentry *dentry);
fs/ceph/mds_client.h
642
struct dentry *dentry, char action,
fs/ceph/mds_client.h
665
extern int ceph_wait_on_conflict_unlink(struct dentry *dentry);
fs/ceph/super.c
1047
static struct dentry *open_root_dentry(struct ceph_fs_client *fsc,
fs/ceph/super.c
1055
struct dentry *root;
fs/ceph/super.c
1140
static struct dentry *ceph_real_mount(struct ceph_fs_client *fsc,
fs/ceph/super.c
1146
struct dentry *root;
fs/ceph/super.c
1297
struct dentry *res;
fs/ceph/super.c
58
static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ceph/super.c
60
struct ceph_fs_client *fsc = ceph_inode_to_fs_client(d_inode(dentry));
fs/ceph/super.c
688
static int ceph_show_options(struct seq_file *m, struct dentry *root)
fs/ceph/super.h
1061
struct inode *ceph_new_inode(struct inode *dir, struct dentry *dentry,
fs/ceph/super.h
1133
struct dentry *dentry, struct iattr *attr);
fs/ceph/super.h
1152
extern ssize_t ceph_listxattr(struct dentry *, char *, size_t);
fs/ceph/super.h
1186
extern int ceph_security_init_secctx(struct dentry *dentry, umode_t mode,
fs/ceph/super.h
1193
static inline int ceph_security_init_secctx(struct dentry *dentry, umode_t mode,
fs/ceph/super.h
1210
struct dentry *dentry, struct posix_acl *acl, int type);
fs/ceph/super.h
1297
extern int ceph_encode_dentry_release(void **p, struct dentry *dn,
fs/ceph/super.h
1336
extern int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
fs/ceph/super.h
1353
extern int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry);
fs/ceph/super.h
1354
extern struct dentry *ceph_handle_snapdir(struct ceph_mds_request *req,
fs/ceph/super.h
1355
struct dentry *dentry);
fs/ceph/super.h
1356
extern struct dentry *ceph_finish_lookup(struct ceph_mds_request *req,
fs/ceph/super.h
1357
struct dentry *dentry, int err);
fs/ceph/super.h
1361
extern void ceph_invalidate_dentry_lease(struct dentry *dentry);
fs/ceph/super.h
1363
extern unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn);
fs/ceph/super.h
175
struct dentry *debugfs_dentry_lru, *debugfs_caps;
fs/ceph/super.h
176
struct dentry *debugfs_congestion_kb;
fs/ceph/super.h
177
struct dentry *debugfs_bdi;
fs/ceph/super.h
178
struct dentry *debugfs_mdsc, *debugfs_mdsmap;
fs/ceph/super.h
179
struct dentry *debugfs_status;
fs/ceph/super.h
180
struct dentry *debugfs_mds_sessions;
fs/ceph/super.h
181
struct dentry *debugfs_metrics_dir;
fs/ceph/super.h
330
struct dentry *dentry;
fs/ceph/super.h
777
static inline struct ceph_dentry_info *ceph_dentry(const struct dentry *dentry)
fs/ceph/super.h
779
return (struct ceph_dentry_info *)dentry->d_fsdata;
fs/ceph/super.h
935
struct dentry **dentries;
fs/ceph/xattr.c
1063
ssize_t ceph_listxattr(struct dentry *dentry, char *names, size_t size)
fs/ceph/xattr.c
1065
struct inode *inode = d_inode(dentry);
fs/ceph/xattr.c
1328
struct dentry *dentry, struct inode *inode,
fs/ceph/xattr.c
1338
struct dentry *unused, struct inode *inode,
fs/ceph/xattr.c
1375
int ceph_security_init_secctx(struct dentry *dentry, umode_t mode,
fs/ceph/xattr.c
1383
err = security_dentry_init_security(dentry, mode, &dentry->d_name,
fs/coda/cache.c
107
struct dentry *alias_de;
fs/coda/cache.c
91
static void coda_flag_children(struct dentry *parent, int flag)
fs/coda/cache.c
93
struct dentry *de;
fs/coda/coda_int.h
5
struct dentry;
fs/coda/coda_linux.h
54
int coda_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
fs/coda/coda_psdev.h
85
int venus_statfs(struct dentry *dentry, struct kstatfs *sfs);
fs/coda/dir.c
137
struct dentry *de, umode_t mode, bool excl)
fs/coda/dir.c
169
static struct dentry *coda_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/coda/dir.c
170
struct dentry *de, umode_t mode)
fs/coda/dir.c
205
static int coda_link(struct dentry *source_de, struct inode *dir_inode,
fs/coda/dir.c
206
struct dentry *de)
fs/coda/dir.c
232
struct inode *dir_inode, struct dentry *de,
fs/coda/dir.c
263
static int coda_unlink(struct inode *dir, struct dentry *de)
fs/coda/dir.c
278
static int coda_rmdir(struct inode *dir, struct dentry *de)
fs/coda/dir.c
299
struct dentry *old_dentry, struct inode *new_dir,
fs/coda/dir.c
300
struct dentry *new_dentry, unsigned int flags)
fs/coda/dir.c
41
static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsigned int flags)
fs/coda/dir.c
441
struct dentry *de, unsigned int flags)
fs/coda/dir.c
483
static int coda_dentry_delete(const struct dentry * dentry)
fs/coda/dir.c
488
if (d_really_is_negative(dentry))
fs/coda/dir.c
491
inode = d_inode(dentry);
fs/coda/inode.c
300
int err = coda_revalidate_inode(d_inode(path->dentry));
fs/coda/inode.c
303
d_inode(path->dentry), stat);
fs/coda/inode.c
307
int coda_setattr(struct mnt_idmap *idmap, struct dentry *de,
fs/coda/inode.c
336
static int coda_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/coda/inode.c
340
error = venus_statfs(dentry, buf);
fs/coda/inode.c
41
static int coda_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/coda/pioctl.c
73
target_inode = d_inode(path.dentry);
fs/coda/upcall.c
550
int venus_statfs(struct dentry *dentry, struct kstatfs *sfs)
fs/coda/upcall.c
559
error = coda_upcall(coda_vcp(dentry->d_sb), insize, &outsize, inp);
fs/configfs/configfs_internal.h
100
struct dentry *dentry, char *body);
fs/configfs/configfs_internal.h
102
static inline struct config_item * to_item(struct dentry * dentry)
fs/configfs/configfs_internal.h
104
struct configfs_dirent * sd = dentry->d_fsdata;
fs/configfs/configfs_internal.h
108
static inline struct configfs_attribute * to_attr(struct dentry * dentry)
fs/configfs/configfs_internal.h
110
struct configfs_dirent * sd = dentry->d_fsdata;
fs/configfs/configfs_internal.h
114
static inline struct configfs_bin_attribute *to_bin_attr(struct dentry *dentry)
fs/configfs/configfs_internal.h
116
struct configfs_attribute *attr = to_attr(dentry);
fs/configfs/configfs_internal.h
121
static inline struct config_item *configfs_get_config_item(struct dentry *dentry)
fs/configfs/configfs_internal.h
125
spin_lock(&dentry->d_lock);
fs/configfs/configfs_internal.h
126
if (!d_unhashed(dentry)) {
fs/configfs/configfs_internal.h
127
struct configfs_dirent * sd = dentry->d_fsdata;
fs/configfs/configfs_internal.h
130
spin_unlock(&dentry->d_lock);
fs/configfs/configfs_internal.h
39
struct dentry * s_dentry;
fs/configfs/configfs_internal.h
69
extern struct inode *configfs_create(struct dentry *, umode_t mode);
fs/configfs/configfs_internal.h
74
extern int configfs_make_dirent(struct configfs_dirent *, struct dentry *,
fs/configfs/configfs_internal.h
79
extern void configfs_drop_dentry(struct configfs_dirent *sd, struct dentry *parent);
fs/configfs/configfs_internal.h
81
struct dentry *dentry, struct iattr *iattr);
fs/configfs/configfs_internal.h
83
extern struct dentry *configfs_pin_fs(void);
fs/configfs/configfs_internal.h
95
struct inode *dir, struct dentry *dentry,
fs/configfs/configfs_internal.h
97
extern int configfs_unlink(struct inode *dir, struct dentry *dentry);
fs/configfs/configfs_internal.h
99
int configfs_create_link(struct configfs_dirent *target, struct dentry *parent,
fs/configfs/dir.c
1068
static int configfs_depend_prep(struct dentry *origin,
fs/configfs/dir.c
1098
static int configfs_do_depend_item(struct dentry *subsys_dentry,
fs/configfs/dir.c
1148
struct dentry *root;
fs/configfs/dir.c
1288
static struct dentry *configfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/configfs/dir.c
1289
struct dentry *dentry, umode_t mode)
fs/configfs/dir.c
1303
sd = dentry->d_parent->d_fsdata;
fs/configfs/dir.c
1326
parent_item = configfs_get_config_item(dentry->d_parent);
fs/configfs/dir.c
1353
name = kmalloc(dentry->d_name.len + 1, GFP_KERNEL);
fs/configfs/dir.c
1359
snprintf(name, dentry->d_name.len + 1, "%s", dentry->d_name.name);
fs/configfs/dir.c
1427
ret = configfs_attach_group(parent_item, item, dentry, frag);
fs/configfs/dir.c
1429
ret = configfs_attach_item(parent_item, item, dentry, frag);
fs/configfs/dir.c
1434
configfs_dir_set_ready(dentry->d_fsdata);
fs/configfs/dir.c
1472
static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
fs/configfs/dir.c
1482
sd = dentry->d_fsdata;
fs/configfs/dir.c
1487
parent_item = configfs_get_config_item(dentry->d_parent);
fs/configfs/dir.c
1505
struct dentry *wait;
fs/configfs/dir.c
1516
ret = configfs_detach_prep(dentry, &wait);
fs/configfs/dir.c
1518
configfs_detach_rollback(dentry);
fs/configfs/dir.c
1539
configfs_detach_rollback(dentry);
fs/configfs/dir.c
1548
item = configfs_get_config_item(dentry);
fs/configfs/dir.c
1598
struct dentry * dentry = file->f_path.dentry;
fs/configfs/dir.c
1599
struct configfs_dirent * parent_sd = dentry->d_fsdata;
fs/configfs/dir.c
1602
inode_lock(d_inode(dentry));
fs/configfs/dir.c
1612
inode_unlock(d_inode(dentry));
fs/configfs/dir.c
1619
struct dentry * dentry = file->f_path.dentry;
fs/configfs/dir.c
1622
inode_lock(d_inode(dentry));
fs/configfs/dir.c
1626
inode_unlock(d_inode(dentry));
fs/configfs/dir.c
1635
struct dentry *dentry = file->f_path.dentry;
fs/configfs/dir.c
1636
struct super_block *sb = dentry->d_sb;
fs/configfs/dir.c
1637
struct configfs_dirent * parent_sd = dentry->d_fsdata;
fs/configfs/dir.c
1670
dentry = next->s_dentry;
fs/configfs/dir.c
1671
if (dentry)
fs/configfs/dir.c
1672
inode = d_inode(dentry);
fs/configfs/dir.c
1697
struct dentry * dentry = file->f_path.dentry;
fs/configfs/dir.c
1713
struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c
1758
struct dentry *parent;
fs/configfs/dir.c
1802
struct dentry *dentry = group->cg_item.ci_dentry;
fs/configfs/dir.c
1803
struct dentry *parent = group->cg_item.ci_parent->ci_dentry;
fs/configfs/dir.c
1804
struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c
1813
configfs_detach_prep(dentry, NULL);
fs/configfs/dir.c
1817
d_inode(dentry)->i_flags |= S_DEAD;
fs/configfs/dir.c
1818
dont_mount(dentry);
fs/configfs/dir.c
1819
d_drop(dentry);
fs/configfs/dir.c
1820
fsnotify_rmdir(d_inode(parent), dentry);
fs/configfs/dir.c
1823
dput(dentry);
fs/configfs/dir.c
1879
struct dentry *dentry;
fs/configfs/dir.c
1880
struct dentry *root;
fs/configfs/dir.c
1905
dentry = d_alloc_name(root, group->cg_item.ci_name);
fs/configfs/dir.c
1906
if (dentry) {
fs/configfs/dir.c
1907
d_add(dentry, NULL);
fs/configfs/dir.c
1909
err = configfs_dirent_exists(dentry);
fs/configfs/dir.c
1913
dentry, frag);
fs/configfs/dir.c
1915
BUG_ON(d_inode(dentry));
fs/configfs/dir.c
1916
d_drop(dentry);
fs/configfs/dir.c
1917
dput(dentry);
fs/configfs/dir.c
1920
configfs_dir_set_ready(dentry->d_fsdata);
fs/configfs/dir.c
1941
struct dentry *dentry = group->cg_item.ci_dentry;
fs/configfs/dir.c
1942
struct dentry *root = dentry->d_sb->s_root;
fs/configfs/dir.c
1943
struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c
1946
if (dentry->d_parent != root) {
fs/configfs/dir.c
1957
inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD);
fs/configfs/dir.c
1960
if (configfs_detach_prep(dentry, NULL)) {
fs/configfs/dir.c
1966
d_inode(dentry)->i_flags |= S_DEAD;
fs/configfs/dir.c
1967
dont_mount(dentry);
fs/configfs/dir.c
1968
inode_unlock(d_inode(dentry));
fs/configfs/dir.c
1970
d_drop(dentry);
fs/configfs/dir.c
1971
fsnotify_rmdir(d_inode(root), dentry);
fs/configfs/dir.c
1975
dput(dentry);
fs/configfs/dir.c
232
static int configfs_dirent_exists(struct dentry *dentry)
fs/configfs/dir.c
234
struct configfs_dirent *parent_sd = dentry->d_parent->d_fsdata;
fs/configfs/dir.c
235
const unsigned char *new = dentry->d_name.name;
fs/configfs/dir.c
253
struct dentry * dentry, void * element,
fs/configfs/dir.c
263
sd->s_dentry = dentry;
fs/configfs/dir.c
264
if (dentry)
fs/configfs/dir.c
265
dentry->d_fsdata = configfs_get(sd);
fs/configfs/dir.c
270
static void configfs_remove_dirent(struct dentry *dentry)
fs/configfs/dir.c
272
struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c
292
static int configfs_create_dir(struct config_item *item, struct dentry *dentry,
fs/configfs/dir.c
297
struct dentry *p = dentry->d_parent;
fs/configfs/dir.c
302
error = configfs_make_dirent(p->d_fsdata, dentry, item, mode,
fs/configfs/dir.c
308
configfs_set_dir_dirent_depth(p->d_fsdata, dentry->d_fsdata);
fs/configfs/dir.c
309
inode = configfs_create(dentry, mode);
fs/configfs/dir.c
317
d_instantiate(dentry, inode);
fs/configfs/dir.c
319
dget(dentry); /* pin directory dentries in core */
fs/configfs/dir.c
321
item->ci_dentry = dentry;
fs/configfs/dir.c
325
configfs_put(dentry->d_fsdata);
fs/configfs/dir.c
326
configfs_remove_dirent(dentry);
fs/configfs/dir.c
368
int configfs_create_link(struct configfs_dirent *target, struct dentry *parent,
fs/configfs/dir.c
369
struct dentry *dentry, char *body)
fs/configfs/dir.c
376
err = configfs_make_dirent(p, dentry, target, mode, CONFIGFS_ITEM_LINK,
fs/configfs/dir.c
381
inode = configfs_create(dentry, mode);
fs/configfs/dir.c
387
d_instantiate(dentry, inode);
fs/configfs/dir.c
388
dget(dentry); /* pin link dentries in core */
fs/configfs/dir.c
392
configfs_put(dentry->d_fsdata);
fs/configfs/dir.c
393
configfs_remove_dirent(dentry);
fs/configfs/dir.c
397
static void remove_dir(struct dentry * d)
fs/configfs/dir.c
399
struct dentry * parent = dget(d->d_parent);
fs/configfs/dir.c
430
struct dentry * dentry = dget(item->ci_dentry);
fs/configfs/dir.c
432
if (!dentry)
fs/configfs/dir.c
435
remove_dir(dentry);
fs/configfs/dir.c
439
dput(dentry);
fs/configfs/dir.c
442
static struct dentry * configfs_lookup(struct inode *dir,
fs/configfs/dir.c
443
struct dentry *dentry,
fs/configfs/dir.c
446
struct configfs_dirent * parent_sd = dentry->d_parent->d_fsdata;
fs/configfs/dir.c
45
static void configfs_d_iput(struct dentry * dentry,
fs/configfs/dir.c
450
if (dentry->d_name.len > NAME_MAX)
fs/configfs/dir.c
479
!strcmp(configfs_get_name(sd), dentry->d_name.name)) {
fs/configfs/dir.c
48
struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c
483
dentry->d_fsdata = configfs_get(sd);
fs/configfs/dir.c
484
sd->s_dentry = dentry;
fs/configfs/dir.c
487
inode = configfs_create(dentry, mode);
fs/configfs/dir.c
504
d_add(dentry, inode);
fs/configfs/dir.c
516
static int configfs_detach_prep(struct dentry *dentry, struct dentry **wait)
fs/configfs/dir.c
518
struct configfs_dirent *parent_sd = dentry->d_fsdata;
fs/configfs/dir.c
563
static void configfs_detach_rollback(struct dentry *dentry)
fs/configfs/dir.c
565
struct configfs_dirent *parent_sd = dentry->d_fsdata;
fs/configfs/dir.c
577
struct dentry * dentry = dget(item->ci_dentry);
fs/configfs/dir.c
581
if (!dentry)
fs/configfs/dir.c
585
dentry->d_name.name);
fs/configfs/dir.c
587
parent_sd = dentry->d_fsdata;
fs/configfs/dir.c
59
if (sd->s_dentry == dentry)
fs/configfs/dir.c
594
configfs_drop_dentry(sd, dentry);
fs/configfs/dir.c
601
dput(dentry);
fs/configfs/dir.c
646
struct dentry *dentry,
fs/configfs/dir.c
652
struct dentry * dentry = dget(group->cg_item.ci_dentry);
fs/configfs/dir.c
653
struct dentry *child;
fs/configfs/dir.c
657
if (!dentry)
fs/configfs/dir.c
660
parent_sd = dentry->d_fsdata;
fs/configfs/dir.c
683
dput(dentry);
fs/configfs/dir.c
701
struct dentry *child, *parent = parent_group->cg_item.ci_dentry;
fs/configfs/dir.c
847
struct dentry *dentry,
fs/configfs/dir.c
852
ret = configfs_create_dir(item, dentry, frag);
fs/configfs/dir.c
861
inode_lock(d_inode(dentry));
fs/configfs/dir.c
863
d_inode(dentry)->i_flags |= S_DEAD;
fs/configfs/dir.c
864
dont_mount(dentry);
fs/configfs/dir.c
865
inode_unlock(d_inode(dentry));
fs/configfs/dir.c
866
d_delete(dentry);
fs/configfs/dir.c
882
struct dentry *dentry,
fs/configfs/dir.c
888
ret = configfs_attach_item(parent_item, item, dentry, frag);
fs/configfs/dir.c
890
sd = dentry->d_fsdata;
fs/configfs/dir.c
902
inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD);
fs/configfs/dir.c
907
d_inode(dentry)->i_flags |= S_DEAD;
fs/configfs/dir.c
908
dont_mount(dentry);
fs/configfs/dir.c
911
inode_unlock(d_inode(dentry));
fs/configfs/dir.c
913
d_delete(dentry);
fs/configfs/file.c
292
struct dentry *dentry = file->f_path.dentry;
fs/configfs/file.c
309
buffer->item = to_item(dentry->d_parent);
fs/configfs/file.c
313
attr = to_attr(dentry);
fs/configfs/file.c
318
buffer->bin_attr = to_bin_attr(dentry);
fs/configfs/file.c
449
struct dentry *dir = item->ci_dentry;
fs/configfs/file.c
471
struct dentry *dir = item->ci_dentry;
fs/configfs/file.c
51
struct configfs_dirent *sd = file->f_path.dentry->d_fsdata;
fs/configfs/inode.c
156
struct inode *configfs_create(struct dentry *dentry, umode_t mode)
fs/configfs/inode.c
162
if (!dentry)
fs/configfs/inode.c
165
if (d_really_is_positive(dentry))
fs/configfs/inode.c
168
sd = dentry->d_fsdata;
fs/configfs/inode.c
169
inode = configfs_new_inode(mode, sd, dentry->d_sb);
fs/configfs/inode.c
173
p_inode = d_inode(dentry->d_parent);
fs/configfs/inode.c
204
void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent)
fs/configfs/inode.c
206
struct dentry * dentry = sd->s_dentry;
fs/configfs/inode.c
208
if (dentry) {
fs/configfs/inode.c
209
spin_lock(&dentry->d_lock);
fs/configfs/inode.c
210
if (simple_positive(dentry)) {
fs/configfs/inode.c
211
dget_dlock(dentry);
fs/configfs/inode.c
212
__d_drop(dentry);
fs/configfs/inode.c
213
spin_unlock(&dentry->d_lock);
fs/configfs/inode.c
214
__simple_unlink(d_inode(parent), dentry);
fs/configfs/inode.c
215
dput(dentry);
fs/configfs/inode.c
217
spin_unlock(&dentry->d_lock);
fs/configfs/inode.c
35
int configfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/configfs/inode.c
38
struct inode * inode = d_inode(dentry);
fs/configfs/inode.c
39
struct configfs_dirent * sd = dentry->d_fsdata;
fs/configfs/inode.c
63
error = simple_setattr(idmap, dentry, iattr);
fs/configfs/mount.c
123
struct dentry *configfs_pin_fs(void)
fs/configfs/mount.c
66
struct dentry *root;
fs/configfs/symlink.c
105
dentry, body);
fs/configfs/symlink.c
126
if (path.dentry->d_sb != sb)
fs/configfs/symlink.c
128
*target = configfs_get_config_item(path.dentry);
fs/configfs/symlink.c
136
struct dentry *dentry, const char *symname)
fs/configfs/symlink.c
144
sd = dentry->d_parent->d_fsdata;
fs/configfs/symlink.c
152
parent_item = configfs_get_config_item(dentry->d_parent);
fs/configfs/symlink.c
185
ret = get_target(symname, &target_item, dentry->d_sb);
fs/configfs/symlink.c
190
if (dentry->d_inode || d_unhashed(dentry))
fs/configfs/symlink.c
199
ret = create_link(parent_item, target_item, dentry);
fs/configfs/symlink.c
213
int configfs_unlink(struct inode *dir, struct dentry *dentry)
fs/configfs/symlink.c
215
struct configfs_dirent *sd = dentry->d_fsdata, *target_sd;
fs/configfs/symlink.c
226
parent_item = configfs_get_config_item(dentry->d_parent);
fs/configfs/symlink.c
232
configfs_drop_dentry(sd, dentry->d_parent);
fs/configfs/symlink.c
233
dput(dentry);
fs/configfs/symlink.c
79
struct dentry *dentry)
fs/coredump.c
940
if (d_unhashed(file->f_path.dentry))
fs/coredump.c
965
if (do_truncate(idmap, file->f_path.dentry, 0, 0, file))
fs/cramfs/inode.c
678
static int cramfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/cramfs/inode.c
680
struct super_block *sb = dentry->d_sb;
fs/cramfs/inode.c
766
static struct dentry *cramfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/cramfs/inode.c
784
if (sorted && (dentry->d_name.name[0] < name[0]))
fs/cramfs/inode.c
791
if (((dentry->d_name.len + 3) & ~3) != namelen)
fs/cramfs/inode.c
803
if (namelen != dentry->d_name.len)
fs/cramfs/inode.c
805
retval = memcmp(dentry->d_name.name, name, namelen);
fs/cramfs/inode.c
818
return d_splice_alias(inode, dentry);
fs/crypto/fname.c
482
struct dentry *dentry, unsigned int flags)
fs/crypto/fname.c
491
if (!(dentry->d_flags & DCACHE_NOKEY_NAME))
fs/crypto/hooks.c
119
int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry,
fs/crypto/hooks.c
122
int err = fscrypt_setup_filename(dir, &dentry->d_name, 1, fname);
fs/crypto/hooks.c
127
fscrypt_prepare_dentry(dentry, fname->is_nokey_name);
fs/crypto/hooks.c
150
int fscrypt_prepare_lookup_partial(struct inode *dir, struct dentry *dentry)
fs/crypto/hooks.c
155
fscrypt_prepare_dentry(dentry, is_nokey_name);
fs/crypto/hooks.c
167
int __fscrypt_prepare_setattr(struct dentry *dentry, struct iattr *attr)
fs/crypto/hooks.c
170
return fscrypt_require_key(d_inode(dentry));
fs/crypto/hooks.c
35
struct dentry *dentry, *dentry_parent;
fs/crypto/hooks.c
42
dentry = file_dentry(filp);
fs/crypto/hooks.c
453
struct dentry *dentry = path->dentry;
fs/crypto/hooks.c
454
struct inode *inode = d_inode(dentry);
fs/crypto/hooks.c
465
link = inode->i_op->get_link(dentry, inode, &done);
fs/crypto/hooks.c
54
dentry_parent = READ_ONCE(dentry->d_parent);
fs/crypto/hooks.c
62
dentry_parent = dget_parent(dentry);
fs/crypto/hooks.c
75
struct dentry *dentry)
fs/crypto/hooks.c
77
if (fscrypt_is_nokey_name(dentry))
fs/crypto/hooks.c
91
int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/crypto/hooks.c
92
struct inode *new_dir, struct dentry *new_dentry,
fs/crypto/keyring.c
925
struct dentry *dentry;
fs/crypto/keyring.c
928
dentry = d_find_any_alias(inode);
fs/crypto/keyring.c
929
if (dentry) {
fs/crypto/keyring.c
930
shrink_dcache_parent(dentry);
fs/crypto/keyring.c
931
dput(dentry);
fs/d_path.c
104
static int __prepend_path(const struct dentry *dentry, const struct mount *mnt,
fs/d_path.c
107
while (dentry != root->dentry || &mnt->mnt != root->mnt) {
fs/d_path.c
108
const struct dentry *parent = READ_ONCE(dentry->d_parent);
fs/d_path.c
110
if (dentry == mnt->mnt.mnt_root) {
fs/d_path.c
115
dentry = READ_ONCE(mnt->mnt_mountpoint);
fs/d_path.c
128
if (unlikely(dentry == parent))
fs/d_path.c
133
if (!prepend_name(p, &dentry->d_name))
fs/d_path.c
135
dentry = parent;
fs/d_path.c
172
error = __prepend_path(path->dentry, real_mount(path->mnt), root, &b);
fs/d_path.c
281
if (path->dentry->d_op && path->dentry->d_op->d_dname &&
fs/d_path.c
282
(!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root))
fs/d_path.c
283
return path->dentry->d_op->d_dname(path->dentry, buf, buflen);
fs/d_path.c
287
if (unlikely(d_unlinked(path->dentry)))
fs/d_path.c
318
char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
fs/d_path.c
323
prepend(&b, dentry->d_name.name, dentry->d_name.len);
fs/d_path.c
331
static char *__dentry_path(const struct dentry *d, struct prepend_buffer *p)
fs/d_path.c
333
const struct dentry *dentry;
fs/d_path.c
339
dentry = d;
fs/d_path.c
342
while (!IS_ROOT(dentry)) {
fs/d_path.c
343
const struct dentry *parent = dentry->d_parent;
fs/d_path.c
346
if (!prepend_name(&b, &dentry->d_name))
fs/d_path.c
348
dentry = parent;
fs/d_path.c
362
char *dentry_path_raw(const struct dentry *dentry, char *buf, int buflen)
fs/d_path.c
367
return __dentry_path(dentry, &b);
fs/d_path.c
371
char *dentry_path(const struct dentry *dentry, char *buf, int buflen)
fs/d_path.c
375
if (unlikely(d_unlinked(dentry)))
fs/d_path.c
379
return __dentry_path(dentry, &b);
fs/d_path.c
424
if (unlikely(d_unlinked(pwd.dentry))) {
fs/dcache.c
1007
static struct dentry * __d_find_any_alias(struct inode *inode)
fs/dcache.c
1009
struct dentry *alias;
fs/dcache.c
1013
alias = hlist_entry(inode->i_dentry.first, struct dentry, d_u.d_alias);
fs/dcache.c
1025
struct dentry *d_find_any_alias(struct inode *inode)
fs/dcache.c
1027
struct dentry *de;
fs/dcache.c
1036
static struct dentry *__d_find_alias(struct inode *inode)
fs/dcache.c
1038
struct dentry *alias;
fs/dcache.c
1069
struct dentry *d_find_alias(struct inode *inode)
fs/dcache.c
1071
struct dentry *de = NULL;
fs/dcache.c
1086
struct dentry *d_find_alias_rcu(struct inode *inode)
fs/dcache.c
1089
struct dentry *de = NULL;
fs/dcache.c
1096
de = hlist_entry(l->first, struct dentry, d_u.d_alias);
fs/dcache.c
1117
void d_dispose_if_unused(struct dentry *dentry, struct list_head *dispose)
fs/dcache.c
1119
spin_lock(&dentry->d_lock);
fs/dcache.c
1120
if (!dentry->d_lockref.count)
fs/dcache.c
1121
to_shrink_list(dentry, dispose);
fs/dcache.c
1122
spin_unlock(&dentry->d_lock);
fs/dcache.c
1133
struct dentry *dentry;
fs/dcache.c
1136
hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias)
fs/dcache.c
1137
d_dispose_if_unused(dentry, &dispose);
fs/dcache.c
1143
static inline void shrink_kill(struct dentry *victim)
fs/dcache.c
1158
struct dentry *dentry;
fs/dcache.c
1160
dentry = list_entry(list->prev, struct dentry, d_lru);
fs/dcache.c
1161
spin_lock(&dentry->d_lock);
fs/dcache.c
1163
if (!lock_for_kill(dentry)) {
fs/dcache.c
1166
d_shrink_del(dentry);
fs/dcache.c
1167
can_free = dentry->d_flags & DCACHE_DENTRY_KILLED;
fs/dcache.c
1168
spin_unlock(&dentry->d_lock);
fs/dcache.c
1170
dentry_free(dentry);
fs/dcache.c
1173
d_shrink_del(dentry);
fs/dcache.c
1174
shrink_kill(dentry);
fs/dcache.c
1183
struct dentry *dentry = container_of(item, struct dentry, d_lru);
fs/dcache.c
1191
if (!spin_trylock(&dentry->d_lock))
fs/dcache.c
1199
if (dentry->d_lockref.count) {
fs/dcache.c
1200
d_lru_isolate(lru, dentry);
fs/dcache.c
1201
spin_unlock(&dentry->d_lock);
fs/dcache.c
1205
if (dentry->d_flags & DCACHE_REFERENCED) {
fs/dcache.c
1206
dentry->d_flags &= ~DCACHE_REFERENCED;
fs/dcache.c
1207
spin_unlock(&dentry->d_lock);
fs/dcache.c
1231
d_lru_shrink_move(lru, dentry, freeable);
fs/dcache.c
1232
spin_unlock(&dentry->d_lock);
fs/dcache.c
126
static inline struct hlist_bl_head *in_lookup_hash(const struct dentry *parent,
fs/dcache.c
1264
struct dentry *dentry = container_of(item, struct dentry, d_lru);
fs/dcache.c
1271
if (!spin_trylock(&dentry->d_lock))
fs/dcache.c
1274
d_lru_shrink_move(lru, dentry, freeable);
fs/dcache.c
1275
spin_unlock(&dentry->d_lock);
fs/dcache.c
1322
static void d_walk(struct dentry *parent, void *data,
fs/dcache.c
1323
enum d_walk_ret (*enter)(void *, struct dentry *))
fs/dcache.c
1325
struct dentry *this_parent, *dentry;
fs/dcache.c
1347
dentry = d_first_child(this_parent);
fs/dcache.c
1349
hlist_for_each_entry_from(dentry, d_sib) {
fs/dcache.c
1350
if (unlikely(dentry->d_flags & DCACHE_DENTRY_CURSOR))
fs/dcache.c
1353
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
fs/dcache.c
1355
ret = enter(data, dentry);
fs/dcache.c
1360
spin_unlock(&dentry->d_lock);
fs/dcache.c
1366
spin_unlock(&dentry->d_lock);
fs/dcache.c
1370
if (!hlist_empty(&dentry->d_children)) {
fs/dcache.c
1372
spin_release(&dentry->d_lock.dep_map, _RET_IP_);
fs/dcache.c
1373
this_parent = dentry;
fs/dcache.c
1377
spin_unlock(&dentry->d_lock);
fs/dcache.c
1385
dentry = this_parent;
fs/dcache.c
1386
this_parent = dentry->d_parent;
fs/dcache.c
1388
spin_unlock(&dentry->d_lock);
fs/dcache.c
1395
hlist_for_each_entry_continue(dentry, d_sib) {
fs/dcache.c
1396
if (likely(!(dentry->d_flags & DCACHE_DENTRY_KILLED))) {
fs/dcache.c
1428
static enum d_walk_ret path_check_mount(void *data, struct dentry *dentry)
fs/dcache.c
1431
struct path path = { .mnt = info->mnt, .dentry = dentry };
fs/dcache.c
1433
if (likely(!d_mountpoint(dentry)))
fs/dcache.c
1455
d_walk(parent->dentry, &data, path_check_mount);
fs/dcache.c
1469
int d_set_mounted(struct dentry *dentry)
fs/dcache.c
1471
struct dentry *p;
fs/dcache.c
1474
for (p = dentry->d_parent; !IS_ROOT(p); p = p->d_parent) {
fs/dcache.c
1483
spin_lock(&dentry->d_lock);
fs/dcache.c
1484
if (!d_unlinked(dentry)) {
fs/dcache.c
1486
if (!d_mountpoint(dentry)) {
fs/dcache.c
1487
dentry->d_flags |= DCACHE_MOUNTED;
fs/dcache.c
1491
spin_unlock(&dentry->d_lock);
fs/dcache.c
1513
struct dentry *start;
fs/dcache.c
1516
struct dentry *victim;
fs/dcache.c
1521
static enum d_walk_ret select_collect(void *_data, struct dentry *dentry)
fs/dcache.c
1526
if (data->start == dentry)
fs/dcache.c
1529
if (dentry->d_flags & DCACHE_SHRINK_LIST) {
fs/dcache.c
1531
} else if (!dentry->d_lockref.count) {
fs/dcache.c
1532
to_shrink_list(dentry, &data->dispose);
fs/dcache.c
1534
} else if (dentry->d_lockref.count < 0) {
fs/dcache.c
1548
static enum d_walk_ret select_collect_umount(void *_data, struct dentry *dentry)
fs/dcache.c
1550
if (dentry->d_flags & DCACHE_PERSISTENT) {
fs/dcache.c
1551
dentry->d_flags &= ~DCACHE_PERSISTENT;
fs/dcache.c
1552
dentry->d_lockref.count--;
fs/dcache.c
1554
return select_collect(_data, dentry);
fs/dcache.c
1557
static enum d_walk_ret select_collect2(void *_data, struct dentry *dentry)
fs/dcache.c
1562
if (data->start == dentry)
fs/dcache.c
1565
if (!dentry->d_lockref.count) {
fs/dcache.c
1566
if (dentry->d_flags & DCACHE_SHRINK_LIST) {
fs/dcache.c
1568
data->victim = dentry;
fs/dcache.c
1571
to_shrink_list(dentry, &data->dispose);
fs/dcache.c
1591
static void shrink_dcache_tree(struct dentry *parent, bool for_umount)
fs/dcache.c
1624
void shrink_dcache_parent(struct dentry *parent)
fs/dcache.c
1630
static enum d_walk_ret umount_check(void *_data, struct dentry *dentry)
fs/dcache.c
1633
if (!hlist_empty(&dentry->d_children))
fs/dcache.c
1637
if (dentry == _data && dentry->d_lockref.count == 1)
fs/dcache.c
1642
dentry,
fs/dcache.c
1643
dentry->d_inode ?
fs/dcache.c
1644
dentry->d_inode->i_ino : 0UL,
fs/dcache.c
1645
dentry,
fs/dcache.c
1646
dentry->d_lockref.count,
fs/dcache.c
1647
dentry->d_sb->s_type->name,
fs/dcache.c
1648
dentry->d_sb->s_id);
fs/dcache.c
1652
static void do_one_tree(struct dentry *dentry)
fs/dcache.c
1654
shrink_dcache_tree(dentry, true);
fs/dcache.c
1655
d_walk(dentry, dentry, umount_check);
fs/dcache.c
1656
d_drop(dentry);
fs/dcache.c
1657
dput(dentry);
fs/dcache.c
1665
struct dentry *dentry;
fs/dcache.c
1669
dentry = sb->s_root;
fs/dcache.c
1671
do_one_tree(dentry);
fs/dcache.c
1674
dentry = dget(hlist_bl_entry(hlist_bl_first(&sb->s_roots), struct dentry, d_hash));
fs/dcache.c
1675
do_one_tree(dentry);
fs/dcache.c
1679
static enum d_walk_ret find_submount(void *_data, struct dentry *dentry)
fs/dcache.c
1681
struct dentry **victim = _data;
fs/dcache.c
1682
if (d_mountpoint(dentry)) {
fs/dcache.c
1683
*victim = dget_dlock(dentry);
fs/dcache.c
1693
void d_invalidate(struct dentry *dentry)
fs/dcache.c
1696
spin_lock(&dentry->d_lock);
fs/dcache.c
1697
if (d_unhashed(dentry)) {
fs/dcache.c
1698
spin_unlock(&dentry->d_lock);
fs/dcache.c
1701
__d_drop(dentry);
fs/dcache.c
1702
spin_unlock(&dentry->d_lock);
fs/dcache.c
1705
if (!dentry->d_inode)
fs/dcache.c
1708
shrink_dcache_parent(dentry);
fs/dcache.c
1710
struct dentry *victim = NULL;
fs/dcache.c
1711
d_walk(dentry, &victim, find_submount);
fs/dcache.c
1714
shrink_dcache_parent(dentry);
fs/dcache.c
1734
static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
fs/dcache.c
1736
struct dentry *dentry;
fs/dcache.c
1740
dentry = kmem_cache_alloc_lru(dentry_cache, &sb->s_dentry_lru,
fs/dcache.c
1742
if (!dentry)
fs/dcache.c
1751
dentry->d_shortname.string[DNAME_INLINE_LEN-1] = 0;
fs/dcache.c
1754
dname = dentry->d_shortname.string;
fs/dcache.c
1761
kmem_cache_free(dentry_cache, dentry);
fs/dcache.c
1767
dname = dentry->d_shortname.string;
fs/dcache.c
1770
dentry->__d_name.len = name->len;
fs/dcache.c
1771
dentry->__d_name.hash = name->hash;
fs/dcache.c
1776
smp_store_release(&dentry->__d_name.name, dname); /* ^^^ */
fs/dcache.c
1778
dentry->d_flags = 0;
fs/dcache.c
1779
lockref_init(&dentry->d_lockref);
fs/dcache.c
1780
seqcount_spinlock_init(&dentry->d_seq, &dentry->d_lock);
fs/dcache.c
1781
dentry->d_inode = NULL;
fs/dcache.c
1782
dentry->d_parent = dentry;
fs/dcache.c
1783
dentry->d_sb = sb;
fs/dcache.c
1784
dentry->d_op = sb->__s_d_op;
fs/dcache.c
1785
dentry->d_flags = sb->s_d_flags;
fs/dcache.c
1786
dentry->d_fsdata = NULL;
fs/dcache.c
1787
INIT_HLIST_BL_NODE(&dentry->d_hash);
fs/dcache.c
1788
INIT_LIST_HEAD(&dentry->d_lru);
fs/dcache.c
1789
INIT_HLIST_HEAD(&dentry->d_children);
fs/dcache.c
1790
INIT_HLIST_NODE(&dentry->d_u.d_alias);
fs/dcache.c
1791
INIT_HLIST_NODE(&dentry->d_sib);
fs/dcache.c
1793
if (dentry->d_op && dentry->d_op->d_init) {
fs/dcache.c
1794
err = dentry->d_op->d_init(dentry);
fs/dcache.c
1796
if (dname_external(dentry))
fs/dcache.c
1797
kfree(external_name(dentry));
fs/dcache.c
1798
kmem_cache_free(dentry_cache, dentry);
fs/dcache.c
1805
return dentry;
fs/dcache.c
1817
struct dentry *d_alloc(struct dentry * parent, const struct qstr *name)
fs/dcache.c
1819
struct dentry *dentry = __d_alloc(parent->d_sb, name);
fs/dcache.c
1820
if (!dentry)
fs/dcache.c
1827
dentry->d_parent = dget_dlock(parent);
fs/dcache.c
1828
hlist_add_head(&dentry->d_sib, &parent->d_children);
fs/dcache.c
1831
return dentry;
fs/dcache.c
1835
struct dentry *d_alloc_anon(struct super_block *sb)
fs/dcache.c
1841
struct dentry *d_alloc_cursor(struct dentry * parent)
fs/dcache.c
1843
struct dentry *dentry = d_alloc_anon(parent->d_sb);
fs/dcache.c
1844
if (dentry) {
fs/dcache.c
1845
dentry->d_flags |= DCACHE_DENTRY_CURSOR;
fs/dcache.c
1846
dentry->d_parent = dget(parent);
fs/dcache.c
1848
return dentry;
fs/dcache.c
1866
struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name)
fs/dcache.c
1871
struct dentry *dentry = __d_alloc(sb, name);
fs/dcache.c
1872
if (likely(dentry)) {
fs/dcache.c
1873
dentry->d_flags |= DCACHE_NORCU;
fs/dcache.c
1875
if (!dentry->d_op)
fs/dcache.c
1876
dentry->d_op = &anon_ops;
fs/dcache.c
1878
return dentry;
fs/dcache.c
1881
struct dentry *d_alloc_name(struct dentry *parent, const char *name)
fs/dcache.c
1918
static void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op)
fs/dcache.c
1921
WARN_ON_ONCE(dentry->d_op);
fs/dcache.c
1922
WARN_ON_ONCE(dentry->d_flags & DCACHE_OP_FLAGS);
fs/dcache.c
1923
dentry->d_op = op;
fs/dcache.c
1925
dentry->d_flags |= flags;
fs/dcache.c
1971
static void __d_instantiate(struct dentry *dentry, struct inode *inode)
fs/dcache.c
1974
WARN_ON(d_in_lookup(dentry));
fs/dcache.c
1980
if ((dentry->d_flags &
fs/dcache.c
1983
hlist_add_head(&dentry->d_u.d_alias, &inode->i_dentry);
fs/dcache.c
1984
raw_write_seqcount_begin(&dentry->d_seq);
fs/dcache.c
1985
__d_set_inode_and_type(dentry, inode, add_flags);
fs/dcache.c
1986
raw_write_seqcount_end(&dentry->d_seq);
fs/dcache.c
1987
fsnotify_update_flags(dentry);
fs/dcache.c
2005
void d_instantiate(struct dentry *entry, struct inode * inode)
fs/dcache.c
2025
void d_instantiate_new(struct dentry *entry, struct inode *inode)
fs/dcache.c
2042
struct dentry *d_make_root(struct inode *root_inode)
fs/dcache.c
2044
struct dentry *res = NULL;
fs/dcache.c
2057
static struct dentry *__d_obtain_alias(struct inode *inode, bool disconnected)
fs/dcache.c
2060
struct dentry *new, *res;
fs/dcache.c
2128
struct dentry *d_obtain_alias(struct inode *inode)
fs/dcache.c
2149
struct dentry *d_obtain_root(struct inode *inode)
fs/dcache.c
2171
struct dentry *d_add_ci(struct dentry *dentry, struct inode *inode,
fs/dcache.c
2174
struct dentry *found, *res;
fs/dcache.c
2180
found = d_hash_and_lookup(dentry->d_parent, name);
fs/dcache.c
2185
if (d_in_lookup(dentry)) {
fs/dcache.c
2186
found = d_alloc_parallel(dentry->d_parent, name,
fs/dcache.c
2187
dentry->d_wait);
fs/dcache.c
2193
found = d_alloc(dentry->d_parent, name);
fs/dcache.c
2217
bool d_same_name(const struct dentry *dentry, const struct dentry *parent,
fs/dcache.c
2221
if (dentry->d_name.len != name->len)
fs/dcache.c
2223
return dentry_cmp(dentry, name->name, name->len) == 0;
fs/dcache.c
2225
return parent->d_op->d_compare(dentry,
fs/dcache.c
2226
dentry->d_name.len, dentry->d_name.name,
fs/dcache.c
2235
static noinline struct dentry *__d_lookup_rcu_op_compare(
fs/dcache.c
2236
const struct dentry *parent,
fs/dcache.c
2243
struct dentry *dentry;
fs/dcache.c
2245
hlist_bl_for_each_entry_rcu(dentry, node, b, d_hash) {
fs/dcache.c
2251
seq = raw_seqcount_begin(&dentry->d_seq);
fs/dcache.c
2252
if (dentry->d_parent != parent)
fs/dcache.c
2254
if (d_unhashed(dentry))
fs/dcache.c
2256
if (dentry->d_name.hash != hashlen_hash(hashlen))
fs/dcache.c
2258
tlen = dentry->d_name.len;
fs/dcache.c
2259
tname = dentry->d_name.name;
fs/dcache.c
2261
if (read_seqcount_retry(&dentry->d_seq, seq)) {
fs/dcache.c
2265
if (parent->d_op->d_compare(dentry, tlen, tname, name) != 0)
fs/dcache.c
2268
return dentry;
fs/dcache.c
2299
struct dentry *__d_lookup_rcu(const struct dentry *parent,
fs/dcache.c
2307
struct dentry *dentry;
fs/dcache.c
2332
hlist_bl_for_each_entry_rcu(dentry, node, b, d_hash) {
fs/dcache.c
2352
seq = raw_seqcount_begin(&dentry->d_seq);
fs/dcache.c
2353
if (dentry->d_parent != parent)
fs/dcache.c
2355
if (dentry->d_name.hash_len != hashlen)
fs/dcache.c
2357
if (unlikely(dentry_cmp(dentry, str, hashlen_len(hashlen)) != 0))
fs/dcache.c
2368
if (unlikely(d_unhashed(dentry)))
fs/dcache.c
2371
return dentry;
fs/dcache.c
2387
struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name)
fs/dcache.c
2389
struct dentry *dentry;
fs/dcache.c
2394
dentry = __d_lookup(parent, name);
fs/dcache.c
2395
if (dentry)
fs/dcache.c
2398
return dentry;
fs/dcache.c
2417
struct dentry *__d_lookup(const struct dentry *parent, const struct qstr *name)
fs/dcache.c
2422
struct dentry *found = NULL;
fs/dcache.c
2423
struct dentry *dentry;
fs/dcache.c
2447
hlist_bl_for_each_entry_rcu(dentry, node, b, d_hash) {
fs/dcache.c
2449
if (dentry->d_name.hash != hash)
fs/dcache.c
2452
spin_lock(&dentry->d_lock);
fs/dcache.c
2453
if (dentry->d_parent != parent)
fs/dcache.c
2455
if (d_unhashed(dentry))
fs/dcache.c
2458
if (!d_same_name(dentry, parent, name))
fs/dcache.c
2461
dentry->d_lockref.count++;
fs/dcache.c
2462
found = dentry;
fs/dcache.c
2463
spin_unlock(&dentry->d_lock);
fs/dcache.c
2466
spin_unlock(&dentry->d_lock);
fs/dcache.c
2480
struct dentry *d_hash_and_lookup(struct dentry *dir, struct qstr *name)
fs/dcache.c
2517
void d_delete(struct dentry * dentry)
fs/dcache.c
2519
struct inode *inode = dentry->d_inode;
fs/dcache.c
2522
spin_lock(&dentry->d_lock);
fs/dcache.c
2526
if (dentry->d_lockref.count == 1) {
fs/dcache.c
2528
__d_drop(dentry);
fs/dcache.c
2529
dentry->d_flags &= ~DCACHE_CANT_MOUNT;
fs/dcache.c
2530
dentry_unlink_inode(dentry);
fs/dcache.c
2532
__d_drop(dentry);
fs/dcache.c
2533
spin_unlock(&dentry->d_lock);
fs/dcache.c
2539
static void __d_rehash(struct dentry *entry)
fs/dcache.c
2555
void d_rehash(struct dentry * entry)
fs/dcache.c
2583
static void d_wait_lookup(struct dentry *dentry)
fs/dcache.c
2585
if (d_in_lookup(dentry)) {
fs/dcache.c
2587
add_wait_queue(dentry->d_wait, &wait);
fs/dcache.c
2590
spin_unlock(&dentry->d_lock);
fs/dcache.c
2592
spin_lock(&dentry->d_lock);
fs/dcache.c
2593
} while (d_in_lookup(dentry));
fs/dcache.c
2597
struct dentry *d_alloc_parallel(struct dentry *parent,
fs/dcache.c
2604
struct dentry *new = __d_alloc(parent->d_sb, name);
fs/dcache.c
2605
struct dentry *dentry;
fs/dcache.c
2623
dentry = __d_lookup_rcu(parent, name, &d_seq);
fs/dcache.c
2624
if (unlikely(dentry)) {
fs/dcache.c
2625
if (!lockref_get_not_dead(&dentry->d_lockref)) {
fs/dcache.c
2629
if (read_seqcount_retry(&dentry->d_seq, d_seq)) {
fs/dcache.c
2631
dput(dentry);
fs/dcache.c
2636
return dentry;
fs/dcache.c
2661
hlist_bl_for_each_entry(dentry, node, b, d_u.d_in_lookup_hash) {
fs/dcache.c
2662
if (dentry->d_name.hash != hash)
fs/dcache.c
2664
if (dentry->d_parent != parent)
fs/dcache.c
2666
if (!d_same_name(dentry, parent, name))
fs/dcache.c
2670
if (!lockref_get_not_dead(&dentry->d_lockref)) {
fs/dcache.c
2680
spin_lock(&dentry->d_lock);
fs/dcache.c
2681
d_wait_lookup(dentry);
fs/dcache.c
2688
if (unlikely(dentry->d_name.hash != hash))
fs/dcache.c
2690
if (unlikely(dentry->d_parent != parent))
fs/dcache.c
2692
if (unlikely(d_unhashed(dentry)))
fs/dcache.c
2694
if (unlikely(!d_same_name(dentry, parent, name)))
fs/dcache.c
2697
spin_unlock(&dentry->d_lock);
fs/dcache.c
2699
return dentry;
fs/dcache.c
2707
spin_unlock(&dentry->d_lock);
fs/dcache.c
2708
dput(dentry);
fs/dcache.c
2718
static wait_queue_head_t *__d_lookup_unhash(struct dentry *dentry)
fs/dcache.c
2723
lockdep_assert_held(&dentry->d_lock);
fs/dcache.c
2725
b = in_lookup_hash(dentry->d_parent, dentry->d_name.hash);
fs/dcache.c
2727
dentry->d_flags &= ~DCACHE_PAR_LOOKUP;
fs/dcache.c
2728
__hlist_bl_del(&dentry->d_u.d_in_lookup_hash);
fs/dcache.c
2729
d_wait = dentry->d_wait;
fs/dcache.c
2730
dentry->d_wait = NULL;
fs/dcache.c
2732
INIT_HLIST_NODE(&dentry->d_u.d_alias);
fs/dcache.c
2733
INIT_LIST_HEAD(&dentry->d_lru);
fs/dcache.c
2737
void __d_lookup_unhash_wake(struct dentry *dentry)
fs/dcache.c
2739
spin_lock(&dentry->d_lock);
fs/dcache.c
2740
wake_up_all(__d_lookup_unhash(dentry));
fs/dcache.c
2741
spin_unlock(&dentry->d_lock);
fs/dcache.c
2747
static inline void __d_add(struct dentry *dentry, struct inode *inode,
fs/dcache.c
2753
spin_lock(&dentry->d_lock);
fs/dcache.c
2754
if (unlikely(d_in_lookup(dentry))) {
fs/dcache.c
2755
dir = dentry->d_parent->d_inode;
fs/dcache.c
2757
d_wait = __d_lookup_unhash(dentry);
fs/dcache.c
2760
d_set_d_op(dentry, ops);
fs/dcache.c
2763
hlist_add_head(&dentry->d_u.d_alias, &inode->i_dentry);
fs/dcache.c
2764
raw_write_seqcount_begin(&dentry->d_seq);
fs/dcache.c
2765
__d_set_inode_and_type(dentry, inode, add_flags);
fs/dcache.c
2766
raw_write_seqcount_end(&dentry->d_seq);
fs/dcache.c
2767
fsnotify_update_flags(dentry);
fs/dcache.c
2769
__d_rehash(dentry);
fs/dcache.c
2772
spin_unlock(&dentry->d_lock);
fs/dcache.c
2786
void d_add(struct dentry *entry, struct inode *inode)
fs/dcache.c
2796
struct dentry *d_make_persistent(struct dentry *dentry, struct inode *inode)
fs/dcache.c
2798
WARN_ON(!hlist_unhashed(&dentry->d_u.d_alias));
fs/dcache.c
2800
security_d_instantiate(dentry, inode);
fs/dcache.c
2802
spin_lock(&dentry->d_lock);
fs/dcache.c
2803
__d_instantiate(dentry, inode);
fs/dcache.c
2804
dentry->d_flags |= DCACHE_PERSISTENT;
fs/dcache.c
2805
dget_dlock(dentry);
fs/dcache.c
2806
if (d_unhashed(dentry))
fs/dcache.c
2807
__d_rehash(dentry);
fs/dcache.c
2808
spin_unlock(&dentry->d_lock);
fs/dcache.c
2810
return dentry;
fs/dcache.c
2814
static void swap_names(struct dentry *dentry, struct dentry *target)
fs/dcache.c
2817
if (unlikely(dname_external(dentry))) {
fs/dcache.c
2821
swap(target->__d_name.name, dentry->__d_name.name);
fs/dcache.c
2827
dentry->__d_name.name = target->__d_name.name;
fs/dcache.c
2828
target->d_shortname = dentry->d_shortname;
fs/dcache.c
2832
if (unlikely(dname_external(dentry))) {
fs/dcache.c
2837
target->__d_name.name = dentry->__d_name.name;
fs/dcache.c
2838
dentry->d_shortname = target->d_shortname;
fs/dcache.c
2839
dentry->__d_name.name = dentry->d_shortname.string;
fs/dcache.c
2845
swap(dentry->d_shortname.words[i],
fs/dcache.c
2849
swap(dentry->__d_name.hash_len, target->__d_name.hash_len);
fs/dcache.c
2852
static void copy_name(struct dentry *dentry, struct dentry *target)
fs/dcache.c
2855
if (unlikely(dname_external(dentry)))
fs/dcache.c
2856
old_name = external_name(dentry);
fs/dcache.c
2859
dentry->__d_name = target->__d_name;
fs/dcache.c
2861
dentry->d_shortname = target->d_shortname;
fs/dcache.c
2862
dentry->__d_name.name = dentry->d_shortname.string;
fs/dcache.c
2863
dentry->__d_name.hash_len = target->__d_name.hash_len;
fs/dcache.c
2880
static void __d_move(struct dentry *dentry, struct dentry *target,
fs/dcache.c
2883
struct dentry *old_parent, *p;
fs/dcache.c
2888
WARN_ON(!dentry->d_inode);
fs/dcache.c
2889
if (WARN_ON(dentry == target))
fs/dcache.c
2892
BUG_ON(d_ancestor(target, dentry));
fs/dcache.c
2893
old_parent = dentry->d_parent;
fs/dcache.c
2895
if (IS_ROOT(dentry)) {
fs/dcache.c
2903
BUG_ON(p == dentry);
fs/dcache.c
2909
spin_lock_nested(&dentry->d_lock, 2);
fs/dcache.c
2918
write_seqcount_begin(&dentry->d_seq);
fs/dcache.c
2922
if (!d_unhashed(dentry))
fs/dcache.c
2923
___d_drop(dentry);
fs/dcache.c
2928
dentry->d_parent = target->d_parent;
fs/dcache.c
2930
copy_name(dentry, target);
fs/dcache.c
2932
dentry->d_parent->d_lockref.count++;
fs/dcache.c
2933
if (dentry != old_parent) /* wasn't IS_ROOT */
fs/dcache.c
2937
swap_names(dentry, target);
fs/dcache.c
2944
if (!hlist_unhashed(&dentry->d_sib))
fs/dcache.c
2945
__hlist_del(&dentry->d_sib);
fs/dcache.c
2946
hlist_add_head(&dentry->d_sib, &dentry->d_parent->d_children);
fs/dcache.c
2947
__d_rehash(dentry);
fs/dcache.c
2948
fsnotify_update_flags(dentry);
fs/dcache.c
2949
fscrypt_handle_d_move(dentry);
fs/dcache.c
2952
write_seqcount_end(&dentry->d_seq);
fs/dcache.c
2957
if (dentry->d_parent != old_parent)
fs/dcache.c
2958
spin_unlock(&dentry->d_parent->d_lock);
fs/dcache.c
2959
if (dentry != old_parent)
fs/dcache.c
2962
spin_unlock(&dentry->d_lock);
fs/dcache.c
2974
void d_move(struct dentry *dentry, struct dentry *target)
fs/dcache.c
2977
__d_move(dentry, target, false);
fs/dcache.c
2987
void d_exchange(struct dentry *dentry1, struct dentry *dentry2)
fs/dcache.c
3010
struct dentry *d_ancestor(struct dentry *p1, struct dentry *p2)
fs/dcache.c
3012
struct dentry *p;
fs/dcache.c
302
static inline int dentry_cmp(const struct dentry *dentry, const unsigned char *ct, unsigned tcount)
fs/dcache.c
3030
static int __d_unalias(struct dentry *dentry, struct dentry *alias)
fs/dcache.c
3037
if (alias->d_parent == dentry->d_parent)
fs/dcache.c
3041
if (!mutex_trylock(&dentry->d_sb->s_vfs_rename_mutex))
fs/dcache.c
3043
m1 = &dentry->d_sb->s_vfs_rename_mutex;
fs/dcache.c
3051
__d_move(alias, dentry, false);
fs/dcache.c
3063
struct dentry *d_splice_alias_ops(struct inode *inode, struct dentry *dentry,
fs/dcache.c
3069
BUG_ON(!d_unhashed(dentry));
fs/dcache.c
3074
security_d_instantiate(dentry, inode);
fs/dcache.c
3077
struct dentry *new = __d_find_any_alias(inode);
fs/dcache.c
3082
if (unlikely(d_ancestor(new, dentry))) {
fs/dcache.c
3089
dentry->d_name.name,
fs/dcache.c
3093
struct dentry *old_parent = dget(new->d_parent);
fs/dcache.c
3094
int err = __d_unalias(dentry, new);
fs/dcache.c
3102
__d_move(new, dentry, false);
fs/dcache.c
3110
__d_add(dentry, inode, ops);
fs/dcache.c
3137
struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
fs/dcache.c
3139
return d_splice_alias_ops(inode, dentry, NULL);
fs/dcache.c
3159
bool is_subdir(struct dentry *new_dentry, struct dentry *old_dentry)
fs/dcache.c
3185
struct dentry *dentry = file->f_path.dentry;
fs/dcache.c
3187
BUG_ON(dname_external(dentry) ||
fs/dcache.c
3188
!hlist_unhashed(&dentry->d_u.d_alias) ||
fs/dcache.c
3189
!d_unlinked(dentry));
fs/dcache.c
3190
spin_lock(&dentry->d_parent->d_lock);
fs/dcache.c
3191
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
fs/dcache.c
3192
dentry->__d_name.len = sprintf(dentry->d_shortname.string, "#%llu",
fs/dcache.c
3194
spin_unlock(&dentry->d_lock);
fs/dcache.c
3195
spin_unlock(&dentry->d_parent->d_lock);
fs/dcache.c
320
const unsigned char *cs = READ_ONCE(dentry->d_name.name);
fs/dcache.c
3201
struct dentry *dentry = file->f_path.dentry;
fs/dcache.c
3205
d_instantiate(dentry, inode);
fs/dcache.c
3212
ino_t d_parent_ino(struct dentry *dentry)
fs/dcache.c
3214
struct dentry *parent;
fs/dcache.c
3220
seq = raw_seqcount_begin(&dentry->d_seq);
fs/dcache.c
3221
parent = READ_ONCE(dentry->d_parent);
fs/dcache.c
3225
if (!read_seqcount_retry(&dentry->d_seq, seq))
fs/dcache.c
3230
spin_lock(&dentry->d_lock);
fs/dcache.c
3231
ret = dentry->d_parent->d_inode->i_ino;
fs/dcache.c
3232
spin_unlock(&dentry->d_lock);
fs/dcache.c
3275
__dentry_cache = KMEM_CACHE_USERCOPY(dentry,
fs/dcache.c
337
static inline struct external_name *external_name(struct dentry *dentry)
fs/dcache.c
339
return container_of(dentry->d_name.name, struct external_name, name[0]);
fs/dcache.c
344
struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu);
fs/dcache.c
346
kmem_cache_free(dentry_cache, dentry);
fs/dcache.c
351
struct dentry *dentry = container_of(head, struct dentry, d_u.d_rcu);
fs/dcache.c
352
kfree(external_name(dentry));
fs/dcache.c
353
kmem_cache_free(dentry_cache, dentry);
fs/dcache.c
356
static inline int dname_external(const struct dentry *dentry)
fs/dcache.c
358
return dentry->d_name.name != dentry->d_shortname.string;
fs/dcache.c
361
void take_dentry_name_snapshot(struct name_snapshot *name, struct dentry *dentry)
fs/dcache.c
368
seq = read_seqcount_begin(&dentry->d_seq);
fs/dcache.c
369
s = READ_ONCE(dentry->d_name.name);
fs/dcache.c
370
name->name.hash_len = dentry->d_name.hash_len;
fs/dcache.c
372
if (likely(s == dentry->d_shortname.string)) {
fs/dcache.c
373
name->inline_name = dentry->d_shortname;
fs/dcache.c
382
if (read_seqcount_retry(&dentry->d_seq, seq)) {
fs/dcache.c
401
static inline void __d_set_inode_and_type(struct dentry *dentry,
fs/dcache.c
407
dentry->d_inode = inode;
fs/dcache.c
408
flags = READ_ONCE(dentry->d_flags);
fs/dcache.c
411
smp_store_release(&dentry->d_flags, flags);
fs/dcache.c
414
static inline void __d_clear_type_and_inode(struct dentry *dentry)
fs/dcache.c
416
unsigned flags = READ_ONCE(dentry->d_flags);
fs/dcache.c
419
WRITE_ONCE(dentry->d_flags, flags);
fs/dcache.c
420
dentry->d_inode = NULL;
fs/dcache.c
429
static void dentry_free(struct dentry *dentry)
fs/dcache.c
431
WARN_ON(!hlist_unhashed(&dentry->d_u.d_alias));
fs/dcache.c
432
if (unlikely(dname_external(dentry))) {
fs/dcache.c
433
struct external_name *p = external_name(dentry);
fs/dcache.c
435
call_rcu(&dentry->d_u.d_rcu, __d_free_external);
fs/dcache.c
440
if (dentry->d_flags & DCACHE_NORCU)
fs/dcache.c
441
__d_free(&dentry->d_u.d_rcu);
fs/dcache.c
443
call_rcu(&dentry->d_u.d_rcu, __d_free);
fs/dcache.c
450
static void dentry_unlink_inode(struct dentry * dentry)
fs/dcache.c
451
__releases(dentry->d_lock)
fs/dcache.c
452
__releases(dentry->d_inode->i_lock)
fs/dcache.c
454
struct inode *inode = dentry->d_inode;
fs/dcache.c
456
raw_write_seqcount_begin(&dentry->d_seq);
fs/dcache.c
457
__d_clear_type_and_inode(dentry);
fs/dcache.c
458
hlist_del_init(&dentry->d_u.d_alias);
fs/dcache.c
459
raw_write_seqcount_end(&dentry->d_seq);
fs/dcache.c
460
spin_unlock(&dentry->d_lock);
fs/dcache.c
464
if (dentry->d_op && dentry->d_op->d_iput)
fs/dcache.c
465
dentry->d_op->d_iput(dentry, inode);
fs/dcache.c
489
#define D_FLAG_VERIFY(dentry,x) WARN_ON_ONCE(((dentry)->d_flags & (DCACHE_LRU_LIST | DCACHE_SHRINK_LIST)) != (x))
fs/dcache.c
490
static void d_lru_add(struct dentry *dentry)
fs/dcache.c
492
D_FLAG_VERIFY(dentry, 0);
fs/dcache.c
493
dentry->d_flags |= DCACHE_LRU_LIST;
fs/dcache.c
495
if (d_is_negative(dentry))
fs/dcache.c
498
&dentry->d_sb->s_dentry_lru, &dentry->d_lru));
fs/dcache.c
501
static void d_lru_del(struct dentry *dentry)
fs/dcache.c
503
D_FLAG_VERIFY(dentry, DCACHE_LRU_LIST);
fs/dcache.c
504
dentry->d_flags &= ~DCACHE_LRU_LIST;
fs/dcache.c
506
if (d_is_negative(dentry))
fs/dcache.c
509
&dentry->d_sb->s_dentry_lru, &dentry->d_lru));
fs/dcache.c
512
static void d_shrink_del(struct dentry *dentry)
fs/dcache.c
514
D_FLAG_VERIFY(dentry, DCACHE_SHRINK_LIST | DCACHE_LRU_LIST);
fs/dcache.c
515
list_del_init(&dentry->d_lru);
fs/dcache.c
516
dentry->d_flags &= ~(DCACHE_SHRINK_LIST | DCACHE_LRU_LIST);
fs/dcache.c
520
static void d_shrink_add(struct dentry *dentry, struct list_head *list)
fs/dcache.c
522
D_FLAG_VERIFY(dentry, 0);
fs/dcache.c
523
list_add(&dentry->d_lru, list);
fs/dcache.c
524
dentry->d_flags |= DCACHE_SHRINK_LIST | DCACHE_LRU_LIST;
fs/dcache.c
534
static void d_lru_isolate(struct list_lru_one *lru, struct dentry *dentry)
fs/dcache.c
536
D_FLAG_VERIFY(dentry, DCACHE_LRU_LIST);
fs/dcache.c
537
dentry->d_flags &= ~DCACHE_LRU_LIST;
fs/dcache.c
539
if (d_is_negative(dentry))
fs/dcache.c
541
list_lru_isolate(lru, &dentry->d_lru);
fs/dcache.c
544
static void d_lru_shrink_move(struct list_lru_one *lru, struct dentry *dentry,
fs/dcache.c
547
D_FLAG_VERIFY(dentry, DCACHE_LRU_LIST);
fs/dcache.c
548
dentry->d_flags |= DCACHE_SHRINK_LIST;
fs/dcache.c
549
if (d_is_negative(dentry))
fs/dcache.c
551
list_lru_isolate_move(lru, &dentry->d_lru, list);
fs/dcache.c
554
static void ___d_drop(struct dentry *dentry)
fs/dcache.c
562
if (unlikely(IS_ROOT(dentry)))
fs/dcache.c
563
b = &dentry->d_sb->s_roots;
fs/dcache.c
565
b = d_hash(dentry->d_name.hash);
fs/dcache.c
568
__hlist_bl_del(&dentry->d_hash);
fs/dcache.c
572
void __d_drop(struct dentry *dentry)
fs/dcache.c
574
if (!d_unhashed(dentry)) {
fs/dcache.c
575
___d_drop(dentry);
fs/dcache.c
576
dentry->d_hash.pprev = NULL;
fs/dcache.c
577
write_seqcount_invalidate(&dentry->d_seq);
fs/dcache.c
600
void d_drop(struct dentry *dentry)
fs/dcache.c
602
spin_lock(&dentry->d_lock);
fs/dcache.c
603
__d_drop(dentry);
fs/dcache.c
604
spin_unlock(&dentry->d_lock);
fs/dcache.c
608
static inline void dentry_unlist(struct dentry *dentry)
fs/dcache.c
610
struct dentry *next;
fs/dcache.c
615
dentry->d_flags |= DCACHE_DENTRY_KILLED;
fs/dcache.c
616
if (unlikely(hlist_unhashed(&dentry->d_sib)))
fs/dcache.c
618
__hlist_del(&dentry->d_sib);
fs/dcache.c
638
while (dentry->d_sib.next) {
fs/dcache.c
639
next = hlist_entry(dentry->d_sib.next, struct dentry, d_sib);
fs/dcache.c
642
dentry->d_sib.next = next->d_sib.next;
fs/dcache.c
646
static struct dentry *__dentry_kill(struct dentry *dentry)
fs/dcache.c
648
struct dentry *parent = NULL;
fs/dcache.c
654
lockref_mark_dead(&dentry->d_lockref);
fs/dcache.c
660
if (dentry->d_flags & DCACHE_OP_PRUNE)
fs/dcache.c
661
dentry->d_op->d_prune(dentry);
fs/dcache.c
663
if (dentry->d_flags & DCACHE_LRU_LIST) {
fs/dcache.c
664
if (!(dentry->d_flags & DCACHE_SHRINK_LIST))
fs/dcache.c
665
d_lru_del(dentry);
fs/dcache.c
668
__d_drop(dentry);
fs/dcache.c
669
if (dentry->d_inode)
fs/dcache.c
670
dentry_unlink_inode(dentry);
fs/dcache.c
672
spin_unlock(&dentry->d_lock);
fs/dcache.c
674
if (dentry->d_op && dentry->d_op->d_release)
fs/dcache.c
675
dentry->d_op->d_release(dentry);
fs/dcache.c
679
if (!IS_ROOT(dentry)) {
fs/dcache.c
680
parent = dentry->d_parent;
fs/dcache.c
683
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
fs/dcache.c
684
dentry_unlist(dentry);
fs/dcache.c
685
if (dentry->d_flags & DCACHE_SHRINK_LIST)
fs/dcache.c
687
spin_unlock(&dentry->d_lock);
fs/dcache.c
689
dentry_free(dentry);
fs/dcache.c
708
static bool lock_for_kill(struct dentry *dentry)
fs/dcache.c
710
struct inode *inode = dentry->d_inode;
fs/dcache.c
712
if (unlikely(dentry->d_lockref.count))
fs/dcache.c
719
spin_unlock(&dentry->d_lock);
fs/dcache.c
721
spin_lock(&dentry->d_lock);
fs/dcache.c
722
if (likely(inode == dentry->d_inode))
fs/dcache.c
725
inode = dentry->d_inode;
fs/dcache.c
727
if (likely(!dentry->d_lockref.count))
fs/dcache.c
745
static inline bool retain_dentry(struct dentry *dentry, bool locked)
fs/dcache.c
750
d_flags = READ_ONCE(dentry->d_flags);
fs/dcache.c
753
if (unlikely(d_unhashed(dentry)))
fs/dcache.c
763
if (!locked || dentry->d_op->d_delete(dentry))
fs/dcache.c
779
d_lru_add(dentry);
fs/dcache.c
783
dentry->d_flags |= DCACHE_REFERENCED;
fs/dcache.c
790
struct dentry *de;
fs/dcache.c
813
static inline bool fast_dput(struct dentry *dentry)
fs/dcache.c
820
ret = lockref_put_return(&dentry->d_lockref);
fs/dcache.c
828
spin_lock(&dentry->d_lock);
fs/dcache.c
829
if (WARN_ON_ONCE(dentry->d_lockref.count <= 0)) {
fs/dcache.c
830
spin_unlock(&dentry->d_lock);
fs/dcache.c
833
dentry->d_lockref.count--;
fs/dcache.c
849
if (retain_dentry(dentry, false))
fs/dcache.c
857
spin_lock(&dentry->d_lock);
fs/dcache.c
866
if (dentry->d_lockref.count || retain_dentry(dentry, true)) {
fs/dcache.c
867
spin_unlock(&dentry->d_lock);
fs/dcache.c
873
static void finish_dput(struct dentry *dentry)
fs/dcache.c
874
__releases(dentry->d_lock)
fs/dcache.c
877
while (lock_for_kill(dentry)) {
fs/dcache.c
879
dentry = __dentry_kill(dentry);
fs/dcache.c
880
if (!dentry)
fs/dcache.c
882
if (retain_dentry(dentry, true)) {
fs/dcache.c
883
spin_unlock(&dentry->d_lock);
fs/dcache.c
889
spin_unlock(&dentry->d_lock);
fs/dcache.c
918
void dput(struct dentry *dentry)
fs/dcache.c
920
if (!dentry)
fs/dcache.c
924
if (likely(fast_dput(dentry))) {
fs/dcache.c
928
finish_dput(dentry);
fs/dcache.c
932
void d_make_discardable(struct dentry *dentry)
fs/dcache.c
934
spin_lock(&dentry->d_lock);
fs/dcache.c
935
WARN_ON(!(dentry->d_flags & DCACHE_PERSISTENT));
fs/dcache.c
936
dentry->d_flags &= ~DCACHE_PERSISTENT;
fs/dcache.c
937
dentry->d_lockref.count--;
fs/dcache.c
939
finish_dput(dentry);
fs/dcache.c
943
static void to_shrink_list(struct dentry *dentry, struct list_head *list)
fs/dcache.c
944
__must_hold(&dentry->d_lock)
fs/dcache.c
946
if (!(dentry->d_flags & DCACHE_SHRINK_LIST)) {
fs/dcache.c
947
if (dentry->d_flags & DCACHE_LRU_LIST)
fs/dcache.c
948
d_lru_del(dentry);
fs/dcache.c
949
d_shrink_add(dentry, list);
fs/dcache.c
953
void dput_to_list(struct dentry *dentry, struct list_head *list)
fs/dcache.c
956
if (likely(fast_dput(dentry))) {
fs/dcache.c
961
to_shrink_list(dentry, list);
fs/dcache.c
962
spin_unlock(&dentry->d_lock);
fs/dcache.c
965
struct dentry *dget_parent(struct dentry *dentry)
fs/dcache.c
968
struct dentry *ret;
fs/dcache.c
976
seq = raw_seqcount_begin(&dentry->d_seq);
fs/dcache.c
977
ret = READ_ONCE(dentry->d_parent);
fs/dcache.c
981
if (!read_seqcount_retry(&dentry->d_seq, seq))
fs/dcache.c
992
ret = dentry->d_parent;
fs/dcache.c
994
if (unlikely(ret != dentry->d_parent)) {
fs/debugfs/file.c
1008
void debugfs_create_bool(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
1019
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
1024
ret = debugfs_file_get(dentry);
fs/debugfs/file.c
1032
debugfs_file_put(dentry);
fs/debugfs/file.c
1037
debugfs_file_put(dentry);
fs/debugfs/file.c
1055
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
1060
r = debugfs_file_get(dentry);
fs/debugfs/file.c
1094
debugfs_file_put(dentry);
fs/debugfs/file.c
1099
debugfs_file_put(dentry);
fs/debugfs/file.c
1137
struct dentry *parent, char **value)
fs/debugfs/file.c
1147
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
1150
r = debugfs_file_get(dentry);
fs/debugfs/file.c
1155
debugfs_file_put(dentry);
fs/debugfs/file.c
1163
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
1166
r = debugfs_file_get(dentry);
fs/debugfs/file.c
1172
debugfs_file_put(dentry);
fs/debugfs/file.c
120
d_fsd = cmpxchg(&dentry->d_fsdata, NULL, fsd);
fs/debugfs/file.c
1207
struct dentry *debugfs_create_blob(const char *name, umode_t mode,
fs/debugfs/file.c
1208
struct dentry *parent,
fs/debugfs/file.c
1295
struct dentry *parent,
fs/debugfs/file.c
136
if (d_unlinked(dentry))
fs/debugfs/file.c
1374
struct dentry *parent,
fs/debugfs/file.c
1414
struct dentry *parent,
fs/debugfs/file.c
160
int debugfs_file_get(struct dentry *dentry)
fs/debugfs/file.c
162
return __debugfs_file_get(dentry, DBGFS_GET_ALREADY);
fs/debugfs/file.c
175
void debugfs_file_put(struct dentry *dentry)
fs/debugfs/file.c
177
struct debugfs_fsdata *fsd = READ_ONCE(dentry->d_fsdata);
fs/debugfs/file.c
210
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
214
if (WARN_ON(!d_is_reg(dentry)))
fs/debugfs/file.c
220
fsd = READ_ONCE(dentry->d_fsdata);
fs/debugfs/file.c
229
if (d_unlinked(dentry))
fs/debugfs/file.c
246
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
248
if (WARN_ON(!d_is_reg(dentry)))
fs/debugfs/file.c
251
fsd = READ_ONCE(dentry->d_fsdata);
fs/debugfs/file.c
287
struct dentry *dentry = F_DENTRY(filp);
fs/debugfs/file.c
291
r = __debugfs_file_get(dentry, DBGFS_GET_REGULAR);
fs/debugfs/file.c
310
dentry);
fs/debugfs/file.c
320
debugfs_file_put(dentry);
fs/debugfs/file.c
334
struct dentry *dentry = F_DENTRY(filp); \
fs/debugfs/file.c
335
struct debugfs_fsdata *fsd = dentry->d_fsdata; \
fs/debugfs/file.c
340
r = debugfs_file_get(dentry); \
fs/debugfs/file.c
344
debugfs_file_put(dentry); \
fs/debugfs/file.c
351
struct dentry *dentry = F_DENTRY(filp); \
fs/debugfs/file.c
352
struct debugfs_fsdata *fsd = dentry->d_fsdata; \
fs/debugfs/file.c
357
r = debugfs_file_get(dentry); \
fs/debugfs/file.c
361
debugfs_file_put(dentry); \
fs/debugfs/file.c
400
struct dentry *dentry = F_DENTRY(filp);
fs/debugfs/file.c
401
struct debugfs_fsdata *fsd = dentry->d_fsdata;
fs/debugfs/file.c
406
if (debugfs_file_get(dentry))
fs/debugfs/file.c
410
debugfs_file_put(dentry);
fs/debugfs/file.c
435
struct dentry *dentry = F_DENTRY(filp);
fs/debugfs/file.c
440
r = __debugfs_file_get(dentry, DBGFS_GET_REGULAR);
fs/debugfs/file.c
444
fsd = dentry->d_fsdata;
fs/debugfs/file.c
461
dentry);
fs/debugfs/file.c
473
dentry);
fs/debugfs/file.c
478
debugfs_file_put(dentry);
fs/debugfs/file.c
48
#define F_DENTRY(filp) ((filp)->f_path.dentry)
fs/debugfs/file.c
494
struct dentry *dentry = F_DENTRY(filp);
fs/debugfs/file.c
497
r = __debugfs_file_get(dentry, DBGFS_GET_SHORT);
fs/debugfs/file.c
503
debugfs_file_put(dentry);
fs/debugfs/file.c
517
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
520
ret = debugfs_file_get(dentry);
fs/debugfs/file.c
524
debugfs_file_put(dentry);
fs/debugfs/file.c
532
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
535
ret = debugfs_file_get(dentry);
fs/debugfs/file.c
542
debugfs_file_put(dentry);
fs/debugfs/file.c
560
static struct dentry *debugfs_create_mode_unsafe(const char *name, umode_t mode,
fs/debugfs/file.c
561
struct dentry *parent, void *value,
fs/debugfs/file.c
606
void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
62
static int __debugfs_file_get(struct dentry *dentry, enum dbgfs_get_mode mode)
fs/debugfs/file.c
642
void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
678
void debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
715
void debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
72
if (WARN_ON(!d_is_reg(dentry)))
fs/debugfs/file.c
75
d_fsd = READ_ONCE(dentry->d_fsdata);
fs/debugfs/file.c
754
void debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
79
struct inode *inode = dentry->d_inode;
fs/debugfs/file.c
799
void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
817
void debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
835
void debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
853
void debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent,
fs/debugfs/file.c
888
struct dentry *parent, size_t *value)
fs/debugfs/file.c
924
struct dentry *parent, atomic_t *value)
fs/debugfs/file.c
937
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
939
r = debugfs_file_get(dentry);
fs/debugfs/file.c
943
debugfs_file_put(dentry);
fs/debugfs/file.c
960
struct dentry *dentry = F_DENTRY(file);
fs/debugfs/file.c
964
r = debugfs_file_get(dentry);
fs/debugfs/file.c
968
debugfs_file_put(dentry);
fs/debugfs/inode.c
198
static int debugfs_show_options(struct seq_file *m, struct dentry *root)
fs/debugfs/inode.c
245
static void debugfs_release_dentry(struct dentry *dentry)
fs/debugfs/inode.c
247
struct debugfs_fsdata *fsd = dentry->d_fsdata;
fs/debugfs/inode.c
258
struct inode *inode = path->dentry->d_inode;
fs/debugfs/inode.c
260
return DEBUGFS_I(inode)->automount(path->dentry, inode->i_private);
fs/debugfs/inode.c
345
struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
fs/debugfs/inode.c
347
struct dentry *dentry;
fs/debugfs/inode.c
355
dentry = lookup_noperm_positive_unlocked(&QSTR(name), parent);
fs/debugfs/inode.c
356
if (IS_ERR(dentry))
fs/debugfs/inode.c
358
return dentry;
fs/debugfs/inode.c
362
static struct dentry *debugfs_start_creating(const char *name,
fs/debugfs/inode.c
363
struct dentry *parent)
fs/debugfs/inode.c
365
struct dentry *dentry;
fs/debugfs/inode.c
394
dentry = simple_start_creating(parent, name);
fs/debugfs/inode.c
395
if (IS_ERR(dentry)) {
fs/debugfs/inode.c
396
if (dentry == ERR_PTR(-EEXIST))
fs/debugfs/inode.c
400
return dentry;
fs/debugfs/inode.c
403
static struct dentry *debugfs_failed_creating(struct dentry *dentry)
fs/debugfs/inode.c
405
simple_done_creating(dentry);
fs/debugfs/inode.c
410
static struct dentry *debugfs_end_creating(struct dentry *dentry)
fs/debugfs/inode.c
412
simple_done_creating(dentry);
fs/debugfs/inode.c
413
return dentry; // borrowed
fs/debugfs/inode.c
416
static struct dentry *__debugfs_create_file(const char *name, umode_t mode,
fs/debugfs/inode.c
417
struct dentry *parent, void *data,
fs/debugfs/inode.c
422
struct dentry *dentry;
fs/debugfs/inode.c
428
dentry = debugfs_start_creating(name, parent);
fs/debugfs/inode.c
430
if (IS_ERR(dentry))
fs/debugfs/inode.c
431
return dentry;
fs/debugfs/inode.c
433
inode = debugfs_get_inode(dentry->d_sb);
fs/debugfs/inode.c
437
return debugfs_failed_creating(dentry);
fs/debugfs/inode.c
450
d_make_persistent(dentry, inode);
fs/debugfs/inode.c
451
fsnotify_create(d_inode(dentry->d_parent), dentry);
fs/debugfs/inode.c
452
return debugfs_end_creating(dentry);
fs/debugfs/inode.c
455
struct dentry *debugfs_create_file_full(const char *name, umode_t mode,
fs/debugfs/inode.c
456
struct dentry *parent, void *data,
fs/debugfs/inode.c
46
struct dentry *dentry, struct iattr *ia)
fs/debugfs/inode.c
466
struct dentry *debugfs_create_file_short(const char *name, umode_t mode,
fs/debugfs/inode.c
467
struct dentry *parent, void *data,
fs/debugfs/inode.c
504
struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
fs/debugfs/inode.c
505
struct dentry *parent, void *data,
fs/debugfs/inode.c
535
struct dentry *parent, void *data,
fs/debugfs/inode.c
539
struct dentry *de = debugfs_create_file(name, mode, parent, data, fops);
fs/debugfs/inode.c
55
return simple_setattr(&nop_mnt_idmap, dentry, ia);
fs/debugfs/inode.c
570
struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
fs/debugfs/inode.c
572
struct dentry *dentry = debugfs_start_creating(name, parent);
fs/debugfs/inode.c
575
if (IS_ERR(dentry))
fs/debugfs/inode.c
576
return dentry;
fs/debugfs/inode.c
578
inode = debugfs_get_inode(dentry->d_sb);
fs/debugfs/inode.c
582
return debugfs_failed_creating(dentry);
fs/debugfs/inode.c
591
d_make_persistent(dentry, inode);
fs/debugfs/inode.c
592
inc_nlink(d_inode(dentry->d_parent));
fs/debugfs/inode.c
593
fsnotify_mkdir(d_inode(dentry->d_parent), dentry);
fs/debugfs/inode.c
594
return debugfs_end_creating(dentry);
fs/debugfs/inode.c
609
struct dentry *debugfs_create_automount(const char *name,
fs/debugfs/inode.c
610
struct dentry *parent,
fs/debugfs/inode.c
614
struct dentry *dentry = debugfs_start_creating(name, parent);
fs/debugfs/inode.c
617
if (IS_ERR(dentry))
fs/debugfs/inode.c
618
return dentry;
fs/debugfs/inode.c
620
inode = debugfs_get_inode(dentry->d_sb);
fs/debugfs/inode.c
624
return debugfs_failed_creating(dentry);
fs/debugfs/inode.c
633
d_make_persistent(dentry, inode);
fs/debugfs/inode.c
634
inc_nlink(d_inode(dentry->d_parent));
fs/debugfs/inode.c
635
fsnotify_mkdir(d_inode(dentry->d_parent), dentry);
fs/debugfs/inode.c
636
return debugfs_end_creating(dentry);
fs/debugfs/inode.c
663
struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
fs/debugfs/inode.c
666
struct dentry *dentry;
fs/debugfs/inode.c
672
dentry = debugfs_start_creating(name, parent);
fs/debugfs/inode.c
673
if (IS_ERR(dentry)) {
fs/debugfs/inode.c
675
return dentry;
fs/debugfs/inode.c
678
inode = debugfs_get_inode(dentry->d_sb);
fs/debugfs/inode.c
683
return debugfs_failed_creating(dentry);
fs/debugfs/inode.c
688
d_make_persistent(dentry, inode);
fs/debugfs/inode.c
689
return debugfs_end_creating(dentry);
fs/debugfs/inode.c
693
static void __debugfs_file_removed(struct dentry *dentry)
fs/debugfs/inode.c
704
fsd = READ_ONCE(dentry->d_fsdata);
fs/debugfs/inode.c
747
c->cancel(dentry, c->cancel_data);
fs/debugfs/inode.c
755
static void remove_one(struct dentry *victim)
fs/debugfs/inode.c
775
void debugfs_remove(struct dentry *dentry)
fs/debugfs/inode.c
777
if (IS_ERR_OR_NULL(dentry))
fs/debugfs/inode.c
781
simple_recursive_removal(dentry, remove_one);
fs/debugfs/inode.c
795
void debugfs_lookup_and_remove(const char *name, struct dentry *parent)
fs/debugfs/inode.c
797
struct dentry *dentry;
fs/debugfs/inode.c
799
dentry = debugfs_lookup(name, parent);
fs/debugfs/inode.c
800
if (!dentry)
fs/debugfs/inode.c
803
debugfs_remove(dentry);
fs/debugfs/inode.c
804
dput(dentry);
fs/debugfs/inode.c
821
int __printf(2, 3) debugfs_change_name(struct dentry *dentry, const char *fmt, ...)
fs/debugfs/inode.c
826
struct dentry *target;
fs/debugfs/inode.c
831
if (IS_ERR_OR_NULL(dentry))
fs/debugfs/inode.c
840
rd.old_parent = dget_parent(dentry);
fs/debugfs/inode.c
849
error = start_renaming_two_dentries(&rd, dentry, target);
fs/debugfs/inode.c
851
if (error == -EEXIST && target == dentry)
fs/debugfs/inode.c
858
take_dentry_name_snapshot(&old_name, dentry);
fs/debugfs/inode.c
859
simple_rename_timestamp(dir, dentry, dir, rd.new_dentry);
fs/debugfs/inode.c
860
d_move(dentry, rd.new_dentry);
fs/debugfs/inode.c
861
fsnotify_move(dir, dir, &old_name.name, d_is_dir(dentry), NULL, dentry);
fs/devpts/inode.c
161
while (path.mnt->mnt_root == path.dentry)
fs/devpts/inode.c
169
dput(path.dentry);
fs/devpts/inode.c
262
struct dentry *dentry;
fs/devpts/inode.c
264
struct dentry *root = sb->s_root;
fs/devpts/inode.c
270
dentry = simple_start_creating(root, "ptmx");
fs/devpts/inode.c
271
if (IS_ERR(dentry)) {
fs/devpts/inode.c
273
return PTR_ERR(dentry);
fs/devpts/inode.c
281
simple_done_creating(dentry);
fs/devpts/inode.c
295
d_make_persistent(dentry, inode);
fs/devpts/inode.c
297
simple_done_creating(dentry);
fs/devpts/inode.c
336
static int devpts_show_options(struct seq_file *seq, struct dentry *root)
fs/devpts/inode.c
498
struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv)
fs/devpts/inode.c
500
struct dentry *dentry;
fs/devpts/inode.c
503
struct dentry *root;
fs/devpts/inode.c
522
dentry = d_alloc_name(root, s);
fs/devpts/inode.c
523
if (!dentry) {
fs/devpts/inode.c
527
dentry->d_fsdata = priv;
fs/devpts/inode.c
528
d_make_persistent(dentry, inode);
fs/devpts/inode.c
529
fsnotify_create(d_inode(root), dentry);
fs/devpts/inode.c
530
dput(dentry);
fs/devpts/inode.c
531
return dentry; // borrowed
fs/devpts/inode.c
540
void *devpts_get_priv(struct dentry *dentry)
fs/devpts/inode.c
542
if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)
fs/devpts/inode.c
544
return dentry->d_fsdata;
fs/devpts/inode.c
553
void devpts_pty_kill(struct dentry *dentry)
fs/devpts/inode.c
555
WARN_ON_ONCE(dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC);
fs/devpts/inode.c
557
dentry->d_fsdata = NULL;
fs/devpts/inode.c
558
drop_nlink(dentry->d_inode);
fs/devpts/inode.c
559
d_drop(dentry);
fs/devpts/inode.c
560
fsnotify_unlink(d_inode(dentry->d_parent), dentry);
fs/devpts/inode.c
561
d_make_discardable(dentry);
fs/dlm/debug_fs.c
27
static struct dentry *dlm_root;
fs/dlm/debug_fs.c
28
static struct dentry *dlm_comms;
fs/dlm/debug_fs.c
740
struct dentry *d_node;
fs/dlm/dlm_internal.h
610
struct dentry *ls_debug_rsb_dentry; /* debugfs */
fs/dlm/dlm_internal.h
611
struct dentry *ls_debug_waiters_dentry; /* debugfs */
fs/dlm/dlm_internal.h
612
struct dentry *ls_debug_locks_dentry; /* debugfs */
fs/dlm/dlm_internal.h
613
struct dentry *ls_debug_all_dentry; /* debugfs */
fs/dlm/dlm_internal.h
614
struct dentry *ls_debug_toss_dentry; /* debugfs */
fs/dlm/dlm_internal.h
615
struct dentry *ls_debug_queued_asts_dentry; /* debugfs */
fs/ecryptfs/crypto.c
1004
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry);
fs/ecryptfs/crypto.c
1046
int ecryptfs_write_metadata(struct dentry *ecryptfs_dentry,
fs/ecryptfs/crypto.c
1175
struct dentry *ecryptfs_dentry,
fs/ecryptfs/crypto.c
1231
struct dentry *lower_dentry =
fs/ecryptfs/crypto.c
1232
ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry;
fs/ecryptfs/crypto.c
1252
int ecryptfs_read_and_validate_xattr_region(struct dentry *dentry,
fs/ecryptfs/crypto.c
1259
rc = ecryptfs_getxattr_lower(ecryptfs_dentry_to_lower(dentry),
fs/ecryptfs/crypto.c
1285
int ecryptfs_read_metadata(struct dentry *ecryptfs_dentry)
fs/ecryptfs/crypto.c
954
struct dentry *ecryptfs_dentry)
fs/ecryptfs/crypto.c
999
ecryptfs_write_metadata_to_xattr(struct dentry *ecryptfs_dentry,
fs/ecryptfs/dentry.c
34
struct dentry *dentry, unsigned int flags)
fs/ecryptfs/dentry.c
36
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/dentry.c
52
if (d_really_is_positive(dentry)) {
fs/ecryptfs/dentry.c
53
struct inode *inode = d_inode(dentry);
fs/ecryptfs/dentry.c
68
static void ecryptfs_d_release(struct dentry *dentry)
fs/ecryptfs/dentry.c
70
dput(dentry->d_fsdata);
fs/ecryptfs/ecryptfs_kernel.h
487
ecryptfs_set_dentry_lower(struct dentry *dentry,
fs/ecryptfs/ecryptfs_kernel.h
488
struct dentry *lower_dentry)
fs/ecryptfs/ecryptfs_kernel.h
490
dentry->d_fsdata = lower_dentry;
fs/ecryptfs/ecryptfs_kernel.h
493
static inline struct dentry *
fs/ecryptfs/ecryptfs_kernel.h
494
ecryptfs_dentry_to_lower(struct dentry *dentry)
fs/ecryptfs/ecryptfs_kernel.h
496
return dentry->d_fsdata;
fs/ecryptfs/ecryptfs_kernel.h
500
ecryptfs_lower_path(struct dentry *dentry)
fs/ecryptfs/ecryptfs_kernel.h
503
.mnt = ecryptfs_superblock_to_private(dentry->d_sb)->lower_mnt,
fs/ecryptfs/ecryptfs_kernel.h
504
.dentry = ecryptfs_dentry_to_lower(dentry)
fs/ecryptfs/ecryptfs_kernel.h
540
int ecryptfs_initialize_file(struct dentry *ecryptfs_dentry,
fs/ecryptfs/ecryptfs_kernel.h
564
int ecryptfs_write_metadata(struct dentry *ecryptfs_dentry,
fs/ecryptfs/ecryptfs_kernel.h
566
int ecryptfs_read_metadata(struct dentry *ecryptfs_dentry);
fs/ecryptfs/ecryptfs_kernel.h
572
int ecryptfs_read_and_validate_xattr_region(struct dentry *dentry,
fs/ecryptfs/ecryptfs_kernel.h
579
struct dentry *ecryptfs_dentry,
fs/ecryptfs/ecryptfs_kernel.h
583
unsigned char *src, struct dentry *ecryptfs_dentry);
fs/ecryptfs/ecryptfs_kernel.h
584
int ecryptfs_truncate(struct dentry *dentry, loff_t new_length);
fs/ecryptfs/ecryptfs_kernel.h
586
ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode,
fs/ecryptfs/ecryptfs_kernel.h
589
ecryptfs_setxattr(struct dentry *dentry, struct inode *inode, const char *name,
fs/ecryptfs/ecryptfs_kernel.h
674
struct dentry *lower_dentry,
fs/ecryptfs/ecryptfs_kernel.h
677
int ecryptfs_get_lower_file(struct dentry *dentry, struct inode *inode);
fs/ecryptfs/file.c
144
static int read_or_initialize_metadata(struct dentry *dentry)
fs/ecryptfs/file.c
146
struct inode *inode = d_inode(dentry);
fs/ecryptfs/file.c
162
rc = ecryptfs_read_metadata(dentry);
fs/ecryptfs/file.c
175
rc = ecryptfs_initialize_file(dentry, inode);
fs/ecryptfs/file.c
212
struct dentry *ecryptfs_dentry = file->f_path.dentry;
fs/ecryptfs/file.c
279
struct dentry *ecryptfs_dentry = file->f_path.dentry;
fs/ecryptfs/file.c
40
struct path path = ecryptfs_lower_path(file->f_path.dentry);
fs/ecryptfs/file.c
64
struct path path = ecryptfs_lower_path(in->f_path.dentry);
fs/ecryptfs/inode.c
1001
struct dentry *dentry = path->dentry;
fs/ecryptfs/inode.c
1003
struct path lower_path = ecryptfs_lower_path(dentry);
fs/ecryptfs/inode.c
1008
fsstack_copy_attr_all(d_inode(dentry),
fs/ecryptfs/inode.c
1009
ecryptfs_inode_to_lower(d_inode(dentry)));
fs/ecryptfs/inode.c
1011
d_inode(dentry), stat);
fs/ecryptfs/inode.c
1018
ecryptfs_setxattr(struct dentry *dentry, struct inode *inode,
fs/ecryptfs/inode.c
1023
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
1026
lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
1042
ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode,
fs/ecryptfs/inode.c
1059
ecryptfs_getxattr(struct dentry *dentry, struct inode *inode,
fs/ecryptfs/inode.c
1062
return ecryptfs_getxattr_lower(ecryptfs_dentry_to_lower(dentry),
fs/ecryptfs/inode.c
1068
ecryptfs_listxattr(struct dentry *dentry, char *list, size_t size)
fs/ecryptfs/inode.c
1071
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
1073
lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
1085
static int ecryptfs_removexattr(struct dentry *dentry, struct inode *inode,
fs/ecryptfs/inode.c
1089
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
1092
lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
1105
static int ecryptfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/ecryptfs/inode.c
1107
return vfs_fileattr_get(ecryptfs_dentry_to_lower(dentry), fa);
fs/ecryptfs/inode.c
1111
struct dentry *dentry, struct file_kattr *fa)
fs/ecryptfs/inode.c
1113
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
1117
fsstack_copy_attr_all(d_inode(dentry), d_inode(lower_dentry));
fs/ecryptfs/inode.c
1123
struct dentry *dentry, int type)
fs/ecryptfs/inode.c
1125
return vfs_get_acl(idmap, ecryptfs_dentry_to_lower(dentry),
fs/ecryptfs/inode.c
1130
struct dentry *dentry, struct posix_acl *acl,
fs/ecryptfs/inode.c
1134
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
1140
fsstack_copy_attr_all(d_inode(dentry), lower_inode);
fs/ecryptfs/inode.c
1183
struct dentry *dentry, struct inode *inode,
fs/ecryptfs/inode.c
1186
return ecryptfs_getxattr(dentry, inode, name, buffer, size);
fs/ecryptfs/inode.c
1191
struct dentry *dentry, struct inode *inode,
fs/ecryptfs/inode.c
1196
return ecryptfs_setxattr(dentry, inode, name, value, size, flags);
fs/ecryptfs/inode.c
1199
return ecryptfs_removexattr(dentry, inode, name);
fs/ecryptfs/inode.c
133
static int ecryptfs_interpose(struct dentry *lower_dentry,
fs/ecryptfs/inode.c
134
struct dentry *dentry, struct super_block *sb)
fs/ecryptfs/inode.c
140
d_instantiate(dentry, inode);
fs/ecryptfs/inode.c
145
static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry,
fs/ecryptfs/inode.c
148
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
152
lower_dentry = ecryptfs_start_removing_dentry(dentry);
fs/ecryptfs/inode.c
168
d_drop(dentry);
fs/ecryptfs/inode.c
186
struct dentry *ecryptfs_dentry, umode_t mode)
fs/ecryptfs/inode.c
189
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
225
int ecryptfs_initialize_file(struct dentry *ecryptfs_dentry,
fs/ecryptfs/inode.c
27
static struct dentry *ecryptfs_start_creating_dentry(struct dentry *dentry)
fs/ecryptfs/inode.c
270
struct inode *directory_inode, struct dentry *ecryptfs_dentry,
fs/ecryptfs/inode.c
29
struct dentry *parent = dget_parent(dentry);
fs/ecryptfs/inode.c
298
static int ecryptfs_i_size_read(struct dentry *dentry, struct inode *inode)
fs/ecryptfs/inode.c
30
struct dentry *ret;
fs/ecryptfs/inode.c
303
rc = ecryptfs_get_lower_file(dentry, inode);
fs/ecryptfs/inode.c
308
dentry, rc);
fs/ecryptfs/inode.c
320
rc = ecryptfs_read_and_validate_xattr_region(dentry, inode);
fs/ecryptfs/inode.c
33
ecryptfs_dentry_to_lower(dentry));
fs/ecryptfs/inode.c
332
static struct dentry *ecryptfs_lookup_interpose(struct dentry *dentry,
fs/ecryptfs/inode.c
333
struct dentry *lower_dentry)
fs/ecryptfs/inode.c
335
struct dentry *lower_parent = ecryptfs_dentry_to_lower(dentry->d_parent);
fs/ecryptfs/inode.c
339
fsstack_copy_attr_atime(d_inode(dentry->d_parent),
fs/ecryptfs/inode.c
343
ecryptfs_set_dentry_lower(dentry, lower_dentry);
fs/ecryptfs/inode.c
355
d_add(dentry, NULL);
fs/ecryptfs/inode.c
358
inode = __ecryptfs_get_inode(lower_inode, dentry->d_sb);
fs/ecryptfs/inode.c
365
rc = ecryptfs_i_size_read(dentry, inode);
fs/ecryptfs/inode.c
374
return d_splice_alias(inode, dentry);
fs/ecryptfs/inode.c
38
static struct dentry *ecryptfs_start_removing_dentry(struct dentry *dentry)
fs/ecryptfs/inode.c
386
static struct dentry *ecryptfs_lookup(struct inode *ecryptfs_dir_inode,
fs/ecryptfs/inode.c
387
struct dentry *ecryptfs_dentry,
fs/ecryptfs/inode.c
392
struct dentry *lower_dir_dentry, *lower_dentry;
fs/ecryptfs/inode.c
395
struct dentry *res;
fs/ecryptfs/inode.c
40
struct dentry *parent = dget_parent(dentry);
fs/ecryptfs/inode.c
41
struct dentry *ret;
fs/ecryptfs/inode.c
430
static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir,
fs/ecryptfs/inode.c
431
struct dentry *new_dentry)
fs/ecryptfs/inode.c
433
struct dentry *lower_old_dentry;
fs/ecryptfs/inode.c
434
struct dentry *lower_new_dentry;
fs/ecryptfs/inode.c
44
ecryptfs_dentry_to_lower(dentry));
fs/ecryptfs/inode.c
462
static int ecryptfs_unlink(struct inode *dir, struct dentry *dentry)
fs/ecryptfs/inode.c
464
return ecryptfs_do_unlink(dir, dentry, d_inode(dentry));
fs/ecryptfs/inode.c
468
struct inode *dir, struct dentry *dentry,
fs/ecryptfs/inode.c
472
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
478
lower_dentry = ecryptfs_start_creating_dentry(dentry);
fs/ecryptfs/inode.c
496
rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb);
fs/ecryptfs/inode.c
503
if (d_really_is_negative(dentry))
fs/ecryptfs/inode.c
504
d_drop(dentry);
fs/ecryptfs/inode.c
508
static struct dentry *ecryptfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/ecryptfs/inode.c
509
struct dentry *dentry, umode_t mode)
fs/ecryptfs/inode.c
512
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
513
struct dentry *lower_dir_dentry;
fs/ecryptfs/inode.c
516
lower_dentry = ecryptfs_start_creating_dentry(dentry);
fs/ecryptfs/inode.c
529
rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb);
fs/ecryptfs/inode.c
538
if (d_really_is_negative(dentry))
fs/ecryptfs/inode.c
539
d_drop(dentry);
fs/ecryptfs/inode.c
543
static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry)
fs/ecryptfs/inode.c
545
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
549
lower_dentry = ecryptfs_start_removing_dentry(dentry);
fs/ecryptfs/inode.c
556
clear_nlink(d_inode(dentry));
fs/ecryptfs/inode.c
562
d_drop(dentry);
fs/ecryptfs/inode.c
568
struct dentry *dentry, umode_t mode, dev_t dev)
fs/ecryptfs/inode.c
571
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
574
lower_dentry = ecryptfs_start_creating_dentry(dentry);
fs/ecryptfs/inode.c
582
rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb);
fs/ecryptfs/inode.c
589
if (d_really_is_negative(dentry))
fs/ecryptfs/inode.c
590
d_drop(dentry);
fs/ecryptfs/inode.c
596
struct dentry *old_dentry, struct inode *new_dir,
fs/ecryptfs/inode.c
597
struct dentry *new_dentry, unsigned int flags)
fs/ecryptfs/inode.c
600
struct dentry *lower_old_dentry;
fs/ecryptfs/inode.c
601
struct dentry *lower_new_dentry;
fs/ecryptfs/inode.c
602
struct dentry *lower_old_dir_dentry;
fs/ecryptfs/inode.c
603
struct dentry *lower_new_dir_dentry;
fs/ecryptfs/inode.c
639
static char *ecryptfs_readlink_lower(struct dentry *dentry, size_t *bufsiz)
fs/ecryptfs/inode.c
642
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
651
rc = ecryptfs_decode_and_decrypt_filename(&buf, bufsiz, dentry->d_sb,
fs/ecryptfs/inode.c
660
static const char *ecryptfs_get_link(struct dentry *dentry,
fs/ecryptfs/inode.c
667
if (!dentry)
fs/ecryptfs/inode.c
670
buf = ecryptfs_readlink_lower(dentry, &len);
fs/ecryptfs/inode.c
673
fsstack_copy_attr_atime(d_inode(dentry),
fs/ecryptfs/inode.c
674
d_inode(ecryptfs_dentry_to_lower(dentry)));
fs/ecryptfs/inode.c
725
static int truncate_upper(struct dentry *dentry, struct iattr *ia,
fs/ecryptfs/inode.c
729
struct inode *inode = d_inode(dentry);
fs/ecryptfs/inode.c
739
rc = ecryptfs_get_lower_file(dentry, inode);
fs/ecryptfs/inode.c
742
crypt_stat = &ecryptfs_inode_to_private(d_inode(dentry))->crypt_stat;
fs/ecryptfs/inode.c
843
int ecryptfs_truncate(struct dentry *dentry, loff_t new_length)
fs/ecryptfs/inode.c
849
rc = ecryptfs_inode_newsize_ok(d_inode(dentry), new_length);
fs/ecryptfs/inode.c
853
rc = truncate_upper(dentry, &ia, &lower_ia);
fs/ecryptfs/inode.c
855
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
887
struct dentry *dentry, struct iattr *ia)
fs/ecryptfs/inode.c
890
struct dentry *lower_dentry;
fs/ecryptfs/inode.c
896
crypt_stat = &ecryptfs_inode_to_private(d_inode(dentry))->crypt_stat;
fs/ecryptfs/inode.c
899
inode = d_inode(dentry);
fs/ecryptfs/inode.c
901
lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/ecryptfs/inode.c
903
if (d_is_dir(dentry))
fs/ecryptfs/inode.c
905
else if (d_is_reg(dentry)
fs/ecryptfs/inode.c
911
dentry->d_sb)->mount_crypt_stat;
fs/ecryptfs/inode.c
912
rc = ecryptfs_get_lower_file(dentry, inode);
fs/ecryptfs/inode.c
917
rc = ecryptfs_read_metadata(dentry);
fs/ecryptfs/inode.c
938
rc = setattr_prepare(&nop_mnt_idmap, dentry, ia);
fs/ecryptfs/inode.c
951
rc = truncate_upper(dentry, ia, &lower_ia);
fs/ecryptfs/inode.c
975
struct dentry *dentry = path->dentry;
fs/ecryptfs/inode.c
980
dentry->d_sb)->mount_crypt_stat;
fs/ecryptfs/inode.c
981
generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(dentry), stat);
fs/ecryptfs/inode.c
986
target = ecryptfs_readlink_lower(dentry, &targetsiz);
fs/ecryptfs/keystore.c
1718
struct dentry *ecryptfs_dentry)
fs/ecryptfs/keystore.c
2361
struct dentry *ecryptfs_dentry, size_t *len,
fs/ecryptfs/kthread.c
118
struct dentry *lower_dentry,
fs/ecryptfs/kthread.c
128
req.path.dentry = lower_dentry;
fs/ecryptfs/main.c
107
static int ecryptfs_init_lower_file(struct dentry *dentry,
fs/ecryptfs/main.c
111
struct path path = ecryptfs_lower_path(dentry);
fs/ecryptfs/main.c
114
rc = ecryptfs_privileged_open(lower_file, path.dentry, path.mnt, cred);
fs/ecryptfs/main.c
118
"rc = [%d]\n", path.dentry, path.mnt, rc);
fs/ecryptfs/main.c
124
int ecryptfs_get_lower_file(struct dentry *dentry, struct inode *inode)
fs/ecryptfs/main.c
135
rc = ecryptfs_init_lower_file(dentry,
fs/ecryptfs/main.c
489
if (path.dentry->d_sb->s_type == &ecryptfs_fs_type) {
fs/ecryptfs/main.c
504
!uid_eq(d_inode(path.dentry)->i_uid, current_uid())) {
fs/ecryptfs/main.c
508
i_uid_read(d_inode(path.dentry)),
fs/ecryptfs/main.c
513
ecryptfs_set_superblock_lower(s, path.dentry->d_sb);
fs/ecryptfs/main.c
520
s->s_flags |= path.dentry->d_sb->s_flags & SB_POSIXACL;
fs/ecryptfs/main.c
527
if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)
fs/ecryptfs/main.c
530
s->s_maxbytes = path.dentry->d_sb->s_maxbytes;
fs/ecryptfs/main.c
531
s->s_blocksize = path.dentry->d_sb->s_blocksize;
fs/ecryptfs/main.c
533
s->s_stack_depth = path.dentry->d_sb->s_stack_depth + 1;
fs/ecryptfs/main.c
541
inode = ecryptfs_get_inode(d_inode(path.dentry), s);
fs/ecryptfs/main.c
552
ecryptfs_set_dentry_lower(s->s_root, path.dentry);
fs/ecryptfs/mmap.c
325
rc = ecryptfs_truncate(iocb->ki_filp->f_path.dentry,
fs/ecryptfs/mmap.c
385
struct dentry *lower_dentry =
fs/ecryptfs/mmap.c
386
ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry;
fs/ecryptfs/super.c
101
&ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat);
fs/ecryptfs/super.c
129
static int ecryptfs_show_options(struct seq_file *m, struct dentry *root)
fs/ecryptfs/super.c
87
static int ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ecryptfs/super.c
89
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
fs/efivarfs/file.c
131
simple_recursive_removal(file->f_path.dentry, NULL);
fs/efivarfs/inode.c
110
var->var.VariableName[i] = dentry->d_name.name[i];
fs/efivarfs/inode.c
116
d_make_persistent(dentry, inode);
fs/efivarfs/inode.c
121
static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
fs/efivarfs/inode.c
123
struct efivar_entry *var = d_inode(dentry)->i_private;
fs/efivarfs/inode.c
128
return simple_unlink(dir, dentry);
fs/efivarfs/inode.c
138
efivarfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/efivarfs/inode.c
143
i_flags = d_inode(dentry)->i_flags;
fs/efivarfs/inode.c
154
struct dentry *dentry, struct file_kattr *fa)
fs/efivarfs/inode.c
167
inode_set_flags(d_inode(dentry), i_flags, S_IMMUTABLE);
fs/efivarfs/inode.c
173
static int efivarfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/efivarfs/inode.c
176
struct inode *inode = d_inode(dentry);
fs/efivarfs/inode.c
179
error = setattr_prepare(idmap, dentry, iattr);
fs/efivarfs/inode.c
78
struct dentry *dentry, umode_t mode, bool excl)
fs/efivarfs/inode.c
86
if (!efivarfs_valid_name(dentry->d_name.name, dentry->d_name.len))
fs/efivarfs/inode.c
90
namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1;
fs/efivarfs/inode.c
92
err = guid_parse(dentry->d_name.name + namelen + 1, &vendor);
fs/efivarfs/inode.c
99
dentry->d_name.name, namelen))
fs/efivarfs/super.c
109
buf->f_type = dentry->d_sb->s_magic;
fs/efivarfs/super.c
149
static int efivarfs_d_compare(const struct dentry *dentry,
fs/efivarfs/super.c
170
static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr)
fs/efivarfs/super.c
172
unsigned long hash = init_name_hash(dentry);
fs/efivarfs/super.c
192
static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name)
fs/efivarfs/super.c
194
struct dentry *d;
fs/efivarfs/super.c
217
struct dentry *dentry;
fs/efivarfs/super.c
230
dentry = try_lookup_noperm(&QSTR(name), sb->s_root);
fs/efivarfs/super.c
232
if (!IS_ERR_OR_NULL(dentry))
fs/efivarfs/super.c
233
dput(dentry);
fs/efivarfs/super.c
235
return dentry != NULL;
fs/efivarfs/super.c
244
struct dentry *dentry, *root = sb->s_root;
fs/efivarfs/super.c
266
dentry = efivarfs_alloc_dentry(root, name);
fs/efivarfs/super.c
267
if (IS_ERR(dentry)) {
fs/efivarfs/super.c
268
err = PTR_ERR(dentry);
fs/efivarfs/super.c
281
d_make_persistent(dentry, inode);
fs/efivarfs/super.c
282
dput(dentry);
fs/efivarfs/super.c
349
struct dentry *root;
fs/efivarfs/super.c
415
struct dentry *dentry;
fs/efivarfs/super.c
425
dentry = try_lookup_noperm(&QSTR(name), sb->s_root);
fs/efivarfs/super.c
426
if (IS_ERR(dentry)) {
fs/efivarfs/super.c
427
err = PTR_ERR(dentry);
fs/efivarfs/super.c
431
if (!dentry) {
fs/efivarfs/super.c
437
dput(dentry);
fs/efivarfs/super.c
456
struct dentry *child = NULL;
fs/efivarfs/super.c
65
static int efivarfs_show_options(struct seq_file *m, struct dentry *root)
fs/efivarfs/super.c
80
static int efivarfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/efivarfs/super.c
86
u64 id = huge_encode_dev(dentry->d_sb->s_dev);
fs/efs/efs.h
136
extern struct dentry *efs_lookup(struct inode *, struct dentry *, unsigned int);
fs/efs/efs.h
137
extern struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/efs/efs.h
139
extern struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/efs/efs.h
141
extern struct dentry *efs_get_parent(struct dentry *);
fs/efs/namei.c
103
struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/efs/namei.c
110
struct dentry *efs_get_parent(struct dentry *child)
fs/efs/namei.c
112
struct dentry *parent = ERR_PTR(-ENOENT);
fs/efs/namei.c
65
struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/efs/namei.c
70
inodenum = efs_find_entry(dir, dentry->d_name.name, dentry->d_name.len);
fs/efs/namei.c
74
return d_splice_alias(inode, dentry);
fs/efs/namei.c
96
struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/efs/super.c
22
static int efs_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/efs/super.c
348
static int efs_statfs(struct dentry *dentry, struct kstatfs *buf) {
fs/efs/super.c
349
struct super_block *sb = dentry->d_sb;
fs/erofs/inode.c
317
struct inode *const inode = d_inode(path->dentry);
fs/erofs/namei.c
193
static struct dentry *erofs_lookup(struct inode *dir, struct dentry *dentry,
fs/erofs/namei.c
201
trace_erofs_lookup(dir, dentry, flags);
fs/erofs/namei.c
203
if (dentry->d_name.len > EROFS_NAME_LEN)
fs/erofs/namei.c
206
err = erofs_namei(dir, &dentry->d_name, &nid, &d_type);
fs/erofs/namei.c
215
return d_splice_alias(inode, dentry);
fs/erofs/super.c
1058
static int erofs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/erofs/super.c
1060
struct super_block *sb = dentry->d_sb;
fs/erofs/super.c
1079
static int erofs_show_options(struct seq_file *seq, struct dentry *root)
fs/erofs/super.c
575
static struct dentry *erofs_fh_to_dentry(struct super_block *sb,
fs/erofs/super.c
586
static struct dentry *erofs_fh_to_parent(struct super_block *sb,
fs/erofs/super.c
596
static struct dentry *erofs_get_parent(struct dentry *child)
fs/erofs/xattr.c
161
prefix = erofs_xattr_prefix(base_index, it->dentry);
fs/erofs/xattr.c
25
struct dentry *dentry;
fs/erofs/xattr.c
28
static const char *erofs_xattr_prefix(unsigned int idx, struct dentry *dentry);
fs/erofs/xattr.c
372
ssize_t erofs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/erofs/xattr.c
376
struct inode *inode = d_inode(dentry);
fs/erofs/xattr.c
384
it.sb = dentry->d_sb;
fs/erofs/xattr.c
386
it.dentry = dentry;
fs/erofs/xattr.c
400
static bool erofs_xattr_user_list(struct dentry *dentry)
fs/erofs/xattr.c
402
return test_opt(&EROFS_SB(dentry->d_sb)->opt, XATTR_USER);
fs/erofs/xattr.c
405
static bool erofs_xattr_trusted_list(struct dentry *dentry)
fs/erofs/xattr.c
411
struct dentry *unused, struct inode *inode,
fs/erofs/xattr.c
452
static const char *erofs_xattr_prefix(unsigned int idx, struct dentry *dentry)
fs/erofs/xattr.c
469
if (xattr_handler_can_list(handler, dentry))
fs/erofs/xattr.h
18
ssize_t erofs_listxattr(struct dentry *, char *, size_t);
fs/eventpoll.c
1500
take_dentry_name_snapshot(&n, epi->ffd.file->f_path.dentry);
fs/exec.c
118
VFS_WARN_ON_ONCE(IS_ANON_FILE(d_inode(path->dentry)) &&
fs/exec.c
1234
__set_task_comm(me, smp_load_acquire(&bprm->file->f_path.dentry->d_name.name),
fs/exfat/balloc.c
155
ep->dentry.bitmap.flags == 0x0) {
fs/exfat/balloc.c
83
sbi->map_clu = le32_to_cpu(ep->dentry.bitmap.start_clu);
fs/exfat/balloc.c
84
map_size = le64_to_cpu(ep->dentry.bitmap.size);
fs/exfat/dir.c
1017
dentry = hint_stat->eidx;
fs/exfat/dir.c
1018
end_eidx = dentry;
fs/exfat/dir.c
1029
i = dentry & (dentries_per_clu - 1);
fs/exfat/dir.c
1030
for (; i < dentries_per_clu; i++, dentry++) {
fs/exfat/dir.c
1034
if (rewind && dentry == end_eidx)
fs/exfat/dir.c
1048
dentry, num_entries,
fs/exfat/dir.c
1063
num_ext = ep->dentry.file.num_ext;
fs/exfat/dir.c
1079
ep->dentry.stream.name_hash);
fs/exfat/dir.c
1082
ep->dentry.stream.name_len) {
fs/exfat/dir.c
115
while (clu.dir != EXFAT_EOF_CLUSTER && dentry < max_dentries) {
fs/exfat/dir.c
1158
dentry = 0;
fs/exfat/dir.c
116
i = dentry & (dentries_per_clu - 1);
fs/exfat/dir.c
118
for ( ; i < dentries_per_clu; i++, dentry++) {
fs/exfat/dir.c
1180
if (!((dentry + 1) & (dentries_per_clu - 1))) {
fs/exfat/dir.c
1196
return (dentry - num_ext);
fs/exfat/dir.c
1201
hint_stat->eidx = dentry + 1;
fs/exfat/dir.c
1202
return dentry - num_ext;
fs/exfat/dir.c
1259
int dentry = 0;
fs/exfat/dir.c
1272
for (i = 0; i < sbi->dentries_per_clu; i++, dentry++) {
fs/exfat/dir.c
1281
hint_femp.eidx = dentry;
fs/exfat/dir.c
1313
hint_femp.eidx = dentry;
fs/exfat/dir.c
134
num_ext = ep->dentry.file.num_ext;
fs/exfat/dir.c
1345
label_out->name_len = ep->dentry.volume_label.char_count;
fs/exfat/dir.c
135
dir_entry->attr = le16_to_cpu(ep->dentry.file.attr);
fs/exfat/dir.c
1353
label_out->name[i] = le16_to_cpu(ep->dentry.volume_label.volume_label[i]);
fs/exfat/dir.c
1392
if (label->name_len == 0 && ep->dentry.volume_label.char_count == 0) {
fs/exfat/dir.c
1402
ep->dentry.volume_label.volume_label[i] =
fs/exfat/dir.c
1405
ep->dentry.volume_label.char_count = label->name_len;
fs/exfat/dir.c
156
ei->hint_bmap.off = EXFAT_DEN_TO_CLU(dentry, sbi);
fs/exfat/dir.c
159
*cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext);
fs/exfat/dir.c
176
*cpos = EXFAT_DEN_TO_B(dentry);
fs/exfat/dir.c
21
*uniname = le16_to_cpu(ep->dentry.name.unicode_0_14[i]);
fs/exfat/dir.c
346
if (le16_to_cpu(ep->dentry.file.attr) & EXFAT_ATTR_SUBDIR)
fs/exfat/dir.c
397
ep->dentry.file.attr = cpu_to_le16(EXFAT_ATTR_SUBDIR);
fs/exfat/dir.c
400
ep->dentry.file.attr = cpu_to_le16(EXFAT_ATTR_ARCHIVE);
fs/exfat/dir.c
410
ep->dentry.stream.flags = ALLOC_FAT_CHAIN;
fs/exfat/dir.c
412
ep->dentry.stream.flags = ALLOC_NO_FAT_CHAIN;
fs/exfat/dir.c
413
ep->dentry.stream.start_clu = cpu_to_le32(start_clu);
fs/exfat/dir.c
414
ep->dentry.stream.valid_size = cpu_to_le64(size);
fs/exfat/dir.c
415
ep->dentry.stream.size = cpu_to_le64(size);
fs/exfat/dir.c
424
ep->dentry.name.flags = 0x0;
fs/exfat/dir.c
428
ep->dentry.name.unicode_0_14[i] = cpu_to_le16(*uniname);
fs/exfat/dir.c
431
ep->dentry.name.unicode_0_14[i] = 0x0;
fs/exfat/dir.c
448
&ep->dentry.file.create_tz,
fs/exfat/dir.c
449
&ep->dentry.file.create_time,
fs/exfat/dir.c
450
&ep->dentry.file.create_date,
fs/exfat/dir.c
451
&ep->dentry.file.create_time_cs);
fs/exfat/dir.c
453
&ep->dentry.file.modify_tz,
fs/exfat/dir.c
454
&ep->dentry.file.modify_time,
fs/exfat/dir.c
455
&ep->dentry.file.modify_date,
fs/exfat/dir.c
456
&ep->dentry.file.modify_time_cs);
fs/exfat/dir.c
458
&ep->dentry.file.access_tz,
fs/exfat/dir.c
459
&ep->dentry.file.access_time,
fs/exfat/dir.c
460
&ep->dentry.file.access_date,
fs/exfat/dir.c
473
le32_to_cpu(ep->dentry.generic_secondary.start_clu);
fs/exfat/dir.c
474
u64 size = le64_to_cpu(ep->dentry.generic_secondary.size);
fs/exfat/dir.c
475
unsigned char flags = ep->dentry.generic_secondary.flags;
fs/exfat/dir.c
494
ep->dentry.file.num_ext = (unsigned char)(num_entries - 1);
fs/exfat/dir.c
497
ep->dentry.stream.name_len = p_uniname->name_len;
fs/exfat/dir.c
498
ep->dentry.stream.name_hash = cpu_to_le16(p_uniname->name_hash);
fs/exfat/dir.c
541
ep->dentry.file.checksum = cpu_to_le16(chksum);
fs/exfat/dir.c
79
unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF;
fs/exfat/dir.c
798
num_entries = ep->dentry.file.num_ext + 1;
fs/exfat/dir.c
93
clu_offset = EXFAT_DEN_TO_CLU(dentry, sbi);
fs/exfat/dir.c
952
int dentry, int num_entries, int entry_type)
fs/exfat/dir.c
955
ei->hint_femp.eidx > dentry) {
fs/exfat/dir.c
960
candi_empty->eidx = dentry;
fs/exfat/dir.c
964
candi_empty->count += total_entries - dentry;
fs/exfat/dir.c
996
int i, rewind = 0, dentry = 0, end_eidx = 0, num_ext = 0, len;
fs/exfat/exfat_fs.h
111
#define EXFAT_DEN_TO_CLU(dentry, sbi) \
fs/exfat/exfat_fs.h
112
((dentry) >> ((sbi)->cluster_size_bits - DENTRY_SIZE_BITS))
fs/exfat/exfat_fs.h
466
int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/exfat/exfat_raw.h
186
} __packed dentry;
fs/exfat/file.c
273
struct inode *inode = d_backing_inode(path->dentry);
fs/exfat/file.c
285
int exfat_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/exfat/file.c
288
struct exfat_sb_info *sbi = EXFAT_SB(dentry->d_sb);
fs/exfat/file.c
289
struct inode *inode = dentry->d_inode;
fs/exfat/file.c
312
error = setattr_prepare(idmap, dentry, attr);
fs/exfat/file.c
432
file->f_path.dentry, &ia);
fs/exfat/file.c
437
err = exfat_setattr(file_mnt_idmap(file), file->f_path.dentry, &ia);
fs/exfat/file.c
441
fsnotify_change(file->f_path.dentry, ia.ia_valid);
fs/exfat/inode.c
51
ep->dentry.file.attr = cpu_to_le16(exfat_make_attr(inode));
fs/exfat/inode.c
55
&ep->dentry.file.create_tz,
fs/exfat/inode.c
56
&ep->dentry.file.create_time,
fs/exfat/inode.c
57
&ep->dentry.file.create_date,
fs/exfat/inode.c
58
&ep->dentry.file.create_time_cs);
fs/exfat/inode.c
61
&ep->dentry.file.modify_tz,
fs/exfat/inode.c
62
&ep->dentry.file.modify_time,
fs/exfat/inode.c
63
&ep->dentry.file.modify_date,
fs/exfat/inode.c
64
&ep->dentry.file.modify_time_cs);
fs/exfat/inode.c
67
&ep->dentry.file.access_tz,
fs/exfat/inode.c
68
&ep->dentry.file.access_time,
fs/exfat/inode.c
69
&ep->dentry.file.access_date,
fs/exfat/inode.c
78
ep2->dentry.stream.size = cpu_to_le64(on_disk_size);
fs/exfat/inode.c
85
ep2->dentry.stream.valid_size = ep2->dentry.stream.size;
fs/exfat/inode.c
87
ep2->dentry.stream.valid_size = cpu_to_le64(ei->valid_size);
fs/exfat/inode.c
90
ep2->dentry.stream.flags = ei->flags;
fs/exfat/inode.c
91
ep2->dentry.stream.start_clu = cpu_to_le32(ei->start_clu);
fs/exfat/inode.c
93
ep2->dentry.stream.flags = ALLOC_FAT_CHAIN;
fs/exfat/inode.c
94
ep2->dentry.stream.start_clu = EXFAT_FREE_CLUSTER;
fs/exfat/namei.c
1005
exfat_d_version_set(dentry, inode_query_iversion(dir));
fs/exfat/namei.c
101
static int exfat_d_cmp(const struct dentry *dentry, unsigned int len,
fs/exfat/namei.c
104
struct super_block *sb = dentry->d_sb;
fs/exfat/namei.c
1049
epnew->dentry.file.attr |= cpu_to_le16(EXFAT_ATTR_ARCHIVE);
fs/exfat/namei.c
1068
epold->dentry.file.attr |= cpu_to_le16(EXFAT_ATTR_ARCHIVE);
fs/exfat/namei.c
1109
epnew->dentry.file.attr |= cpu_to_le16(EXFAT_ATTR_ARCHIVE);
fs/exfat/namei.c
1138
struct dentry *new_dentry)
fs/exfat/namei.c
1243
struct inode *old_dir, struct dentry *old_dentry,
fs/exfat/namei.c
1244
struct inode *new_dir, struct dentry *new_dentry,
fs/exfat/namei.c
136
static int exfat_utf8_d_hash(const struct dentry *dentry, struct qstr *qstr)
fs/exfat/namei.c
138
struct super_block *sb = dentry->d_sb;
fs/exfat/namei.c
142
unsigned long hash = init_name_hash(dentry);
fs/exfat/namei.c
15
static inline unsigned long exfat_d_version(struct dentry *dentry)
fs/exfat/namei.c
162
static int exfat_utf8_d_cmp(const struct dentry *dentry, unsigned int len,
fs/exfat/namei.c
165
struct super_block *sb = dentry->d_sb;
fs/exfat/namei.c
17
return (unsigned long) dentry->d_fsdata;
fs/exfat/namei.c
20
static inline void exfat_d_version_set(struct dentry *dentry,
fs/exfat/namei.c
207
int i, dentry, ret;
fs/exfat/namei.c
216
dentry = hint_femp->eidx;
fs/exfat/namei.c
224
if (dentry + hint_femp->count == total_entries &&
fs/exfat/namei.c
23
dentry->d_fsdata = (void *) version;
fs/exfat/namei.c
232
dentry = 0;
fs/exfat/namei.c
235
while (dentry + num_entries <= total_entries &&
fs/exfat/namei.c
237
i = dentry & (dentries_per_clu - 1);
fs/exfat/namei.c
243
return dentry;
fs/exfat/namei.c
245
dentry += ret;
fs/exfat/namei.c
263
hint_femp->eidx = dentry;
fs/exfat/namei.c
265
if (dentry == total_entries || clu.dir == EXFAT_EOF_CLUSTER)
fs/exfat/namei.c
307
int dentry, ret;
fs/exfat/namei.c
326
while ((dentry = exfat_search_empty_slot(sb, &hint_femp, p_dir,
fs/exfat/namei.c
328
if (dentry != -ENOSPC)
fs/exfat/namei.c
329
return dentry;
fs/exfat/namei.c
35
struct dentry *dentry, unsigned int flags)
fs/exfat/namei.c
394
p_dir->size -= dentry / sbi->dentries_per_clu;
fs/exfat/namei.c
396
return dentry & (sbi->dentries_per_clu - 1);
fs/exfat/namei.c
470
int ret, dentry, num_entries;
fs/exfat/namei.c
491
dentry = exfat_find_empty_entry(inode, &info->dir, num_entries, &es);
fs/exfat/namei.c
492
if (dentry < 0) {
fs/exfat/namei.c
493
ret = dentry; /* -EIO or -ENOSPC */
fs/exfat/namei.c
50
if (d_really_is_positive(dentry))
fs/exfat/namei.c
518
info->entry = dentry;
fs/exfat/namei.c
546
struct dentry *dentry, umode_t mode, bool excl)
fs/exfat/namei.c
560
err = exfat_add_entry(dir, dentry->d_name.name, TYPE_FILE, &info);
fs/exfat/namei.c
583
d_instantiate(dentry, inode);
fs/exfat/namei.c
593
int ret, dentry, count;
fs/exfat/namei.c
60
return inode_eq_iversion(dir, exfat_d_version(dentry));
fs/exfat/namei.c
624
dentry = exfat_find_dir_entry(sb, ei, &cdir, &uni_name, &hint_opt);
fs/exfat/namei.c
625
if (dentry < 0)
fs/exfat/namei.c
626
return dentry; /* -error value */
fs/exfat/namei.c
631
cdir.size -= dentry / sbi->dentries_per_clu;
fs/exfat/namei.c
632
dentry = hint_opt.eidx;
fs/exfat/namei.c
635
info->entry = dentry;
fs/exfat/namei.c
638
if (exfat_get_dentry_set(&es, sb, &cdir, dentry, ES_2_ENTRIES))
fs/exfat/namei.c
644
info->attr = le16_to_cpu(ep->dentry.file.attr);
fs/exfat/namei.c
645
info->valid_size = le64_to_cpu(ep2->dentry.stream.valid_size);
fs/exfat/namei.c
646
info->size = le64_to_cpu(ep2->dentry.stream.size);
fs/exfat/namei.c
648
info->start_clu = le32_to_cpu(ep2->dentry.stream.start_clu);
fs/exfat/namei.c
666
info->flags = ep2->dentry.stream.flags;
fs/exfat/namei.c
669
ep->dentry.file.create_tz,
fs/exfat/namei.c
670
ep->dentry.file.create_time,
fs/exfat/namei.c
671
ep->dentry.file.create_date,
fs/exfat/namei.c
672
ep->dentry.file.create_time_cs);
fs/exfat/namei.c
674
ep->dentry.file.modify_tz,
fs/exfat/namei.c
675
ep->dentry.file.modify_time,
fs/exfat/namei.c
676
ep->dentry.file.modify_date,
fs/exfat/namei.c
677
ep->dentry.file.modify_time_cs);
fs/exfat/namei.c
679
ep->dentry.file.access_tz,
fs/exfat/namei.c
680
ep->dentry.file.access_time,
fs/exfat/namei.c
681
ep->dentry.file.access_date,
fs/exfat/namei.c
714
static int exfat_d_anon_disconn(struct dentry *dentry)
fs/exfat/namei.c
716
return IS_ROOT(dentry) && (dentry->d_flags & DCACHE_DISCONNECTED);
fs/exfat/namei.c
719
static struct dentry *exfat_lookup(struct inode *dir, struct dentry *dentry,
fs/exfat/namei.c
724
struct dentry *alias;
fs/exfat/namei.c
731
err = exfat_find(dir, &dentry->d_name, &info);
fs/exfat/namei.c
753
if (alias && alias->d_parent == dentry->d_parent &&
fs/exfat/namei.c
764
dentry->d_name.hash_len);
fs/exfat/namei.c
767
d_drop(dentry);
fs/exfat/namei.c
777
d_move(alias, dentry);
fs/exfat/namei.c
787
exfat_d_version_set(dentry, inode_query_iversion(dir));
fs/exfat/namei.c
789
return d_splice_alias(inode, dentry);
fs/exfat/namei.c
79
static int exfat_d_hash(const struct dentry *dentry, struct qstr *qstr)
fs/exfat/namei.c
796
static int exfat_unlink(struct inode *dir, struct dentry *dentry)
fs/exfat/namei.c
799
struct inode *inode = dentry->d_inode;
fs/exfat/namei.c
81
struct super_block *sb = dentry->d_sb;
fs/exfat/namei.c
841
exfat_d_version_set(dentry, inode_query_iversion(dir));
fs/exfat/namei.c
847
static struct dentry *exfat_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/exfat/namei.c
848
struct dentry *dentry, umode_t mode)
fs/exfat/namei.c
86
unsigned long hash = init_name_hash(dentry);
fs/exfat/namei.c
862
err = exfat_add_entry(dir, dentry->d_name.name, TYPE_DIR, &info);
fs/exfat/namei.c
885
d_instantiate(dentry, inode);
fs/exfat/namei.c
944
static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
fs/exfat/namei.c
946
struct inode *inode = dentry->d_inode;
fs/exfat/nls.c
770
tbl_clu = le32_to_cpu(ep->dentry.upcase.start_clu);
fs/exfat/nls.c
771
tbl_size = le64_to_cpu(ep->dentry.upcase.size);
fs/exfat/nls.c
776
le32_to_cpu(ep->dentry.upcase.checksum));
fs/exfat/super.c
116
static int exfat_show_options(struct seq_file *m, struct dentry *root)
fs/exfat/super.c
55
static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/exfat/super.c
57
struct super_block *sb = dentry->d_sb;
fs/exportfs/expfs.c
100
dentry->d_flags &= ~DCACHE_DISCONNECTED;
fs/exportfs/expfs.c
101
spin_unlock(&dentry->d_lock);
fs/exportfs/expfs.c
103
dput(dentry);
fs/exportfs/expfs.c
104
dentry = parent;
fs/exportfs/expfs.c
106
dput(dentry);
fs/exportfs/expfs.c
121
static struct dentry *reconnect_one(struct vfsmount *mnt,
fs/exportfs/expfs.c
122
struct dentry *dentry, char *nbuf)
fs/exportfs/expfs.c
124
struct dentry *parent;
fs/exportfs/expfs.c
125
struct dentry *tmp;
fs/exportfs/expfs.c
130
parent = mnt->mnt_sb->s_export_op->get_parent(dentry);
fs/exportfs/expfs.c
134
dentry->d_inode->i_ino, PTR_ERR(parent));
fs/exportfs/expfs.c
139
dentry->d_inode->i_ino, parent->d_inode->i_ino);
fs/exportfs/expfs.c
140
err = exportfs_get_name(mnt, parent, nbuf, dentry);
fs/exportfs/expfs.c
152
if (tmp != dentry) {
fs/exportfs/expfs.c
163
if (IS_ROOT(dentry)) {
fs/exportfs/expfs.c
187
if (!dentry_connected(dentry))
fs/exportfs/expfs.c
210
reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
fs/exportfs/expfs.c
212
struct dentry *dentry, *parent;
fs/exportfs/expfs.c
214
dentry = dget(target_dir);
fs/exportfs/expfs.c
216
while (dentry->d_flags & DCACHE_DISCONNECTED) {
fs/exportfs/expfs.c
217
BUG_ON(dentry == mnt->mnt_sb->s_root);
fs/exportfs/expfs.c
219
if (IS_ROOT(dentry))
fs/exportfs/expfs.c
220
parent = reconnect_one(mnt, dentry, nbuf);
fs/exportfs/expfs.c
222
parent = dget_parent(dentry);
fs/exportfs/expfs.c
226
dput(dentry);
fs/exportfs/expfs.c
229
dentry = parent;
fs/exportfs/expfs.c
231
dput(dentry);
fs/exportfs/expfs.c
24
static int get_name(const struct path *path, char *name, struct dentry *child);
fs/exportfs/expfs.c
27
static int exportfs_get_name(struct vfsmount *mnt, struct dentry *dir,
fs/exportfs/expfs.c
275
static int get_name(const struct path *path, char *name, struct dentry *child)
fs/exportfs/expfs.c
278
struct inode *dir = path->dentry->d_inode;
fs/exportfs/expfs.c
28
char *name, struct dentry *child)
fs/exportfs/expfs.c
284
.dentry = child,
fs/exportfs/expfs.c
31
struct path path = {.mnt = mnt, .dentry = dir};
fs/exportfs/expfs.c
415
int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len,
fs/exportfs/expfs.c
419
struct dentry *p = NULL;
fs/exportfs/expfs.c
42
static struct dentry *
fs/exportfs/expfs.c
420
struct inode *inode = dentry->d_inode, *parent = NULL;
fs/exportfs/expfs.c
423
p = dget_parent(dentry);
fs/exportfs/expfs.c
43
find_acceptable_alias(struct dentry *result,
fs/exportfs/expfs.c
438
struct dentry *
fs/exportfs/expfs.c
44
int (*acceptable)(void *context, struct dentry *dentry),
fs/exportfs/expfs.c
441
int (*acceptable)(void *, struct dentry *),
fs/exportfs/expfs.c
445
struct dentry *result, *alias;
fs/exportfs/expfs.c
47
struct dentry *dentry, *toput = NULL;
fs/exportfs/expfs.c
500
struct dentry *target_dir, *nresult;
fs/exportfs/expfs.c
55
hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) {
fs/exportfs/expfs.c
56
dget(dentry);
fs/exportfs/expfs.c
592
struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid,
fs/exportfs/expfs.c
594
int (*acceptable)(void *, struct dentry *),
fs/exportfs/expfs.c
597
struct dentry *ret;
fs/exportfs/expfs.c
60
if (dentry != result && acceptable(context, dentry)) {
fs/exportfs/expfs.c
62
return dentry;
fs/exportfs/expfs.c
65
toput = dentry;
fs/exportfs/expfs.c
74
static bool dentry_connected(struct dentry *dentry)
fs/exportfs/expfs.c
76
dget(dentry);
fs/exportfs/expfs.c
77
while (dentry->d_flags & DCACHE_DISCONNECTED) {
fs/exportfs/expfs.c
78
struct dentry *parent = dget_parent(dentry);
fs/exportfs/expfs.c
80
dput(dentry);
fs/exportfs/expfs.c
81
if (dentry == parent) {
fs/exportfs/expfs.c
85
dentry = parent;
fs/exportfs/expfs.c
87
dput(dentry);
fs/exportfs/expfs.c
91
static void clear_disconnected(struct dentry *dentry)
fs/exportfs/expfs.c
93
dget(dentry);
fs/exportfs/expfs.c
94
while (dentry->d_flags & DCACHE_DISCONNECTED) {
fs/exportfs/expfs.c
95
struct dentry *parent = dget_parent(dentry);
fs/exportfs/expfs.c
97
WARN_ON_ONCE(IS_ROOT(dentry));
fs/exportfs/expfs.c
99
spin_lock(&dentry->d_lock);
fs/ext2/acl.c
222
ext2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ext2/acl.c
227
struct inode *inode = d_inode(dentry);
fs/ext2/acl.h
59
extern int ext2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ext2/dir.c
477
int ext2_add_link (struct dentry *dentry, struct inode *inode)
fs/ext2/dir.c
479
struct inode *dir = d_inode(dentry->d_parent);
fs/ext2/dir.c
480
const char *name = dentry->d_name.name;
fs/ext2/dir.c
481
int namelen = dentry->d_name.len;
fs/ext2/ext2.h
720
int ext2_add_link(struct dentry *, struct inode *);
fs/ext2/ext2.h
744
extern int ext2_setattr (struct mnt_idmap *, struct dentry *, struct iattr *);
fs/ext2/ext2.h
752
extern int ext2_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/ext2/ext2.h
754
struct dentry *dentry, struct file_kattr *fa);
fs/ext2/ext2.h
759
struct dentry *ext2_get_parent(struct dentry *child);
fs/ext2/inode.c
1624
struct inode *inode = d_inode(path->dentry);
fs/ext2/inode.c
1647
int ext2_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ext2/inode.c
1650
struct inode *inode = d_inode(dentry);
fs/ext2/inode.c
1653
error = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/ext2/inode.c
1675
error = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode);
fs/ext2/ioctl.c
21
int ext2_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/ext2/ioctl.c
23
struct ext2_inode_info *ei = EXT2_I(d_inode(dentry));
fs/ext2/ioctl.c
31
struct dentry *dentry, struct file_kattr *fa)
fs/ext2/ioctl.c
33
struct inode *inode = d_inode(dentry);
fs/ext2/namei.c
103
struct inode * dir, struct dentry * dentry,
fs/ext2/namei.c
113
inode = ext2_new_inode(dir, mode, &dentry->d_name);
fs/ext2/namei.c
119
return ext2_add_nondir(dentry, inode);
fs/ext2/namei.c
137
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/ext2/namei.c
146
inode = ext2_new_inode (dir, mode, &dentry->d_name);
fs/ext2/namei.c
152
err = ext2_add_nondir(dentry, inode);
fs/ext2/namei.c
158
struct dentry * dentry, const char * symname)
fs/ext2/namei.c
172
inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name);
fs/ext2/namei.c
194
err = ext2_add_nondir(dentry, inode);
fs/ext2/namei.c
204
static int ext2_link (struct dentry * old_dentry, struct inode * dir,
fs/ext2/namei.c
205
struct dentry *dentry)
fs/ext2/namei.c
218
err = ext2_add_link(dentry, inode);
fs/ext2/namei.c
220
d_instantiate(dentry, inode);
fs/ext2/namei.c
228
static struct dentry *ext2_mkdir(struct mnt_idmap * idmap,
fs/ext2/namei.c
229
struct inode * dir, struct dentry * dentry,
fs/ext2/namei.c
241
inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name);
fs/ext2/namei.c
256
err = ext2_add_link(dentry, inode);
fs/ext2/namei.c
260
d_instantiate_new(dentry, inode);
fs/ext2/namei.c
273
static int ext2_unlink(struct inode *dir, struct dentry *dentry)
fs/ext2/namei.c
275
struct inode *inode = d_inode(dentry);
fs/ext2/namei.c
284
de = ext2_find_entry(dir, &dentry->d_name, &folio);
fs/ext2/namei.c
302
static int ext2_rmdir (struct inode * dir, struct dentry *dentry)
fs/ext2/namei.c
304
struct inode * inode = d_inode(dentry);
fs/ext2/namei.c
308
err = ext2_unlink(dir, dentry);
fs/ext2/namei.c
319
struct inode * old_dir, struct dentry * old_dentry,
fs/ext2/namei.c
320
struct inode * new_dir, struct dentry * new_dentry,
fs/ext2/namei.c
40
static inline int ext2_add_nondir(struct dentry *dentry, struct inode *inode)
fs/ext2/namei.c
42
int err = ext2_add_link(dentry, inode);
fs/ext2/namei.c
44
d_instantiate_new(dentry, inode);
fs/ext2/namei.c
56
static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags)
fs/ext2/namei.c
62
if (dentry->d_name.len > EXT2_NAME_LEN)
fs/ext2/namei.c
65
res = ext2_inode_by_name(dir, &dentry->d_name, &ino);
fs/ext2/namei.c
79
return d_splice_alias(inode, dentry);
fs/ext2/namei.c
82
struct dentry *ext2_get_parent(struct dentry *child)
fs/ext2/super.c
1444
static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf)
fs/ext2/super.c
1446
struct super_block *sb = dentry->d_sb;
fs/ext2/super.c
1623
inode = d_inode(path->dentry);
fs/ext2/super.c
262
static int ext2_show_options(struct seq_file *seq, struct dentry *root)
fs/ext2/super.c
410
static struct dentry *ext2_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/ext2/super.c
417
static struct dentry *ext2_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/ext2/super.c
44
static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf);
fs/ext2/xattr.c
125
struct dentry *dentry)
fs/ext2/xattr.c
132
if (!xattr_handler_can_list(handler, dentry))
fs/ext2/xattr.c
288
ext2_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/ext2/xattr.c
290
struct inode *inode = d_inode(dentry);
fs/ext2/xattr.c
338
prefix = ext2_xattr_prefix(entry->e_name_index, dentry);
fs/ext2/xattr.c
372
ext2_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/ext2/xattr.c
374
return ext2_xattr_list(dentry, buffer, size);
fs/ext2/xattr.h
65
extern ssize_t ext2_listxattr(struct dentry *, char *, size_t);
fs/ext2/xattr_security.c
13
struct dentry *unused, struct inode *inode,
fs/ext2/xattr_security.c
23
struct dentry *unused, struct inode *inode,
fs/ext2/xattr_trusted.c
13
ext2_xattr_trusted_list(struct dentry *dentry)
fs/ext2/xattr_trusted.c
20
struct dentry *unused, struct inode *inode,
fs/ext2/xattr_trusted.c
30
struct dentry *unused, struct inode *inode,
fs/ext2/xattr_user.c
15
ext2_xattr_user_list(struct dentry *dentry)
fs/ext2/xattr_user.c
17
return test_opt(dentry->d_sb, XATTR_USER);
fs/ext2/xattr_user.c
22
struct dentry *unused, struct inode *inode,
fs/ext2/xattr_user.c
34
struct dentry *unused, struct inode *inode,
fs/ext4/acl.c
228
ext4_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ext4/acl.c
234
struct inode *inode = d_inode(dentry);
fs/ext4/acl.h
59
int ext4_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ext4/crypto.c
41
int ext4_fname_prepare_lookup(struct inode *dir, struct dentry *dentry,
fs/ext4/crypto.c
47
err = fscrypt_prepare_lookup(dir, dentry, &name);
fs/ext4/crypto.c
53
err = ext4_fname_setup_ci_filename(dir, &dentry->d_name, fname);
fs/ext4/ext4.h
2849
int ext4_fname_prepare_lookup(struct inode *dir, struct dentry *dentry,
fs/ext4/ext4.h
2870
struct dentry *dentry,
fs/ext4/ext4.h
2873
return ext4_fname_setup_filename(dir, &dentry->d_name, 1, fname);
fs/ext4/ext4.h
2974
struct dentry *dentry);
fs/ext4/ext4.h
2976
struct dentry *dentry);
fs/ext4/ext4.h
2977
void ext4_fc_track_unlink(handle_t *handle, struct dentry *dentry);
fs/ext4/ext4.h
2978
void ext4_fc_track_link(handle_t *handle, struct dentry *dentry);
fs/ext4/ext4.h
2980
struct dentry *dentry);
fs/ext4/ext4.h
2981
void ext4_fc_track_create(handle_t *handle, struct dentry *dentry);
fs/ext4/ext4.h
3074
extern int ext4_setattr(struct mnt_idmap *, struct dentry *,
fs/ext4/ext4.h
3137
struct dentry *dentry, struct file_kattr *fa);
fs/ext4/ext4.h
3138
int ext4_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/ext4/ext4.h
3711
extern struct dentry *ext4_get_parent(struct dentry *child);
fs/ext4/ext4.h
3721
struct inode *inode, struct dentry *dentry);
fs/ext4/ext4.h
3723
struct dentry *dentry);
fs/ext4/fast_commit.c
1449
struct dentry *dentry_dir = NULL, *dentry_inode = NULL;
fs/ext4/fast_commit.c
391
struct dentry *dentry;
fs/ext4/fast_commit.c
403
struct dentry *dentry = dentry_update->dentry;
fs/ext4/fast_commit.c
404
struct inode *dir = dentry->d_parent->d_inode;
fs/ext4/fast_commit.c
428
take_dentry_name_snapshot(&node->fcd_name, dentry);
fs/ext4/fast_commit.c
459
struct inode *inode, struct dentry *dentry)
fs/ext4/fast_commit.c
464
args.dentry = dentry;
fs/ext4/fast_commit.c
469
trace_ext4_fc_track_unlink(handle, inode, dentry, ret);
fs/ext4/fast_commit.c
472
void ext4_fc_track_unlink(handle_t *handle, struct dentry *dentry)
fs/ext4/fast_commit.c
474
struct inode *inode = d_inode(dentry);
fs/ext4/fast_commit.c
482
__ext4_fc_track_unlink(handle, inode, dentry);
fs/ext4/fast_commit.c
486
struct inode *inode, struct dentry *dentry)
fs/ext4/fast_commit.c
491
args.dentry = dentry;
fs/ext4/fast_commit.c
496
trace_ext4_fc_track_link(handle, inode, dentry, ret);
fs/ext4/fast_commit.c
499
void ext4_fc_track_link(handle_t *handle, struct dentry *dentry)
fs/ext4/fast_commit.c
501
struct inode *inode = d_inode(dentry);
fs/ext4/fast_commit.c
509
__ext4_fc_track_link(handle, inode, dentry);
fs/ext4/fast_commit.c
513
struct dentry *dentry)
fs/ext4/fast_commit.c
518
args.dentry = dentry;
fs/ext4/fast_commit.c
523
trace_ext4_fc_track_create(handle, inode, dentry, ret);
fs/ext4/fast_commit.c
526
void ext4_fc_track_create(handle_t *handle, struct dentry *dentry)
fs/ext4/fast_commit.c
528
struct inode *inode = d_inode(dentry);
fs/ext4/fast_commit.c
536
__ext4_fc_track_create(handle, inode, dentry);
fs/ext4/file.c
858
path.dentry = mnt->mnt_root;
fs/ext4/fsync.c
48
struct dentry *dentry, *next;
fs/ext4/fsync.c
53
dentry = d_find_any_alias(inode);
fs/ext4/fsync.c
54
if (!dentry)
fs/ext4/fsync.c
59
next = dget_parent(dentry);
fs/ext4/fsync.c
60
dput(dentry);
fs/ext4/fsync.c
61
dentry = next;
fs/ext4/fsync.c
62
inode = dentry->d_inode;
fs/ext4/fsync.c
78
dput(dentry);
fs/ext4/inode.c
5794
int ext4_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ext4/inode.c
5797
struct inode *inode = d_inode(dentry);
fs/ext4/inode.c
5815
error = setattr_prepare(idmap, dentry, attr);
fs/ext4/inode.c
5819
error = fscrypt_prepare_setattr(dentry, attr);
fs/ext4/inode.c
6024
rc = posix_acl_chmod(idmap, dentry, inode->i_mode);
fs/ext4/inode.c
6053
struct inode *inode = d_inode(path->dentry);
fs/ext4/inode.c
6127
struct inode *inode = d_inode(path->dentry);
fs/ext4/ioctl.c
1006
struct dentry *dentry, struct file_kattr *fa)
fs/ext4/ioctl.c
1008
struct inode *inode = d_inode(dentry);
fs/ext4/ioctl.c
989
int ext4_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/ext4/ioctl.c
991
struct inode *inode = d_inode(dentry);
fs/ext4/namei.c
1690
struct dentry *dentry,
fs/ext4/namei.c
1697
err = ext4_fname_prepare_lookup(dir, dentry, &fname);
fs/ext4/namei.c
1760
static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/ext4/namei.c
1766
if (dentry->d_name.len > EXT4_NAME_LEN)
fs/ext4/namei.c
1769
bh = ext4_lookup_entry(dir, dentry, &de);
fs/ext4/namei.c
1782
dentry);
fs/ext4/namei.c
1812
return d_splice_alias(inode, dentry);
fs/ext4/namei.c
1816
struct dentry *ext4_get_parent(struct dentry *child)
fs/ext4/namei.c
2356
static int ext4_add_entry(handle_t *handle, struct dentry *dentry,
fs/ext4/namei.c
2359
struct inode *dir = d_inode(dentry->d_parent);
fs/ext4/namei.c
2376
if (fscrypt_is_nokey_name(dentry))
fs/ext4/namei.c
2379
if (!generic_ci_validate_strict_name(dir, &dentry->d_name))
fs/ext4/namei.c
2382
retval = ext4_fname_setup_filename(dir, &dentry->d_name, 0, &fname);
fs/ext4/namei.c
2778
struct dentry *dentry, struct inode **inodep)
fs/ext4/namei.c
2780
struct inode *dir = d_inode(dentry->d_parent);
fs/ext4/namei.c
2782
int err = ext4_add_entry(handle, dentry, inode);
fs/ext4/namei.c
2787
d_instantiate_new(dentry, inode);
fs/ext4/namei.c
2807
struct dentry *dentry, umode_t mode, bool excl)
fs/ext4/namei.c
2820
inode = ext4_new_inode_start_handle(idmap, dir, mode, &dentry->d_name,
fs/ext4/namei.c
2828
err = ext4_add_nondir(handle, dentry, &inode);
fs/ext4/namei.c
2830
ext4_fc_track_create(handle, dentry);
fs/ext4/namei.c
2842
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/ext4/namei.c
2855
inode = ext4_new_inode_start_handle(idmap, dir, mode, &dentry->d_name,
fs/ext4/namei.c
2862
err = ext4_add_nondir(handle, dentry, &inode);
fs/ext4/namei.c
2864
ext4_fc_track_create(handle, dentry);
fs/ext4/namei.c
2988
static struct dentry *ext4_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/ext4/namei.c
2989
struct dentry *dentry, umode_t mode)
fs/ext4/namei.c
3006
&dentry->d_name,
fs/ext4/namei.c
3020
err = ext4_add_entry(handle, dentry, inode);
fs/ext4/namei.c
3039
d_instantiate_new(dentry, inode);
fs/ext4/namei.c
3040
ext4_fc_track_create(handle, dentry);
fs/ext4/namei.c
3129
static int ext4_rmdir(struct inode *dir, struct dentry *dentry)
fs/ext4/namei.c
3146
retval = dquot_initialize(d_inode(dentry));
fs/ext4/namei.c
3151
bh = ext4_find_entry(dir, &dentry->d_name, &de, NULL);
fs/ext4/namei.c
3157
inode = d_inode(dentry);
fs/ext4/namei.c
3184
dentry->d_name.len, dentry->d_name.name,
fs/ext4/namei.c
3200
ext4_fc_track_unlink(handle, dentry);
fs/ext4/namei.c
3210
d_invalidate(dentry);
fs/ext4/namei.c
3221
struct dentry *dentry /* NULL during fast_commit recovery */)
fs/ext4/namei.c
3283
if (dentry && !retval)
fs/ext4/namei.c
3284
ext4_fc_track_unlink(handle, dentry);
fs/ext4/namei.c
3292
static int ext4_unlink(struct inode *dir, struct dentry *dentry)
fs/ext4/namei.c
3300
trace_ext4_unlink_enter(dir, dentry);
fs/ext4/namei.c
3308
retval = dquot_initialize(d_inode(dentry));
fs/ext4/namei.c
3312
retval = __ext4_unlink(dir, &dentry->d_name, d_inode(dentry), dentry);
fs/ext4/namei.c
3321
d_invalidate(dentry);
fs/ext4/namei.c
3324
trace_ext4_unlink_exit(dentry, retval);
fs/ext4/namei.c
3355
struct dentry *dentry, const char *symname)
fs/ext4/namei.c
3387
&dentry->d_name, 0, NULL,
fs/ext4/namei.c
3426
err = ext4_add_nondir(handle, dentry, &inode);
fs/ext4/namei.c
3448
int __ext4_link(struct inode *dir, struct inode *inode, struct dentry *dentry)
fs/ext4/namei.c
3466
err = ext4_add_entry(handle, dentry, inode);
fs/ext4/namei.c
3474
d_instantiate(dentry, inode);
fs/ext4/namei.c
3475
ext4_fc_track_link(handle, dentry);
fs/ext4/namei.c
3486
static int ext4_link(struct dentry *old_dentry,
fs/ext4/namei.c
3487
struct inode *dir, struct dentry *dentry)
fs/ext4/namei.c
3495
err = fscrypt_prepare_link(old_dentry, dir, dentry);
fs/ext4/namei.c
3507
return __ext4_link(dir, inode, dentry);
fs/ext4/namei.c
3566
struct dentry *dentry;
fs/ext4/namei.c
3669
old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, &old.de,
fs/ext4/namei.c
3712
ent->de->name_len != ent->dentry->d_name.len ||
fs/ext4/namei.c
3713
strncmp(ent->de->name, ent->dentry->d_name.name,
fs/ext4/namei.c
3717
&ent->dentry->d_name);
fs/ext4/namei.c
3722
&ent->dentry->d_name);
fs/ext4/namei.c
3761
&ent->dentry->d_name, 0, NULL,
fs/ext4/namei.c
3788
struct dentry *old_dentry, struct inode *new_dir,
fs/ext4/namei.c
3789
struct dentry *new_dentry, unsigned int flags)
fs/ext4/namei.c
3794
.dentry = old_dentry,
fs/ext4/namei.c
3799
.dentry = new_dentry,
fs/ext4/namei.c
3837
old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, &old.de,
fs/ext4/namei.c
3852
new.bh = ext4_find_entry(new.dir, &new.dentry->d_name,
fs/ext4/namei.c
3927
retval = ext4_add_entry(handle, new.dentry, old.inode);
fs/ext4/namei.c
3997
ext4_fc_track_unlink(handle, new.dentry);
fs/ext4/namei.c
4001
__ext4_fc_track_link(handle, old.inode, new.dentry);
fs/ext4/namei.c
4002
__ext4_fc_track_unlink(handle, old.inode, old.dentry);
fs/ext4/namei.c
4005
old.dentry);
fs/ext4/namei.c
4041
static int ext4_cross_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/ext4/namei.c
4042
struct inode *new_dir, struct dentry *new_dentry)
fs/ext4/namei.c
4047
.dentry = old_dentry,
fs/ext4/namei.c
4052
.dentry = new_dentry,
fs/ext4/namei.c
4073
old.bh = ext4_find_entry(old.dir, &old.dentry->d_name,
fs/ext4/namei.c
4087
new.bh = ext4_find_entry(new.dir, &new.dentry->d_name,
fs/ext4/namei.c
4183
struct inode *old_dir, struct dentry *old_dentry,
fs/ext4/namei.c
4184
struct inode *new_dir, struct dentry *new_dentry,
fs/ext4/super.c
1578
static struct dentry *ext4_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/ext4/super.c
1585
static struct dentry *ext4_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/ext4/super.c
2342
journal_inode = d_inode(path.dentry);
fs/ext4/super.c
3080
static int ext4_show_options(struct seq_file *seq, struct dentry *root)
fs/ext4/super.c
6943
static int ext4_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ext4/super.c
6945
struct super_block *sb = dentry->d_sb;
fs/ext4/super.c
6972
if (ext4_test_inode_flag(dentry->d_inode, EXT4_INODE_PROJINHERIT) &&
fs/ext4/super.c
6974
ext4_statfs_project(sb, EXT4_I(dentry->d_inode)->i_projid, buf);
fs/ext4/super.c
70
static int ext4_show_options(struct seq_file *seq, struct dentry *root);
fs/ext4/super.c
7127
if (path->dentry->d_sb != sb)
fs/ext4/super.c
7131
if (IS_NOQUOTA(d_inode(path->dentry)))
fs/ext4/super.c
7137
if (path->dentry->d_parent != sb->s_root)
fs/ext4/super.c
7150
lockdep_set_quota_inode(path->dentry->d_inode, I_DATA_SEM_QUOTA);
fs/ext4/super.c
7153
struct inode *inode = d_inode(path->dentry);
fs/ext4/super.c
7176
lockdep_set_quota_inode(path->dentry->d_inode,
fs/ext4/super.c
78
static int ext4_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/ext4/symlink.c
26
static const char *ext4_encrypted_get_link(struct dentry *dentry,
fs/ext4/symlink.c
35
if (!dentry)
fs/ext4/symlink.c
73
static const char *ext4_get_link(struct dentry *dentry, struct inode *inode,
fs/ext4/symlink.c
84
if (!dentry)
fs/ext4/symlink.c
93
if (!dentry) {
fs/ext4/xattr.c
177
struct dentry *dentry)
fs/ext4/xattr.c
184
if (!xattr_handler_can_list(handler, dentry))
fs/ext4/xattr.c
719
ext4_xattr_list_entries(struct dentry *dentry, struct ext4_xattr_entry *entry,
fs/ext4/xattr.c
727
prefix = ext4_xattr_prefix(entry->e_name_index, dentry);
fs/ext4/xattr.c
748
ext4_xattr_block_list(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/ext4/xattr.c
750
struct inode *inode = d_inode(dentry);
fs/ext4/xattr.c
770
error = ext4_xattr_list_entries(dentry, BFIRST(bh), buffer,
fs/ext4/xattr.c
778
ext4_xattr_ibody_list(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/ext4/xattr.c
780
struct inode *inode = d_inode(dentry);
fs/ext4/xattr.c
793
error = ext4_xattr_list_entries(dentry, IFIRST(header),
fs/ext4/xattr.c
813
ext4_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/ext4/xattr.c
817
down_read(&EXT4_I(d_inode(dentry))->xattr_sem);
fs/ext4/xattr.c
818
ret = ret2 = ext4_xattr_ibody_list(dentry, buffer, buffer_size);
fs/ext4/xattr.c
825
ret = ext4_xattr_block_list(dentry, buffer, buffer_size);
fs/ext4/xattr.c
830
up_read(&EXT4_I(d_inode(dentry))->xattr_sem);
fs/ext4/xattr.h
178
extern ssize_t ext4_listxattr(struct dentry *, char *, size_t);
fs/ext4/xattr_hurd.c
16
ext4_xattr_hurd_list(struct dentry *dentry)
fs/ext4/xattr_hurd.c
18
return test_opt(dentry->d_sb, XATTR_USER);
fs/ext4/xattr_hurd.c
23
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_hurd.c
36
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_security.c
17
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_security.c
27
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_trusted.c
17
ext4_xattr_trusted_list(struct dentry *dentry)
fs/ext4/xattr_trusted.c
24
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_trusted.c
34
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_user.c
16
ext4_xattr_user_list(struct dentry *dentry)
fs/ext4/xattr_user.c
18
return test_opt(dentry->d_sb, XATTR_USER);
fs/ext4/xattr_user.c
23
struct dentry *unused, struct inode *inode,
fs/ext4/xattr_user.c
35
struct dentry *unused, struct inode *inode,
fs/f2fs/acl.c
278
int f2fs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/f2fs/acl.c
281
struct inode *inode = d_inode(dentry);
fs/f2fs/acl.h
37
int f2fs_set_acl(struct mnt_idmap *, struct dentry *,
fs/f2fs/debug.c
26
static struct dentry *f2fs_debugfs_root;
fs/f2fs/dir.c
156
int f2fs_prepare_lookup(struct inode *dir, struct dentry *dentry,
fs/f2fs/dir.c
162
err = fscrypt_prepare_lookup(dir, dentry, &crypt_name);
fs/f2fs/dir.c
245
de = &d->dentry[bit_pos];
fs/f2fs/dir.c
663
de = &d->dentry[bit_pos];
fs/f2fs/dir.c
880
void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct folio *folio,
fs/f2fs/dir.c
885
int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len));
fs/f2fs/dir.c
895
return f2fs_delete_inline_entry(dentry, folio, dir, inode);
fs/f2fs/dir.c
901
bit_pos = dentry - dentry_blk->dentry;
fs/f2fs/dir.c
996
de = &d->dentry[bit_pos];
fs/f2fs/f2fs.h
3783
int f2fs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/f2fs/f2fs.h
3790
int f2fs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/f2fs/f2fs.h
3792
struct dentry *dentry, struct file_kattr *fa);
fs/f2fs/f2fs.h
3819
struct dentry *f2fs_get_parent(struct dentry *child);
fs/f2fs/f2fs.h
3844
int f2fs_prepare_lookup(struct inode *dir, struct dentry *dentry,
fs/f2fs/f2fs.h
3880
void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct folio *folio,
fs/f2fs/f2fs.h
3886
static inline int f2fs_add_link(struct dentry *dentry, struct inode *inode)
fs/f2fs/f2fs.h
3888
if (fscrypt_is_nokey_name(dentry))
fs/f2fs/f2fs.h
3890
return f2fs_do_add_link(d_inode(dentry->d_parent), &dentry->d_name,
fs/f2fs/f2fs.h
4498
int f2fs_try_convert_inline_dir(struct inode *dir, struct dentry *dentry);
fs/f2fs/f2fs.h
4508
void f2fs_delete_inline_entry(struct f2fs_dir_entry *dentry,
fs/f2fs/f2fs.h
652
struct f2fs_dir_entry *dentry;
fs/f2fs/f2fs.h
665
d->dentry = t->dentry;
fs/f2fs/f2fs.h
680
d->dentry = t + bitmap_size + reserved_size;
fs/f2fs/file.c
1065
int f2fs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/f2fs/file.c
1068
struct inode *inode = d_inode(dentry);
fs/f2fs/file.c
1076
err = setattr_prepare(idmap, dentry, attr);
fs/f2fs/file.c
1080
err = fscrypt_prepare_setattr(dentry, attr);
fs/f2fs/file.c
1186
err = posix_acl_chmod(idmap, dentry, f2fs_get_inode_mode(inode));
fs/f2fs/file.c
201
struct dentry *dentry;
fs/f2fs/file.c
207
dentry = d_find_alias(inode);
fs/f2fs/file.c
208
if (!dentry)
fs/f2fs/file.c
211
*pino = d_parent_ino(dentry);
fs/f2fs/file.c
212
dput(dentry);
fs/f2fs/file.c
2319
struct dentry *dentry = file_dentry(filp);
fs/f2fs/file.c
2320
struct inode *dir = d_inode(dentry->d_parent);
fs/f2fs/file.c
3436
int f2fs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/f2fs/file.c
3438
struct inode *inode = d_inode(dentry);
fs/f2fs/file.c
3460
struct dentry *dentry, struct file_kattr *fa)
fs/f2fs/file.c
3462
struct inode *inode = d_inode(dentry);
fs/f2fs/file.c
977
struct inode *inode = d_inode(path->dentry);
fs/f2fs/inline.c
456
memcpy(dst.dentry, src.dentry, SIZE_OF_DIR_ENTRY * src.max);
fs/f2fs/inline.c
504
de = &d.dentry[bit_pos];
fs/f2fs/inline.c
596
int f2fs_try_convert_inline_dir(struct inode *dir, struct dentry *dentry)
fs/f2fs/inline.c
610
err = f2fs_setup_filename(dir, &dentry->d_name, 0, &fname);
fs/f2fs/inline.c
702
void f2fs_delete_inline_entry(struct f2fs_dir_entry *dentry,
fs/f2fs/inline.c
707
int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len));
fs/f2fs/inline.c
717
bit_pos = dentry - d.dentry;
fs/f2fs/namei.c
1116
static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/f2fs/namei.c
1117
struct inode *new_dir, struct dentry *new_dentry)
fs/f2fs/namei.c
1283
struct inode *old_dir, struct dentry *old_dentry,
fs/f2fs/namei.c
1284
struct inode *new_dir, struct dentry *new_dentry,
fs/f2fs/namei.c
1315
static const char *f2fs_encrypted_get_link(struct dentry *dentry,
fs/f2fs/namei.c
1322
if (!dentry)
fs/f2fs/namei.c
354
struct dentry *dentry, umode_t mode, bool excl)
fs/f2fs/namei.c
371
inode = f2fs_new_inode(idmap, dir, mode, dentry->d_name.name);
fs/f2fs/namei.c
381
err = f2fs_add_link(dentry, inode);
fs/f2fs/namei.c
388
d_instantiate_new(dentry, inode);
fs/f2fs/namei.c
400
static int f2fs_link(struct dentry *old_dentry, struct inode *dir,
fs/f2fs/namei.c
401
struct dentry *dentry)
fs/f2fs/namei.c
413
err = fscrypt_prepare_link(old_dentry, dir, dentry);
fs/f2fs/namei.c
433
err = f2fs_add_link(dentry, inode);
fs/f2fs/namei.c
438
d_instantiate(dentry, inode);
fs/f2fs/namei.c
450
struct dentry *f2fs_get_parent(struct dentry *child)
fs/f2fs/namei.c
463
static struct dentry *f2fs_lookup(struct inode *dir, struct dentry *dentry,
fs/f2fs/namei.c
469
struct dentry *new;
fs/f2fs/namei.c
474
trace_f2fs_lookup_start(dir, dentry, flags);
fs/f2fs/namei.c
476
if (dentry->d_name.len > F2FS_NAME_LEN) {
fs/f2fs/namei.c
481
err = f2fs_prepare_lookup(dir, dentry, &fname);
fs/f2fs/namei.c
530
trace_f2fs_lookup_end(dir, dentry, ino, err);
fs/f2fs/namei.c
534
new = d_splice_alias(inode, dentry);
fs/f2fs/namei.c
535
trace_f2fs_lookup_end(dir, !IS_ERR_OR_NULL(new) ? new : dentry,
fs/f2fs/namei.c
541
trace_f2fs_lookup_end(dir, dentry, ino, err);
fs/f2fs/namei.c
545
static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
fs/f2fs/namei.c
548
struct inode *inode = d_inode(dentry);
fs/f2fs/namei.c
554
trace_f2fs_unlink_enter(dir, dentry);
fs/f2fs/namei.c
568
de = f2fs_find_entry(dir, &dentry->d_name, &folio);
fs/f2fs/namei.c
604
d_invalidate(dentry);
fs/f2fs/namei.c
619
static const char *f2fs_get_link(struct dentry *dentry,
fs/f2fs/namei.c
623
const char *link = page_get_link(dentry, inode, done);
fs/f2fs/namei.c
635
struct dentry *dentry, const char *symname)
fs/f2fs/namei.c
670
err = f2fs_add_link(dentry, inode);
fs/f2fs/namei.c
683
d_instantiate_new(dentry, inode);
fs/f2fs/namei.c
701
f2fs_unlink(dir, dentry);
fs/f2fs/namei.c
715
static struct dentry *f2fs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/f2fs/namei.c
716
struct dentry *dentry, umode_t mode)
fs/f2fs/namei.c
741
err = f2fs_add_link(dentry, inode);
fs/f2fs/namei.c
748
d_instantiate_new(dentry, inode);
fs/f2fs/namei.c
762
static int f2fs_rmdir(struct inode *dir, struct dentry *dentry)
fs/f2fs/namei.c
764
struct inode *inode = d_inode(dentry);
fs/f2fs/namei.c
767
return f2fs_unlink(dir, dentry);
fs/f2fs/namei.c
772
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/f2fs/namei.c
796
err = f2fs_add_link(dentry, inode);
fs/f2fs/namei.c
803
d_instantiate_new(dentry, inode);
fs/f2fs/namei.c
918
struct dentry *old_dentry, struct inode *new_dir,
fs/f2fs/namei.c
919
struct dentry *new_dentry, unsigned int flags)
fs/f2fs/super.c
2212
static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/f2fs/super.c
2214
struct super_block *sb = dentry->d_sb;
fs/f2fs/super.c
2262
if (is_inode_flag_set(d_inode(dentry), FI_PROJ_INHERIT) &&
fs/f2fs/super.c
2264
f2fs_statfs_project(sb, F2FS_I(d_inode(dentry))->i_projid, buf);
fs/f2fs/super.c
2363
static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
fs/f2fs/super.c
3439
if (path->dentry->d_sb != sb)
fs/f2fs/super.c
3448
inode = d_inode(path->dentry);
fs/f2fs/super.c
3779
static struct dentry *f2fs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/f2fs/super.c
3786
static struct dentry *f2fs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/f2fs/sysfs.c
1900
struct dentry *dentry;
fs/f2fs/sysfs.c
1932
dentry = d_find_alias(inode);
fs/f2fs/sysfs.c
1933
if (!dentry) {
fs/f2fs/sysfs.c
1936
path = dentry_path_raw(dentry, buf, PATH_MAX);
fs/f2fs/sysfs.c
1948
dput(dentry);
fs/f2fs/xattr.c
104
struct dentry *unused, struct inode *inode,
fs/f2fs/xattr.c
114
struct dentry *unused, struct inode *inode,
fs/f2fs/xattr.c
217
struct dentry *dentry)
fs/f2fs/xattr.c
224
if (!xattr_handler_can_list(handler, dentry))
fs/f2fs/xattr.c
48
struct dentry *unused, struct inode *inode,
fs/f2fs/xattr.c
563
ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/f2fs/xattr.c
565
struct inode *inode = d_inode(dentry);
fs/f2fs/xattr.c
584
prefix = f2fs_xattr_prefix(entry->e_name_index, dentry);
fs/f2fs/xattr.c
70
struct dentry *unused, struct inode *inode,
fs/f2fs/xattr.c
91
static bool f2fs_xattr_user_list(struct dentry *dentry)
fs/f2fs/xattr.c
93
struct f2fs_sb_info *sbi = F2FS_SB(dentry->d_sb);
fs/f2fs/xattr.c
98
static bool f2fs_xattr_trusted_list(struct dentry *dentry)
fs/f2fs/xattr.h
136
ssize_t f2fs_listxattr(struct dentry *, char *, size_t);
fs/fat/fat.h
404
extern int fat_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/fat/file.c
100
err = fat_setattr(file_mnt_idmap(file), file->f_path.dentry, &ia);
fs/fat/file.c
104
fsnotify_change(file->f_path.dentry, ia.ia_valid);
fs/fat/file.c
402
struct inode *inode = d_inode(path->dentry);
fs/fat/file.c
481
int fat_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/fat/file.c
484
struct msdos_sb_info *sbi = MSDOS_SB(dentry->d_sb);
fs/fat/file.c
485
struct inode *inode = d_inode(dentry);
fs/fat/file.c
496
error = setattr_prepare(idmap, dentry, attr);
fs/fat/file.c
95
file->f_path.dentry, &ia);
fs/fat/inode.c
829
static int fat_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/fat/inode.c
831
struct super_block *sb = dentry->d_sb;
fs/fat/inode.c
837
int err = fat_count_free_clusters(dentry->d_sb);
fs/fat/inode.c
842
buf->f_type = dentry->d_sb->s_magic;
fs/fat/inode.c
937
static int fat_show_options(struct seq_file *m, struct dentry *root);
fs/fat/inode.c
948
static int fat_show_options(struct seq_file *m, struct dentry *root)
fs/fat/namei_msdos.c
151
static int msdos_hash(const struct dentry *dentry, struct qstr *qstr)
fs/fat/namei_msdos.c
153
struct fat_mount_options *options = &MSDOS_SB(dentry->d_sb)->options;
fs/fat/namei_msdos.c
159
qstr->hash = full_name_hash(dentry, msdos_name, MSDOS_NAME);
fs/fat/namei_msdos.c
167
static int msdos_cmp(const struct dentry *dentry,
fs/fat/namei_msdos.c
170
struct fat_mount_options *options = &MSDOS_SB(dentry->d_sb)->options;
fs/fat/namei_msdos.c
201
static struct dentry *msdos_lookup(struct inode *dir, struct dentry *dentry,
fs/fat/namei_msdos.c
210
err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo);
fs/fat/namei_msdos.c
223
return d_splice_alias(inode, dentry);
fs/fat/namei_msdos.c
265
struct dentry *dentry, umode_t mode, bool excl)
fs/fat/namei_msdos.c
276
err = msdos_format_name(dentry->d_name.name, dentry->d_name.len,
fs/fat/namei_msdos.c
280
is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.');
fs/fat/namei_msdos.c
301
d_instantiate(dentry, inode);
fs/fat/namei_msdos.c
310
static int msdos_rmdir(struct inode *dir, struct dentry *dentry)
fs/fat/namei_msdos.c
313
struct inode *inode = d_inode(dentry);
fs/fat/namei_msdos.c
321
err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo);
fs/fat/namei_msdos.c
346
static struct dentry *msdos_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/fat/namei_msdos.c
347
struct dentry *dentry, umode_t mode)
fs/fat/namei_msdos.c
358
err = msdos_format_name(dentry->d_name.name, dentry->d_name.len,
fs/fat/namei_msdos.c
362
is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.');
fs/fat/namei_msdos.c
392
d_instantiate(dentry, inode);
fs/fat/namei_msdos.c
406
static int msdos_unlink(struct inode *dir, struct dentry *dentry)
fs/fat/namei_msdos.c
408
struct inode *inode = d_inode(dentry);
fs/fat/namei_msdos.c
414
err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo);
fs/fat/namei_msdos.c
432
struct dentry *old_dentry,
fs/fat/namei_msdos.c
434
struct dentry *new_dentry, int is_hid)
fs/fat/namei_msdos.c
600
struct inode *old_dir, struct dentry *old_dentry,
fs/fat/namei_msdos.c
601
struct inode *new_dir, struct dentry *new_dentry,
fs/fat/namei_vfat.c
1062
static int vfat_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
fs/fat/namei_vfat.c
1063
struct inode *new_dir, struct dentry *new_dentry)
fs/fat/namei_vfat.c
1164
struct dentry *old_dentry, struct inode *new_dir,
fs/fat/namei_vfat.c
1165
struct dentry *new_dentry, unsigned int flags)
fs/fat/namei_vfat.c
120
static int vfat_hash(const struct dentry *dentry, struct qstr *qstr)
fs/fat/namei_vfat.c
122
qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr));
fs/fat/namei_vfat.c
132
static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr)
fs/fat/namei_vfat.c
134
struct nls_table *t = MSDOS_SB(dentry->d_sb)->nls_io;
fs/fat/namei_vfat.c
142
hash = init_name_hash(dentry);
fs/fat/namei_vfat.c
153
static int vfat_cmpi(const struct dentry *dentry,
fs/fat/namei_vfat.c
156
struct nls_table *t = MSDOS_SB(dentry->d_sb)->nls_io;
fs/fat/namei_vfat.c
172
static int vfat_cmp(const struct dentry *dentry,
fs/fat/namei_vfat.c
28
static inline unsigned long vfat_d_version(struct dentry *dentry)
fs/fat/namei_vfat.c
30
return (unsigned long) dentry->d_fsdata;
fs/fat/namei_vfat.c
33
static inline void vfat_d_version_set(struct dentry *dentry,
fs/fat/namei_vfat.c
36
dentry->d_fsdata = (void *) version;
fs/fat/namei_vfat.c
47
static bool vfat_revalidate_shortname(struct dentry *dentry, struct inode *dir)
fs/fat/namei_vfat.c
49
return inode_eq_iversion(dir, vfat_d_version(dentry));
fs/fat/namei_vfat.c
53
struct dentry *dentry, unsigned int flags)
fs/fat/namei_vfat.c
59
if (d_really_is_positive(dentry))
fs/fat/namei_vfat.c
61
return vfat_revalidate_shortname(dentry, dir);
fs/fat/namei_vfat.c
65
struct dentry *dentry, unsigned int flags)
fs/fat/namei_vfat.c
699
static struct dentry *vfat_lookup(struct inode *dir, struct dentry *dentry,
fs/fat/namei_vfat.c
705
struct dentry *alias;
fs/fat/namei_vfat.c
710
err = vfat_find(dir, &dentry->d_name, &sinfo);
fs/fat/namei_vfat.c
731
if (alias && alias->d_parent == dentry->d_parent) {
fs/fat/namei_vfat.c
740
d_move(alias, dentry);
fs/fat/namei_vfat.c
750
vfat_d_version_set(dentry, inode_query_iversion(dir));
fs/fat/namei_vfat.c
751
return d_splice_alias(inode, dentry);
fs/fat/namei_vfat.c
758
struct dentry *dentry, umode_t mode, bool excl)
fs/fat/namei_vfat.c
769
err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo);
fs/fat/namei_vfat.c
782
d_instantiate(dentry, inode);
fs/fat/namei_vfat.c
788
static int vfat_rmdir(struct inode *dir, struct dentry *dentry)
fs/fat/namei_vfat.c
790
struct inode *inode = d_inode(dentry);
fs/fat/namei_vfat.c
80
if (d_really_is_positive(dentry))
fs/fat/namei_vfat.c
800
err = vfat_find(dir, &dentry->d_name, &sinfo);
fs/fat/namei_vfat.c
817
vfat_d_version_set(dentry, inode_query_iversion(dir));
fs/fat/namei_vfat.c
824
static int vfat_unlink(struct inode *dir, struct dentry *dentry)
fs/fat/namei_vfat.c
826
struct inode *inode = d_inode(dentry);
fs/fat/namei_vfat.c
833
err = vfat_find(dir, &dentry->d_name, &sinfo);
fs/fat/namei_vfat.c
843
vfat_d_version_set(dentry, inode_query_iversion(dir));
fs/fat/namei_vfat.c
850
static struct dentry *vfat_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/fat/namei_vfat.c
851
struct dentry *dentry, umode_t mode)
fs/fat/namei_vfat.c
867
err = vfat_add_entry(dir, &dentry->d_name, 1, cluster, &ts, &sinfo);
fs/fat/namei_vfat.c
883
d_instantiate(dentry, inode);
fs/fat/namei_vfat.c
934
static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/fat/namei_vfat.c
935
struct inode *new_dir, struct dentry *new_dentry)
fs/fat/namei_vfat.c
98
return vfat_revalidate_shortname(dentry, dir);
fs/fat/nfs.c
148
static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/fat/nfs.c
155
static struct dentry *fat_fh_to_dentry_nostale(struct super_block *sb,
fs/fat/nfs.c
186
static struct dentry *fat_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/fat/nfs.c
193
static struct dentry *fat_fh_to_parent_nostale(struct super_block *sb,
fs/fat/nfs.c
268
static struct dentry *fat_get_parent(struct dentry *child_dir)
fs/fhandle.c
199
static int vfs_dentry_acceptable(void *context, struct dentry *dentry)
fs/fhandle.c
203
struct dentry *d, *root = ctx->root.dentry;
fs/fhandle.c
219
if (!privileged_wrt_inode_uidgid(user_ns, idmap, d_inode(dentry)))
fs/fhandle.c
230
d = dget(dentry);
fs/fhandle.c
232
struct dentry *parent = dget_parent(d);
fs/fhandle.c
270
struct dentry *dentry;
fs/fhandle.c
274
dentry = exportfs_decode_fh_raw(mnt, (struct fid *)handle->f_handle,
fs/fhandle.c
278
if (IS_ERR_OR_NULL(dentry)) {
fs/fhandle.c
279
if (dentry == ERR_PTR(-ENOMEM))
fs/fhandle.c
283
path->dentry = dentry;
fs/fhandle.c
32
if (!exportfs_can_encode_fh(path->dentry->d_sb->s_export_op, fh_flags))
fs/fhandle.c
325
!has_locked_children(real_mount(root->mnt), root->dentry))
fs/fhandle.c
40
WARN_ON(path->dentry->d_flags & DCACHE_DISCONNECTED))
fs/fhandle.c
57
retval = exportfs_encode_fh(path->dentry,
fs/fhandle.c
90
if (d_is_dir(path->dentry))
fs/file_attr.c
268
int vfs_fileattr_set(struct mnt_idmap *idmap, struct dentry *dentry,
fs/file_attr.c
271
struct inode *inode = d_inode(dentry);
fs/file_attr.c
282
err = vfs_fileattr_get(dentry, &old_ma);
fs/file_attr.c
298
err = security_inode_file_setattr(dentry, fa);
fs/file_attr.c
301
err = inode->i_op->fileattr_set(idmap, dentry, fa);
fs/file_attr.c
304
fsnotify_xattr(dentry);
fs/file_attr.c
318
err = vfs_fileattr_get(file->f_path.dentry, &fa);
fs/file_attr.c
327
struct dentry *dentry = file->f_path.dentry;
fs/file_attr.c
337
err = vfs_fileattr_set(idmap, dentry, &fa);
fs/file_attr.c
349
err = vfs_fileattr_get(file->f_path.dentry, &fa);
fs/file_attr.c
359
struct dentry *dentry = file->f_path.dentry;
fs/file_attr.c
367
err = vfs_fileattr_set(idmap, dentry, &fa);
fs/file_attr.c
414
error = vfs_fileattr_get(filepath.dentry, &fa);
fs/file_attr.c
479
filepath.dentry, &fa);
fs/file_attr.c
86
int vfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/file_attr.c
88
struct inode *inode = d_inode(dentry);
fs/file_attr.c
94
error = security_inode_file_getattr(dentry, fa);
fs/file_attr.c
98
return inode->i_op->fileattr_get(dentry, fa);
fs/file_table.c
324
file->f_inode = path->dentry->d_inode;
fs/file_table.c
325
file->f_mapping = path->dentry->d_inode->i_mapping;
fs/file_table.c
340
i_readcount_inc(path->dentry->d_inode);
fs/file_table.c
364
path->dentry = d_alloc_pseudo(mnt->mnt_sb, &QSTR(name));
fs/file_table.c
365
if (!path->dentry)
fs/file_table.c
368
d_instantiate(path->dentry, inode);
fs/file_table.c
445
struct dentry *dentry = file->f_path.dentry;
fs/file_table.c
477
dput(dentry);
fs/freevxfs/vxfs_lookup.c
134
vxfs_inode_by_name(struct inode *dip, struct dentry *dp)
fs/freevxfs/vxfs_lookup.c
164
static struct dentry *
fs/freevxfs/vxfs_lookup.c
165
vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags)
fs/freevxfs/vxfs_lookup.c
29
static struct dentry * vxfs_lookup(struct inode *, struct dentry *, unsigned int);
fs/freevxfs/vxfs_lookup.c
59
vxfs_find_entry(struct inode *ip, struct dentry *dp, struct page **ppp)
fs/freevxfs/vxfs_super.c
75
vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp)
fs/freevxfs/vxfs_super.c
77
struct vxfs_sb_info *infp = VXFS_SBI(dentry->d_sb);
fs/freevxfs/vxfs_super.c
79
u64 id = huge_encode_dev(dentry->d_sb->s_bdev->bd_dev);
fs/freevxfs/vxfs_super.c
82
bufp->f_bsize = dentry->d_sb->s_blocksize;
fs/fs_context.c
259
struct dentry *reference,
fs/fs_context.c
314
struct fs_context *fs_context_for_reconfigure(struct dentry *dentry,
fs/fs_context.c
318
return alloc_fs_context(dentry->d_sb->s_type, dentry, sb_flags,
fs/fs_context.c
332
struct dentry *reference)
fs/fs_parser.c
178
!S_ISBLK(d_backing_inode(_path->dentry)->i_mode)) {
fs/fs_parser.c
180
_path->dentry = NULL;
fs/fs_struct.c
25
if (old_root.dentry)
fs/fs_struct.c
43
if (old_pwd.dentry)
fs/fs_struct.c
49
if (likely(p->dentry != old->dentry || p->mnt != old->mnt))
fs/fsopen.c
191
if (target.mnt->mnt_root != target.dentry)
fs/fsopen.c
194
fc = fs_context_for_reconfigure(target.dentry, 0, 0);
fs/fuse/acl.c
68
struct dentry *dentry, int type)
fs/fuse/acl.c
70
struct inode *inode = d_inode(dentry);
fs/fuse/acl.c
95
int fuse_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/fuse/acl.c
98
struct inode *inode = d_inode(dentry);
fs/fuse/backing.c
106
res = d_is_dir(file->f_path.dentry) ? -EISDIR : -EINVAL;
fs/fuse/backing.c
107
if (!d_is_reg(file->f_path.dentry))
fs/fuse/control.c
206
static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
fs/fuse/control.c
212
struct dentry *dentry;
fs/fuse/control.c
215
dentry = d_alloc_name(parent, name);
fs/fuse/control.c
216
if (!dentry)
fs/fuse/control.c
221
dput(dentry);
fs/fuse/control.c
239
d_make_persistent(dentry, inode);
fs/fuse/control.c
240
dput(dentry);
fs/fuse/control.c
247
return dentry;
fs/fuse/control.c
256
struct dentry *parent;
fs/fuse/control.c
288
static void remove_one(struct dentry *dentry)
fs/fuse/control.c
290
d_inode(dentry)->i_private = NULL;
fs/fuse/dir.c
104
struct dentry *dentry;
fs/fuse/dir.c
1047
struct dentry *entry, umode_t mode)
fs/fuse/dir.c
1062
struct dentry *entry, umode_t mode, dev_t rdev)
fs/fuse/dir.c
1085
struct dentry *entry, umode_t mode, bool excl)
fs/fuse/dir.c
1099
err = fuse_create_open(idmap, dir, file->f_path.dentry, file,
fs/fuse/dir.c
1108
static struct dentry *fuse_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/fuse/dir.c
1109
struct dentry *entry, umode_t mode)
fs/fuse/dir.c
1131
struct dentry *entry, const char *link)
fs/fuse/dir.c
116
static void fuse_dentry_tree_del_node(struct dentry *dentry)
fs/fuse/dir.c
1169
static void fuse_entry_unlinked(struct dentry *entry)
fs/fuse/dir.c
118
struct fuse_dentry *fd = dentry->d_fsdata;
fs/fuse/dir.c
119
struct dentry_bucket *bucket = get_dentry_bucket(dentry);
fs/fuse/dir.c
1192
static int fuse_unlink(struct inode *dir, struct dentry *entry)
fs/fuse/dir.c
1216
static int fuse_rmdir(struct inode *dir, struct dentry *entry)
fs/fuse/dir.c
1240
static int fuse_rename_common(struct mnt_idmap *idmap, struct inode *olddir, struct dentry *oldent,
fs/fuse/dir.c
1241
struct inode *newdir, struct dentry *newent,
fs/fuse/dir.c
126
static void fuse_dentry_tree_add_node(struct dentry *dentry)
fs/fuse/dir.c
128
struct fuse_dentry *fd = dentry->d_fsdata;
fs/fuse/dir.c
1291
struct dentry *oldent, struct inode *newdir,
fs/fuse/dir.c
1292
struct dentry *newent, unsigned int flags)
fs/fuse/dir.c
1324
static int fuse_link(struct dentry *entry, struct inode *newdir,
fs/fuse/dir.c
1325
struct dentry *newent)
fs/fuse/dir.c
136
bucket = get_dentry_bucket(dentry);
fs/fuse/dir.c
1586
struct dentry *dir = NULL;
fs/fuse/dir.c
1587
struct dentry *entry = NULL;
fs/fuse/dir.c
1601
struct dentry *child = try_lookup_noperm(name, dir);
fs/fuse/dir.c
177
spin_lock(&fd->dentry->d_lock);
fs/fuse/dir.c
179
fd->dentry->d_flags |= DCACHE_OP_DELETE;
fs/fuse/dir.c
180
spin_unlock(&fd->dentry->d_lock);
fs/fuse/dir.c
181
d_dispose_if_unused(fd->dentry, &dispose);
fs/fuse/dir.c
1850
static const char *fuse_get_link(struct dentry *dentry, struct inode *inode,
fs/fuse/dir.c
1862
return page_get_link_raw(dentry, inode, callback);
fs/fuse/dir.c
1865
if (!dentry)
fs/fuse/dir.c
2132
int fuse_do_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/fuse/dir.c
2135
struct inode *inode = d_inode(dentry);
fs/fuse/dir.c
2154
err = setattr_prepare(idmap, dentry, attr);
fs/fuse/dir.c
2311
static int fuse_setattr(struct mnt_idmap *idmap, struct dentry *entry,
fs/fuse/dir.c
2378
struct inode *inode = d_inode(path->dentry);
fs/fuse/dir.c
240
static inline void __fuse_dentry_settime(struct dentry *dentry, u64 time)
fs/fuse/dir.c
242
((struct fuse_dentry *) dentry->d_fsdata)->time = time;
fs/fuse/dir.c
245
static inline u64 fuse_dentry_time(const struct dentry *entry)
fs/fuse/dir.c
250
static void fuse_dentry_settime(struct dentry *dentry, u64 time)
fs/fuse/dir.c
252
struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb);
fs/fuse/dir.c
258
if ((!delete && (dentry->d_flags & DCACHE_OP_DELETE)) ||
fs/fuse/dir.c
259
(delete && !(dentry->d_flags & DCACHE_OP_DELETE))) {
fs/fuse/dir.c
260
spin_lock(&dentry->d_lock);
fs/fuse/dir.c
262
dentry->d_flags &= ~DCACHE_OP_DELETE;
fs/fuse/dir.c
264
dentry->d_flags |= DCACHE_OP_DELETE;
fs/fuse/dir.c
265
spin_unlock(&dentry->d_lock);
fs/fuse/dir.c
268
__fuse_dentry_settime(dentry, time);
fs/fuse/dir.c
269
fuse_dentry_tree_add_node(dentry);
fs/fuse/dir.c
298
void fuse_change_entry_timeout(struct dentry *entry, struct fuse_entry_out *o)
fs/fuse/dir.c
342
void fuse_invalidate_entry_cache(struct dentry *entry)
fs/fuse/dir.c
351
static void fuse_invalidate_entry(struct dentry *entry)
fs/fuse/dir.c
385
struct dentry *entry, unsigned int flags)
fs/fuse/dir.c
472
static int fuse_dentry_init(struct dentry *dentry)
fs/fuse/dir.c
481
fd->dentry = dentry;
fs/fuse/dir.c
483
dentry->d_fsdata = fd;
fs/fuse/dir.c
488
static void fuse_dentry_release(struct dentry *dentry)
fs/fuse/dir.c
490
struct fuse_dentry *fd = dentry->d_fsdata;
fs/fuse/dir.c
493
fuse_dentry_tree_del_node(dentry);
fs/fuse/dir.c
497
static int fuse_dentry_delete(const struct dentry *dentry)
fs/fuse/dir.c
499
return time_before64(fuse_dentry_time(dentry), get_jiffies_64());
fs/fuse/dir.c
511
struct fuse_inode *mp_fi = get_fuse_inode(d_inode(path->dentry));
fs/fuse/dir.c
513
fsc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry);
fs/fuse/dir.c
603
static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
fs/fuse/dir.c
609
struct dentry *newent;
fs/fuse/dir.c
657
static int get_security_context(struct dentry *entry, umode_t mode,
fs/fuse/dir.c
775
struct inode *dir, struct dentry *dentry,
fs/fuse/dir.c
778
struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb);
fs/fuse/dir.c
783
err = get_security_context(dentry, mode, &ext);
fs/fuse/dir.c
812
struct dentry *entry, struct file *file,
fs/fuse/dir.c
84
static inline struct dentry_bucket *get_dentry_bucket(struct dentry *dentry)
fs/fuse/dir.c
86
int i = hash_ptr(dentry, FUSE_HASH_BITS);
fs/fuse/dir.c
926
static int fuse_mknod(struct mnt_idmap *, struct inode *, struct dentry *,
fs/fuse/dir.c
928
static int fuse_atomic_open(struct inode *dir, struct dentry *entry,
fs/fuse/dir.c
940
struct dentry *res = fuse_lookup(dir, entry, 0);
fs/fuse/dir.c
972
static struct dentry *create_new_entry(struct mnt_idmap *idmap, struct fuse_mount *fm,
fs/fuse/dir.c
974
struct dentry *entry, umode_t mode)
fs/fuse/dir.c
978
struct dentry *d;
fs/fuse/fuse_i.h
1311
void fuse_invalidate_entry_cache(struct dentry *entry);
fs/fuse/fuse_i.h
1319
void fuse_change_entry_timeout(struct dentry *entry, struct fuse_entry_out *o);
fs/fuse/fuse_i.h
1472
int fuse_do_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/fuse/fuse_i.h
1484
ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size);
fs/fuse/fuse_i.h
1491
struct dentry *dentry, int type);
fs/fuse/fuse_i.h
1492
int fuse_set_acl(struct mnt_idmap *, struct dentry *dentry,
fs/fuse/fuse_i.h
1531
int fuse_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/fuse/fuse_i.h
1533
struct dentry *dentry, struct file_kattr *fa);
fs/fuse/inode.c
1073
static struct dentry *fuse_get_dentry(struct super_block *sb,
fs/fuse/inode.c
1078
struct dentry *entry;
fs/fuse/inode.c
1152
static struct dentry *fuse_fh_to_dentry(struct super_block *sb,
fs/fuse/inode.c
1167
static struct dentry *fuse_fh_to_parent(struct super_block *sb,
fs/fuse/inode.c
1181
static struct dentry *fuse_get_parent(struct dentry *child)
fs/fuse/inode.c
1186
struct dentry *parent;
fs/fuse/inode.c
1830
struct dentry *root_dentry;
fs/fuse/inode.c
657
static int fuse_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/fuse/inode.c
659
struct super_block *sb = dentry->d_sb;
fs/fuse/inode.c
673
args.nodeid = get_node_id(d_inode(dentry));
fs/fuse/inode.c
912
static int fuse_show_options(struct seq_file *m, struct dentry *root)
fs/fuse/ioctl.c
505
int fuse_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/fuse/ioctl.c
507
struct inode *inode = d_inode(dentry);
fs/fuse/ioctl.c
543
struct dentry *dentry, struct file_kattr *fa)
fs/fuse/ioctl.c
545
struct inode *inode = d_inode(dentry);
fs/fuse/readdir.c
156
struct dentry *parent = file->f_path.dentry;
fs/fuse/readdir.c
158
struct dentry *dentry;
fs/fuse/readdir.c
159
struct dentry *alias;
fs/fuse/readdir.c
197
dentry = d_lookup(parent, &name);
fs/fuse/readdir.c
198
if (!dentry) {
fs/fuse/readdir.c
200
dentry = d_alloc_parallel(parent, &name, &wq);
fs/fuse/readdir.c
201
if (IS_ERR(dentry))
fs/fuse/readdir.c
202
return PTR_ERR(dentry);
fs/fuse/readdir.c
204
if (!d_in_lookup(dentry)) {
fs/fuse/readdir.c
206
inode = d_inode(dentry);
fs/fuse/readdir.c
213
d_invalidate(dentry);
fs/fuse/readdir.c
214
dput(dentry);
fs/fuse/readdir.c
218
dput(dentry);
fs/fuse/readdir.c
242
alias = d_splice_alias(inode, dentry);
fs/fuse/readdir.c
243
d_lookup_done(dentry);
fs/fuse/readdir.c
245
dput(dentry);
fs/fuse/readdir.c
246
dentry = alias;
fs/fuse/readdir.c
248
if (IS_ERR(dentry)) {
fs/fuse/readdir.c
256
return PTR_ERR(dentry);
fs/fuse/readdir.c
261
dentry->d_time = epoch;
fs/fuse/readdir.c
262
fuse_change_entry_timeout(dentry, o);
fs/fuse/readdir.c
264
dput(dentry);
fs/fuse/xattr.c
109
ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size)
fs/fuse/xattr.c
183
struct dentry *dentry, struct inode *inode,
fs/fuse/xattr.c
194
struct dentry *dentry, struct inode *inode,
fs/gfs2/acl.c
105
int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/gfs2/acl.c
108
struct inode *inode = d_inode(dentry);
fs/gfs2/acl.h
16
int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/gfs2/dentry.c
36
struct dentry *dentry, unsigned int flags)
fs/gfs2/dentry.c
49
inode = d_inode(dentry);
fs/gfs2/dentry.c
75
static int gfs2_dhash(const struct dentry *dentry, struct qstr *str)
fs/gfs2/dentry.c
81
static int gfs2_dentry_delete(const struct dentry *dentry)
fs/gfs2/dentry.c
85
if (d_really_is_negative(dentry))
fs/gfs2/dentry.c
88
ginode = GFS2_I(d_inode(dentry));
fs/gfs2/dir.c
1875
int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry)
fs/gfs2/dir.c
1877
const struct qstr *name = &dentry->d_name;
fs/gfs2/dir.c
1916
if (d_is_dir(dentry))
fs/gfs2/dir.h
38
int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry);
fs/gfs2/export.c
126
static struct dentry *gfs2_get_parent(struct dentry *child)
fs/gfs2/export.c
131
static struct dentry *gfs2_get_dentry(struct super_block *sb,
fs/gfs2/export.c
144
static struct dentry *gfs2_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/gfs2/export.c
166
static struct dentry *gfs2_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/gfs2/export.c
85
static int gfs2_get_name(struct dentry *parent, char *name,
fs/gfs2/export.c
86
struct dentry *child)
fs/gfs2/file.c
158
int gfs2_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/gfs2/file.c
160
struct inode *inode = d_inode(dentry);
fs/gfs2/file.c
166
if (d_is_special(dentry))
fs/gfs2/file.c
279
struct dentry *dentry, struct file_kattr *fa)
fs/gfs2/file.c
281
struct inode *inode = d_inode(dentry);
fs/gfs2/file.c
286
if (d_is_special(dentry))
fs/gfs2/glock.c
68
static struct dentry *gfs2_root;
fs/gfs2/incore.h
730
struct dentry *sd_master_dir;
fs/gfs2/incore.h
731
struct dentry *sd_root_dir;
fs/gfs2/incore.h
849
struct dentry *debugfs_dir; /* debugfs directory */
fs/gfs2/inode.c
1005
d = d_splice_alias(inode, dentry);
fs/gfs2/inode.c
1011
error = finish_open(file, dentry, gfs2_open_common);
fs/gfs2/inode.c
1021
static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry,
fs/gfs2/inode.c
1024
return __gfs2_lookup(dir, dentry, NULL);
fs/gfs2/inode.c
1039
static int gfs2_link(struct dentry *old_dentry, struct inode *dir,
fs/gfs2/inode.c
1040
struct dentry *dentry)
fs/gfs2/inode.c
1077
error = gfs2_dir_check(dir, &dentry->d_name, NULL);
fs/gfs2/inode.c
1101
error = gfs2_diradd_alloc_required(dir, &dentry->d_name, &da);
fs/gfs2/inode.c
1128
error = gfs2_dir_add(dir, &dentry->d_name, ip, &da);
fs/gfs2/inode.c
1136
d_instantiate(dentry, inode);
fs/gfs2/inode.c
1208
const struct dentry *dentry)
fs/gfs2/inode.c
1210
struct inode *inode = d_inode(dentry);
fs/gfs2/inode.c
1214
error = gfs2_dir_del(dip, dentry);
fs/gfs2/inode.c
1242
static int gfs2_unlink(struct inode *dir, struct dentry *dentry)
fs/gfs2/inode.c
1246
struct inode *inode = d_inode(dentry);
fs/gfs2/inode.c
1290
error = gfs2_unlink_ok(dip, &dentry->d_name, ip);
fs/gfs2/inode.c
1298
error = gfs2_unlink_inode(dip, dentry);
fs/gfs2/inode.c
1326
struct dentry *dentry, const char *symname)
fs/gfs2/inode.c
1334
return gfs2_create_inode(dir, dentry, NULL, S_IFLNK | S_IRWXUGO, 0, symname, size, 0);
fs/gfs2/inode.c
1347
static struct dentry *gfs2_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/gfs2/inode.c
1348
struct dentry *dentry, umode_t mode)
fs/gfs2/inode.c
1352
return ERR_PTR(gfs2_create_inode(dir, dentry, NULL, S_IFDIR | mode, 0, NULL, dsize, 0));
fs/gfs2/inode.c
1366
struct dentry *dentry, umode_t mode, dev_t dev)
fs/gfs2/inode.c
1368
return gfs2_create_inode(dir, dentry, NULL, mode, dev, NULL, 0, 0);
fs/gfs2/inode.c
1382
static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry,
fs/gfs2/inode.c
1388
if (d_in_lookup(dentry)) {
fs/gfs2/inode.c
1389
struct dentry *d = __gfs2_lookup(dir, dentry, file);
fs/gfs2/inode.c
1396
if (d || d_really_is_positive(dentry))
fs/gfs2/inode.c
1402
return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl);
fs/gfs2/inode.c
1485
static int gfs2_rename(struct inode *odir, struct dentry *odentry,
fs/gfs2/inode.c
1486
struct inode *ndir, struct dentry *ndentry)
fs/gfs2/inode.c
1736
static int gfs2_exchange(struct inode *odir, struct dentry *odentry,
fs/gfs2/inode.c
1737
struct inode *ndir, struct dentry *ndentry,
fs/gfs2/inode.c
1880
struct dentry *odentry, struct inode *ndir,
fs/gfs2/inode.c
1881
struct dentry *ndentry, unsigned int flags)
fs/gfs2/inode.c
1905
static const char *gfs2_get_link(struct dentry *dentry,
fs/gfs2/inode.c
1916
if (!dentry)
fs/gfs2/inode.c
2098
struct dentry *dentry, struct iattr *attr)
fs/gfs2/inode.c
2100
struct inode *inode = d_inode(dentry);
fs/gfs2/inode.c
2117
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/gfs2/inode.c
2128
error = posix_acl_chmod(&nop_mnt_idmap, dentry,
fs/gfs2/inode.c
2162
struct inode *inode = d_inode(path->dentry);
fs/gfs2/inode.c
700
static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
fs/gfs2/inode.c
705
const struct qstr *name = &dentry->d_name;
fs/gfs2/inode.c
738
inode = gfs2_dir_search(dir, &dentry->d_name, !S_ISREG(mode) || excl);
fs/gfs2/inode.c
747
d_instantiate(dentry, inode);
fs/gfs2/inode.c
751
error = finish_open(file, dentry, gfs2_open_common);
fs/gfs2/inode.c
895
d_instantiate(dentry, inode);
fs/gfs2/inode.c
900
error = finish_open(file, dentry, gfs2_open_common);
fs/gfs2/inode.c
966
struct dentry *dentry, umode_t mode, bool excl)
fs/gfs2/inode.c
968
return gfs2_create_inode(dir, dentry, NULL, S_IFREG | mode, 0, NULL, 0, excl);
fs/gfs2/inode.c
981
static struct dentry *__gfs2_lookup(struct inode *dir, struct dentry *dentry,
fs/gfs2/inode.c
985
struct dentry *d;
fs/gfs2/inode.c
990
inode = gfs2_lookupi(dir, &dentry->d_name, 0);
fs/gfs2/inode.c
992
d_add(dentry, NULL);
fs/gfs2/inode.h
111
int gfs2_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/gfs2/inode.h
113
struct dentry *dentry, struct file_kattr *fa);
fs/gfs2/ops_fstype.c
1689
fc->sget_key = path.dentry->d_sb->s_bdev;
fs/gfs2/ops_fstype.c
419
static int gfs2_lookup_root(struct super_block *sb, struct dentry **dptr,
fs/gfs2/ops_fstype.c
423
struct dentry *dentry;
fs/gfs2/ops_fstype.c
432
dentry = d_make_root(inode);
fs/gfs2/ops_fstype.c
433
if (!dentry) {
fs/gfs2/ops_fstype.c
437
*dptr = dentry;
fs/gfs2/super.c
1050
static int gfs2_show_options(struct seq_file *s, struct dentry *root)
fs/gfs2/super.c
958
static int gfs2_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/gfs2/super.c
960
struct super_block *sb = dentry->d_sb;
fs/gfs2/xattr.c
1233
struct dentry *unused, struct inode *inode,
fs/gfs2/xattr.c
1489
gfs2_xattr_trusted_list(struct dentry *dentry)
fs/gfs2/xattr.c
416
ssize_t gfs2_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/gfs2/xattr.c
418
struct gfs2_inode *ip = GFS2_I(d_inode(dentry));
fs/gfs2/xattr.c
608
struct dentry *unused, struct inode *inode,
fs/gfs2/xattr.h
56
ssize_t gfs2_listxattr(struct dentry *dentry, char *buffer, size_t size);
fs/hfs/attr.c
117
struct dentry *unused, struct inode *inode,
fs/hfs/attr.c
125
struct dentry *unused, struct inode *inode,
fs/hfs/dir.c
193
struct dentry *dentry, umode_t mode, bool excl)
fs/hfs/dir.c
198
inode = hfs_new_inode(dir, &dentry->d_name, mode);
fs/hfs/dir.c
20
static struct dentry *hfs_lookup(struct inode *dir, struct dentry *dentry,
fs/hfs/dir.c
202
res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode);
fs/hfs/dir.c
209
d_instantiate(dentry, inode);
fs/hfs/dir.c
222
static struct dentry *hfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/hfs/dir.c
223
struct dentry *dentry, umode_t mode)
fs/hfs/dir.c
228
inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode);
fs/hfs/dir.c
232
res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode);
fs/hfs/dir.c
239
d_instantiate(dentry, inode);
fs/hfs/dir.c
255
static int hfs_remove(struct inode *dir, struct dentry *dentry)
fs/hfs/dir.c
258
struct inode *inode = d_inode(dentry);
fs/hfs/dir.c
269
res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name);
fs/hfs/dir.c
291
struct dentry *old_dentry, struct inode *new_dir,
fs/hfs/dir.c
292
struct dentry *new_dentry, unsigned int flags)
fs/hfs/dir.c
31
hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name);
fs/hfs/dir.c
42
return d_splice_alias(inode, dentry);
fs/hfs/hfs_fs.h
188
extern int hfs_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/hfs/hfs_fs.h
215
extern int hfs_hash_dentry(const struct dentry *dentry, struct qstr *this);
fs/hfs/hfs_fs.h
218
extern int hfs_compare_dentry(const struct dentry *dentry,
fs/hfs/inode.c
544
static struct dentry *hfs_file_lookup(struct inode *dir, struct dentry *dentry,
fs/hfs/inode.c
552
if (HFS_IS_RSRC(dir) || strcmp(dentry->d_name.name, "rsrc"))
fs/hfs/inode.c
584
dont_mount(dentry);
fs/hfs/inode.c
586
return d_splice_alias(inode, dentry);
fs/hfs/inode.c
642
int hfs_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/hfs/inode.c
645
struct inode *inode = d_inode(dentry);
fs/hfs/inode.c
649
error = setattr_prepare(&nop_mnt_idmap, dentry,
fs/hfs/string.c
56
int hfs_hash_dentry(const struct dentry *dentry, struct qstr *this)
fs/hfs/string.c
64
hash = init_name_hash(dentry);
fs/hfs/string.c
99
int hfs_compare_dentry(const struct dentry *dentry,
fs/hfs/string_test.c
100
KUNIT_EXPECT_EQ(test, 1, hfs_compare_dentry(&dentry, 7,
fs/hfs/string_test.c
102
KUNIT_EXPECT_EQ(test, 1, hfs_compare_dentry(&dentry, 9,
fs/hfs/string_test.c
108
KUNIT_EXPECT_EQ(test, 0, hfs_compare_dentry(&dentry, 0, "", &test_name));
fs/hfs/string_test.c
113
KUNIT_EXPECT_EQ(test, 0, hfs_compare_dentry(&dentry, HFS_NAMELEN,
fs/hfs/string_test.c
45
struct dentry dentry = {};
fs/hfs/string_test.c
64
KUNIT_EXPECT_EQ(test, 0, hfs_hash_dentry(&dentry, &test_name1));
fs/hfs/string_test.c
65
KUNIT_EXPECT_EQ(test, 0, hfs_hash_dentry(&dentry, &test_name2));
fs/hfs/string_test.c
66
KUNIT_EXPECT_EQ(test, 0, hfs_hash_dentry(&dentry, &test_name3));
fs/hfs/string_test.c
79
struct dentry dentry = {};
fs/hfs/string_test.c
86
KUNIT_EXPECT_EQ(test, 0, hfs_compare_dentry(&dentry, 8,
fs/hfs/string_test.c
90
KUNIT_EXPECT_EQ(test, 0, hfs_compare_dentry(&dentry, 8,
fs/hfs/string_test.c
92
KUNIT_EXPECT_EQ(test, 0, hfs_compare_dentry(&dentry, 8,
fs/hfs/string_test.c
96
KUNIT_EXPECT_EQ(test, 1, hfs_compare_dentry(&dentry, 8,
fs/hfs/super.c
100
static int hfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/hfs/super.c
102
struct super_block *sb = dentry->d_sb;
fs/hfs/super.c
141
static int hfs_show_options(struct seq_file *seq, struct dentry *root)
fs/hfs/sysdep.c
17
struct dentry *dentry, unsigned int flags)
fs/hfs/sysdep.c
25
inode = d_inode(dentry);
fs/hfsplus/dir.c
110
} else if (!dentry->d_fsdata)
fs/hfsplus/dir.c
111
dentry->d_fsdata = (void *)(unsigned long)cnid;
fs/hfsplus/dir.c
124
return d_splice_alias(inode, dentry);
fs/hfsplus/dir.c
22
static inline void hfsplus_instantiate(struct dentry *dentry,
fs/hfsplus/dir.c
25
dentry->d_fsdata = (void *)(unsigned long)cnid;
fs/hfsplus/dir.c
26
d_instantiate(dentry, inode);
fs/hfsplus/dir.c
30
static struct dentry *hfsplus_lookup(struct inode *dir, struct dentry *dentry,
fs/hfsplus/dir.c
300
static int hfsplus_link(struct dentry *src_dentry, struct inode *dst_dir,
fs/hfsplus/dir.c
301
struct dentry *dst_dentry)
fs/hfsplus/dir.c
376
static int hfsplus_unlink(struct inode *dir, struct dentry *dentry)
fs/hfsplus/dir.c
379
struct inode *inode = d_inode(dentry);
fs/hfsplus/dir.c
392
cnid = (u32)(unsigned long)dentry->d_fsdata;
fs/hfsplus/dir.c
398
dir, &dentry->d_name,
fs/hfsplus/dir.c
406
res = hfsplus_delete_cat(cnid, dir, &dentry->d_name);
fs/hfsplus/dir.c
43
dentry->d_fsdata = NULL;
fs/hfsplus/dir.c
445
static int hfsplus_rmdir(struct inode *dir, struct dentry *dentry)
fs/hfsplus/dir.c
448
struct inode *inode = d_inode(dentry);
fs/hfsplus/dir.c
455
res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name);
fs/hfsplus/dir.c
470
struct dentry *dentry, const char *symname)
fs/hfsplus/dir.c
48
&dentry->d_name);
fs/hfsplus/dir.c
485
res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode);
fs/hfsplus/dir.c
489
res = hfsplus_init_security(inode, dir, &dentry->d_name);
fs/hfsplus/dir.c
494
hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name);
fs/hfsplus/dir.c
498
hfsplus_instantiate(dentry, inode, inode->i_ino);
fs/hfsplus/dir.c
518
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/hfsplus/dir.c
532
res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode);
fs/hfsplus/dir.c
536
res = hfsplus_init_security(inode, dir, &dentry->d_name);
fs/hfsplus/dir.c
541
hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name);
fs/hfsplus/dir.c
545
hfsplus_instantiate(dentry, inode, inode->i_ino);
fs/hfsplus/dir.c
565
struct dentry *dentry, umode_t mode, bool excl)
fs/hfsplus/dir.c
567
return hfsplus_mknod(&nop_mnt_idmap, dir, dentry, mode, 0);
fs/hfsplus/dir.c
570
static struct dentry *hfsplus_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/hfsplus/dir.c
571
struct dentry *dentry, umode_t mode)
fs/hfsplus/dir.c
573
return ERR_PTR(hfsplus_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFDIR, 0));
fs/hfsplus/dir.c
577
struct inode *old_dir, struct dentry *old_dentry,
fs/hfsplus/dir.c
578
struct inode *new_dir, struct dentry *new_dentry,
fs/hfsplus/dir.c
69
dentry->d_fsdata = (void *)(unsigned long)cnid;
fs/hfsplus/dir.c
90
if (dentry->d_fsdata) {
fs/hfsplus/dir.c
95
cnid = (unsigned long)dentry->d_fsdata;
fs/hfsplus/dir.c
98
dentry->d_fsdata = (void *)(unsigned long)cnid;
fs/hfsplus/hfsplus_fs.h
463
int hfsplus_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/hfsplus/hfsplus_fs.h
465
struct dentry *dentry, struct file_kattr *fa);
fs/hfsplus/hfsplus_fs.h
473
int hfsplus_show_options(struct seq_file *seq, struct dentry *root);
fs/hfsplus/hfsplus_fs.h
503
int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str);
fs/hfsplus/hfsplus_fs.h
504
int hfsplus_compare_dentry(const struct dentry *dentry, unsigned int len,
fs/hfsplus/inode.c
267
struct dentry *dentry, struct iattr *attr)
fs/hfsplus/inode.c
269
struct inode *inode = d_inode(dentry);
fs/hfsplus/inode.c
272
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/hfsplus/inode.c
300
struct inode *inode = d_inode(path->dentry);
fs/hfsplus/inode.c
727
int hfsplus_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/hfsplus/inode.c
729
struct inode *inode = d_inode(dentry);
fs/hfsplus/inode.c
746
struct dentry *dentry, struct file_kattr *fa)
fs/hfsplus/inode.c
748
struct inode *inode = d_inode(dentry);
fs/hfsplus/ioctl.c
29
struct dentry *dentry = file->f_path.dentry;
fs/hfsplus/ioctl.c
30
struct inode *inode = d_inode(dentry);
fs/hfsplus/ioctl.c
34
u32 cnid = (unsigned long)dentry->d_fsdata;
fs/hfsplus/ioctl.c
43
cpu_to_be32(d_parent_ino(dentry));
fs/hfsplus/ioctl.c
54
cpu_to_be32(d_parent_ino(dentry));
fs/hfsplus/options.c
147
int hfsplus_show_options(struct seq_file *seq, struct dentry *root)
fs/hfsplus/super.c
356
static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/hfsplus/super.c
358
struct super_block *sb = dentry->d_sb;
fs/hfsplus/unicode.c
437
int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str)
fs/hfsplus/unicode.c
439
struct super_block *sb = dentry->d_sb;
fs/hfsplus/unicode.c
450
hash = init_name_hash(dentry);
fs/hfsplus/unicode.c
490
int hfsplus_compare_dentry(const struct dentry *dentry,
fs/hfsplus/unicode.c
493
struct super_block *sb = dentry->d_sb;
fs/hfsplus/unicode_test.c
935
static struct dentry test_dentry;
fs/hfsplus/xattr.c
641
static ssize_t hfsplus_listxattr_finder_info(struct dentry *dentry,
fs/hfsplus/xattr.c
645
struct inode *inode = d_inode(dentry);
fs/hfsplus/xattr.c
709
ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/hfsplus/xattr.c
713
struct inode *inode = d_inode(dentry);
fs/hfsplus/xattr.c
725
res = hfsplus_listxattr_finder_info(dentry, buffer, size);
fs/hfsplus/xattr.c
892
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr.c
913
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr.h
36
ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
fs/hfsplus/xattr_security.c
17
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr_security.c
27
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr_trusted.c
16
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr_trusted.c
26
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr_user.c
16
struct dentry *unused, struct inode *inode,
fs/hfsplus/xattr_user.c
26
struct dentry *unused, struct inode *inode,
fs/hostfs/hostfs_kern.c
114
static char *dentry_name(struct dentry *dentry)
fs/hostfs/hostfs_kern.c
120
return __dentry_name(dentry, name);
fs/hostfs/hostfs_kern.c
125
struct dentry *dentry;
fs/hostfs/hostfs_kern.c
128
dentry = d_find_alias(ino);
fs/hostfs/hostfs_kern.c
129
if (!dentry)
fs/hostfs/hostfs_kern.c
132
name = dentry_name(dentry);
fs/hostfs/hostfs_kern.c
134
dput(dentry);
fs/hostfs/hostfs_kern.c
181
static int hostfs_statfs(struct dentry *dentry, struct kstatfs *sf)
fs/hostfs/hostfs_kern.c
196
fsi = dentry->d_sb->s_fs_info;
fs/hostfs/hostfs_kern.c
243
static int hostfs_show_options(struct seq_file *seq, struct dentry *root)
fs/hostfs/hostfs_kern.c
278
name = dentry_name(file->f_path.dentry);
fs/hostfs/hostfs_kern.c
596
struct dentry *dentry, umode_t mode, bool excl)
fs/hostfs/hostfs_kern.c
602
name = dentry_name(dentry);
fs/hostfs/hostfs_kern.c
619
d_instantiate(dentry, inode);
fs/hostfs/hostfs_kern.c
623
static struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry,
fs/hostfs/hostfs_kern.c
629
name = dentry_name(dentry);
fs/hostfs/hostfs_kern.c
638
return d_splice_alias(inode, dentry);
fs/hostfs/hostfs_kern.c
641
static int hostfs_link(struct dentry *to, struct inode *ino,
fs/hostfs/hostfs_kern.c
642
struct dentry *from)
fs/hostfs/hostfs_kern.c
660
static int hostfs_unlink(struct inode *ino, struct dentry *dentry)
fs/hostfs/hostfs_kern.c
668
if ((file = dentry_name(dentry)) == NULL)
fs/hostfs/hostfs_kern.c
677
struct dentry *dentry, const char *to)
fs/hostfs/hostfs_kern.c
682
if ((file = dentry_name(dentry)) == NULL)
fs/hostfs/hostfs_kern.c
689
static struct dentry *hostfs_mkdir(struct mnt_idmap *idmap, struct inode *ino,
fs/hostfs/hostfs_kern.c
690
struct dentry *dentry, umode_t mode)
fs/hostfs/hostfs_kern.c
696
if ((file = dentry_name(dentry)) == NULL)
fs/hostfs/hostfs_kern.c
700
dentry = ERR_PTR(err);
fs/hostfs/hostfs_kern.c
702
inode = hostfs_iget(dentry->d_sb, file);
fs/hostfs/hostfs_kern.c
703
d_drop(dentry);
fs/hostfs/hostfs_kern.c
704
dentry = d_splice_alias(inode, dentry);
fs/hostfs/hostfs_kern.c
707
return dentry;
fs/hostfs/hostfs_kern.c
710
static int hostfs_rmdir(struct inode *ino, struct dentry *dentry)
fs/hostfs/hostfs_kern.c
715
if ((file = dentry_name(dentry)) == NULL)
fs/hostfs/hostfs_kern.c
723
struct dentry *dentry, umode_t mode, dev_t dev)
fs/hostfs/hostfs_kern.c
729
name = dentry_name(dentry);
fs/hostfs/hostfs_kern.c
744
d_instantiate(dentry, inode);
fs/hostfs/hostfs_kern.c
749
struct inode *old_dir, struct dentry *old_dentry,
fs/hostfs/hostfs_kern.c
750
struct inode *new_dir, struct dentry *new_dentry,
fs/hostfs/hostfs_kern.c
805
struct dentry *dentry, struct iattr *attr)
fs/hostfs/hostfs_kern.c
807
struct inode *inode = d_inode(dentry);
fs/hostfs/hostfs_kern.c
814
err = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/hostfs/hostfs_kern.c
859
name = dentry_name(dentry);
fs/hostfs/hostfs_kern.c
895
static const char *hostfs_get_link(struct dentry *dentry,
fs/hostfs/hostfs_kern.c
900
if (!dentry)
fs/hostfs/hostfs_kern.c
904
char *path = dentry_name(dentry);
fs/hostfs/hostfs_kern.c
96
static char *__dentry_name(struct dentry *dentry, char *name)
fs/hostfs/hostfs_kern.c
98
char *p = dentry_path_raw(dentry, name, PATH_MAX);
fs/hostfs/hostfs_kern.c
99
struct hostfs_fs_info *fsi = dentry->d_sb->s_fs_info;
fs/hpfs/dentry.c
16
static int hpfs_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
fs/hpfs/dentry.c
30
hash = init_name_hash(dentry);
fs/hpfs/dentry.c
32
hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash);
fs/hpfs/dentry.c
38
static int hpfs_compare_dentry(const struct dentry *dentry,
fs/hpfs/dentry.c
54
if (hpfs_compare_names(dentry->d_sb, str, al, name->name, bl, 0))
fs/hpfs/dir.c
202
struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/hpfs/dir.c
204
const unsigned char *name = dentry->d_name.name;
fs/hpfs/dir.c
205
unsigned len = dentry->d_name.len;
fs/hpfs/dir.c
319
return d_splice_alias(result, dentry);
fs/hpfs/hpfs_fn.h
240
struct dentry *hpfs_lookup(struct inode *, struct dentry *, unsigned int);
fs/hpfs/hpfs_fn.h
283
int hpfs_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
fs/hpfs/inode.c
260
int hpfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/hpfs/inode.c
263
struct inode *inode = d_inode(dentry);
fs/hpfs/inode.c
278
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/hpfs/namei.c
115
d_instantiate(dentry, result);
fs/hpfs/namei.c
132
struct dentry *dentry, umode_t mode, bool excl)
fs/hpfs/namei.c
134
const unsigned char *name = dentry->d_name.name;
fs/hpfs/namei.c
135
unsigned len = dentry->d_name.len;
fs/hpfs/namei.c
204
d_instantiate(dentry, result);
fs/hpfs/namei.c
219
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/hpfs/namei.c
22
static struct dentry *hpfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/hpfs/namei.c
221
const unsigned char *name = dentry->d_name.name;
fs/hpfs/namei.c
222
unsigned len = dentry->d_name.len;
fs/hpfs/namei.c
23
struct dentry *dentry, umode_t mode)
fs/hpfs/namei.c
25
const unsigned char *name = dentry->d_name.name;
fs/hpfs/namei.c
26
unsigned len = dentry->d_name.len;
fs/hpfs/namei.c
278
d_instantiate(dentry, result);
fs/hpfs/namei.c
293
struct dentry *dentry, const char *symlink)
fs/hpfs/namei.c
295
const unsigned char *name = dentry->d_name.name;
fs/hpfs/namei.c
296
unsigned len = dentry->d_name.len;
fs/hpfs/namei.c
359
d_instantiate(dentry, result);
fs/hpfs/namei.c
372
static int hpfs_unlink(struct inode *dir, struct dentry *dentry)
fs/hpfs/namei.c
374
const unsigned char *name = dentry->d_name.name;
fs/hpfs/namei.c
375
unsigned len = dentry->d_name.len;
fs/hpfs/namei.c
378
struct inode *inode = d_inode(dentry);
fs/hpfs/namei.c
423
static int hpfs_rmdir(struct inode *dir, struct dentry *dentry)
fs/hpfs/namei.c
425
const unsigned char *name = dentry->d_name.name;
fs/hpfs/namei.c
426
unsigned len = dentry->d_name.len;
fs/hpfs/namei.c
429
struct inode *inode = d_inode(dentry);
fs/hpfs/namei.c
504
struct dentry *old_dentry, struct inode *new_dir,
fs/hpfs/namei.c
505
struct dentry *new_dentry, unsigned int flags)
fs/hpfs/super.c
179
static int hpfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/hpfs/super.c
181
struct super_block *s = dentry->d_sb;
fs/hpfs/super.c
459
static int hpfs_show_options(struct seq_file *seq, struct dentry *root)
fs/hugetlbfs/inode.c
1001
static struct dentry *hugetlbfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/hugetlbfs/inode.c
1002
struct dentry *dentry, umode_t mode)
fs/hugetlbfs/inode.c
1004
int retval = hugetlbfs_mknod(idmap, dir, dentry,
fs/hugetlbfs/inode.c
1012
struct inode *dir, struct dentry *dentry,
fs/hugetlbfs/inode.c
1015
return hugetlbfs_mknod(idmap, dir, dentry, mode | S_IFREG, 0);
fs/hugetlbfs/inode.c
1033
struct inode *dir, struct dentry *dentry,
fs/hugetlbfs/inode.c
1045
d_make_persistent(dentry, inode);
fs/hugetlbfs/inode.c
1088
static int hugetlbfs_show_options(struct seq_file *m, struct dentry *root)
fs/hugetlbfs/inode.c
1125
static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/hugetlbfs/inode.c
1127
struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb);
fs/hugetlbfs/inode.c
1128
struct hstate *h = hstate_inode(d_inode(dentry));
fs/hugetlbfs/inode.c
1129
u64 id = huge_encode_dev(dentry->d_sb->s_dev);
fs/hugetlbfs/inode.c
864
struct dentry *dentry, struct iattr *attr)
fs/hugetlbfs/inode.c
866
struct inode *inode = d_inode(dentry);
fs/hugetlbfs/inode.c
872
error = setattr_prepare(idmap, dentry, attr);
fs/hugetlbfs/inode.c
876
trace_hugetlbfs_setattr(inode, dentry, attr);
fs/hugetlbfs/inode.c
989
struct dentry *dentry, umode_t mode, dev_t dev)
fs/hugetlbfs/inode.c
997
d_make_persistent(dentry, inode);
fs/inode.c
2251
struct inode *inode = d_inode(path->dentry);
fs/inode.c
2286
struct dentry *dentry)
fs/inode.c
2288
struct inode *inode = d_inode(dentry);
fs/inode.c
2296
ret = security_inode_need_killpriv(dentry);
fs/inode.c
2305
struct dentry *dentry, int kill)
fs/inode.c
2314
return notify_change(idmap, dentry, &newattrs, NULL);
fs/inode.c
2319
struct dentry *dentry = file_dentry(file);
fs/inode.c
2327
kill = dentry_needs_remove_privs(file_mnt_idmap(file), dentry);
fs/inode.c
2335
error = __remove_privs(file_mnt_idmap(file), dentry, kill);
fs/inode.c
726
struct dentry *dentry_ptr;
fs/inode.c
727
struct dentry dentry;
fs/inode.c
757
dentry_ptr = container_of(dentry_first, struct dentry, d_u.d_alias);
fs/inode.c
758
if (get_kernel_nofault(dentry, dentry_ptr) ||
fs/inode.c
759
!dentry.d_parent || !dentry.d_name.name) {
fs/inode.c
765
if (strncpy_from_kernel_nofault(fname, dentry.d_name.name, 63) < 0)
fs/internal.h
213
int dentry_needs_remove_privs(struct mnt_idmap *, struct dentry *dentry);
fs/internal.h
226
extern int d_set_mounted(struct dentry *dentry);
fs/internal.h
228
extern struct dentry *d_alloc_cursor(struct dentry *);
fs/internal.h
229
extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *);
fs/internal.h
230
extern char *simple_dname(struct dentry *, char *, int);
fs/internal.h
231
extern void dput_to_list(struct dentry *, struct list_head *);
fs/internal.h
234
extern struct dentry *__d_lookup(const struct dentry *, const struct qstr *);
fs/internal.h
235
extern struct dentry *__d_lookup_rcu(const struct dentry *parent,
fs/internal.h
305
int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/internal.h
307
ssize_t do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/internal.h
311
struct dentry *dentry, const char *acl_name,
fs/internal.h
317
struct dentry *dentry, const char *acl_name,
fs/internal.h
333
struct dentry *(*stash_dentry)(struct dentry **stashed,
fs/internal.h
334
struct dentry *dentry);
fs/internal.h
338
int path_from_stashed(struct dentry **stashed, struct vfsmount *mnt, void *data,
fs/internal.h
340
void stashed_dentry_prune(struct dentry *dentry);
fs/internal.h
341
struct dentry *stash_dentry(struct dentry **stashed, struct dentry *dentry);
fs/internal.h
342
struct dentry *stashed_dentry_get(struct dentry **stashed);
fs/internal.h
353
return path->mnt->mnt_root == path->dentry;
fs/internal.h
358
struct dentry *find_next_child(struct dentry *parent, struct dentry *prev);
fs/internal.h
362
int anon_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/internal.h
69
struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *);
fs/internal.h
70
struct dentry *start_dirop(struct dentry *parent, struct qstr *name,
fs/internal.h
72
int lookup_noperm_common(struct qstr *qname, struct dentry *base);
fs/internal.h
97
int show_path(struct seq_file *m, struct dentry *root);
fs/isofs/export.c
162
static struct dentry *isofs_fh_to_dentry(struct super_block *sb,
fs/isofs/export.c
174
static struct dentry *isofs_fh_to_parent(struct super_block *sb,
fs/isofs/export.c
19
static struct dentry *
fs/isofs/export.c
44
static struct dentry *isofs_export_get_parent(struct dentry *child)
fs/isofs/export.c
52
struct dentry *rv = NULL;
fs/isofs/inode.c
1000
struct super_block *sb = dentry->d_sb;
fs/isofs/inode.c
175
isofs_hashi_common(const struct dentry *dentry, struct qstr *qstr, int ms)
fs/isofs/inode.c
189
hash = init_name_hash(dentry);
fs/isofs/inode.c
230
isofs_hashi(const struct dentry *dentry, struct qstr *qstr)
fs/isofs/inode.c
232
return isofs_hashi_common(dentry, qstr, 0);
fs/isofs/inode.c
236
isofs_dentry_cmpi(const struct dentry *dentry,
fs/isofs/inode.c
247
isofs_hash_common(const struct dentry *dentry, struct qstr *qstr, int ms)
fs/isofs/inode.c
259
qstr->hash = full_name_hash(dentry, name, len);
fs/isofs/inode.c
265
isofs_hash_ms(const struct dentry *dentry, struct qstr *qstr)
fs/isofs/inode.c
267
return isofs_hash_common(dentry, qstr, 1);
fs/isofs/inode.c
271
isofs_hashi_ms(const struct dentry *dentry, struct qstr *qstr)
fs/isofs/inode.c
273
return isofs_hashi_common(dentry, qstr, 1);
fs/isofs/inode.c
277
isofs_dentry_cmp_ms(const struct dentry *dentry,
fs/isofs/inode.c
284
isofs_dentry_cmpi_ms(const struct dentry *dentry,
fs/isofs/inode.c
39
static int isofs_hashi(const struct dentry *parent, struct qstr *qstr);
fs/isofs/inode.c
40
static int isofs_dentry_cmpi(const struct dentry *dentry,
fs/isofs/inode.c
44
static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr);
fs/isofs/inode.c
444
static int isofs_show_options(struct seq_file *m, struct dentry *root)
fs/isofs/inode.c
45
static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr);
fs/isofs/inode.c
46
static int isofs_dentry_cmpi_ms(const struct dentry *dentry,
fs/isofs/inode.c
48
static int isofs_dentry_cmp_ms(const struct dentry *dentry,
fs/isofs/inode.c
66
static int isofs_statfs (struct dentry *, struct kstatfs *);
fs/isofs/inode.c
67
static int isofs_show_options(struct seq_file *, struct dentry *);
fs/isofs/inode.c
998
static int isofs_statfs (struct dentry *dentry, struct kstatfs *buf)
fs/isofs/isofs.h
122
extern struct dentry *isofs_lookup(struct inode *, struct dentry *, unsigned int flags);
fs/isofs/namei.c
137
match = (isofs_cmp(dentry, dpnt, dlen) == 0);
fs/isofs/namei.c
153
struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/isofs/namei.c
165
found = isofs_find_entry(dir, dentry,
fs/isofs/namei.c
173
return d_splice_alias(inode, dentry);
fs/isofs/namei.c
19
isofs_cmp(struct dentry *dentry, const char *compare, int dlen)
fs/isofs/namei.c
24
if (likely(!dentry->d_op))
fs/isofs/namei.c
25
return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen);
fs/isofs/namei.c
26
return dentry->d_op->d_compare(NULL, dentry->d_name.len, dentry->d_name.name, &qstr);
fs/isofs/namei.c
36
isofs_find_entry(struct inode *dir, struct dentry *dentry,
fs/jffs2/acl.c
231
int jffs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/jffs2/acl.c
235
struct inode *inode = d_inode(dentry);
fs/jffs2/acl.h
31
int jffs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/jffs2/dir.c
166
struct dentry *dentry, umode_t mode, bool excl)
fs/jffs2/dir.c
205
ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name);
fs/jffs2/dir.c
218
d_instantiate_new(dentry, inode);
fs/jffs2/dir.c
230
static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry)
fs/jffs2/dir.c
234
struct jffs2_inode_info *dead_f = JFFS2_INODE_INFO(d_inode(dentry));
fs/jffs2/dir.c
238
ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name,
fs/jffs2/dir.c
239
dentry->d_name.len, dead_f, now);
fs/jffs2/dir.c
241
set_nlink(d_inode(dentry), dead_f->inocache->pino_nlink);
fs/jffs2/dir.c
250
static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry)
fs/jffs2/dir.c
271
ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now);
fs/jffs2/dir.c
277
d_instantiate(dentry, d_inode(old_dentry));
fs/jffs2/dir.c
288
struct dentry *dentry, const char *target)
fs/jffs2/dir.c
29
struct dentry *, umode_t, bool);
fs/jffs2/dir.c
30
static struct dentry *jffs2_lookup (struct inode *,struct dentry *,
fs/jffs2/dir.c
316
namelen = dentry->d_name.len;
fs/jffs2/dir.c
32
static int jffs2_link (struct dentry *,struct inode *,struct dentry *);
fs/jffs2/dir.c
33
static int jffs2_unlink (struct inode *,struct dentry *);
fs/jffs2/dir.c
35
struct dentry *, const char *);
fs/jffs2/dir.c
36
static struct dentry *jffs2_mkdir (struct mnt_idmap *, struct inode *,struct dentry *,
fs/jffs2/dir.c
38
static int jffs2_rmdir (struct inode *,struct dentry *);
fs/jffs2/dir.c
380
ret = jffs2_init_security(inode, dir_i, &dentry->d_name);
fs/jffs2/dir.c
39
static int jffs2_mknod (struct mnt_idmap *, struct inode *,struct dentry *,
fs/jffs2/dir.c
416
rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen));
fs/jffs2/dir.c
418
fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL);
fs/jffs2/dir.c
42
struct dentry *, struct inode *, struct dentry *,
fs/jffs2/dir.c
442
d_instantiate_new(dentry, inode);
fs/jffs2/dir.c
451
static struct dentry *jffs2_mkdir (struct mnt_idmap *idmap, struct inode *dir_i,
fs/jffs2/dir.c
452
struct dentry *dentry, umode_t mode)
fs/jffs2/dir.c
476
namelen = dentry->d_name.len;
fs/jffs2/dir.c
525
ret = jffs2_init_security(inode, dir_i, &dentry->d_name);
fs/jffs2/dir.c
561
rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen));
fs/jffs2/dir.c
563
fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL);
fs/jffs2/dir.c
588
d_instantiate_new(dentry, inode);
fs/jffs2/dir.c
596
static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry)
fs/jffs2/dir.c
600
struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(dentry));
fs/jffs2/dir.c
614
ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name,
fs/jffs2/dir.c
615
dentry->d_name.len, f, now);
fs/jffs2/dir.c
619
clear_nlink(d_inode(dentry));
fs/jffs2/dir.c
626
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/jffs2/dir.c
653
namelen = dentry->d_name.len;
fs/jffs2/dir.c
701
ret = jffs2_init_security(inode, dir_i, &dentry->d_name);
fs/jffs2/dir.c
740
rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen));
fs/jffs2/dir.c
742
fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL);
fs/jffs2/dir.c
766
d_instantiate_new(dentry, inode);
fs/jffs2/dir.c
775
struct inode *old_dir_i, struct dentry *old_dentry,
fs/jffs2/dir.c
776
struct inode *new_dir_i, struct dentry *new_dentry,
fs/jffs2/dir.c
80
static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
fs/jffs2/fs.c
193
int jffs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/jffs2/fs.c
196
struct inode *inode = d_inode(dentry);
fs/jffs2/fs.c
199
rc = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/jffs2/fs.c
205
rc = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode);
fs/jffs2/fs.c
210
int jffs2_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/jffs2/fs.c
212
struct jffs2_sb_info *c = JFFS2_SB_INFO(dentry->d_sb);
fs/jffs2/os-linux.h
167
int jffs2_setattr (struct mnt_idmap *, struct dentry *, struct iattr *);
fs/jffs2/os-linux.h
174
int jffs2_statfs (struct dentry *, struct kstatfs *);
fs/jffs2/security.c
52
struct dentry *unused, struct inode *inode,
fs/jffs2/security.c
61
struct dentry *unused, struct inode *inode,
fs/jffs2/super.c
122
static struct dentry *jffs2_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/jffs2/super.c
129
static struct dentry *jffs2_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/jffs2/super.c
136
static struct dentry *jffs2_get_parent(struct dentry *child)
fs/jffs2/super.c
85
static int jffs2_show_options(struct seq_file *s, struct dentry *root)
fs/jffs2/xattr.c
1005
prefix = jffs2_xattr_prefix(xd->xprefix, dentry);
fs/jffs2/xattr.c
931
static const char *jffs2_xattr_prefix(int xprefix, struct dentry *dentry)
fs/jffs2/xattr.c
959
if (!xattr_handler_can_list(ret, dentry))
fs/jffs2/xattr.c
965
ssize_t jffs2_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/jffs2/xattr.c
967
struct inode *inode = d_inode(dentry);
fs/jffs2/xattr.h
101
extern ssize_t jffs2_listxattr(struct dentry *, char *, size_t);
fs/jffs2/xattr_trusted.c
20
struct dentry *unused, struct inode *inode,
fs/jffs2/xattr_trusted.c
29
struct dentry *unused, struct inode *inode,
fs/jffs2/xattr_trusted.c
37
static bool jffs2_trusted_listxattr(struct dentry *dentry)
fs/jffs2/xattr_user.c
20
struct dentry *unused, struct inode *inode,
fs/jffs2/xattr_user.c
29
struct dentry *unused, struct inode *inode,
fs/jfs/acl.c
92
int jfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/jfs/acl.c
98
struct inode *inode = d_inode(dentry);
fs/jfs/file.c
130
rc = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode);
fs/jfs/file.c
92
int jfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/jfs/file.c
95
struct inode *inode = d_inode(dentry);
fs/jfs/file.c
98
rc = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/jfs/ioctl.c
60
int jfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/jfs/ioctl.c
62
struct jfs_inode_info *jfs_inode = JFS_IP(d_inode(dentry));
fs/jfs/ioctl.c
65
if (d_is_special(dentry))
fs/jfs/ioctl.c
74
struct dentry *dentry, struct file_kattr *fa)
fs/jfs/ioctl.c
76
struct inode *inode = d_inode(dentry);
fs/jfs/ioctl.c
80
if (d_is_special(dentry))
fs/jfs/jfs_acl.h
11
int jfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/jfs/jfs_inode.h
12
extern int jfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/jfs/jfs_inode.h
14
struct dentry *dentry, struct file_kattr *fa);
fs/jfs/jfs_inode.h
24
extern struct dentry *jfs_get_parent(struct dentry *dentry);
fs/jfs/jfs_inode.h
25
extern struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/jfs/jfs_inode.h
27
extern struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/jfs/jfs_inode.h
31
extern int jfs_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
fs/jfs/jfs_unicode.c
102
int get_UCSname(struct component_name * uniName, struct dentry *dentry)
fs/jfs/jfs_unicode.c
104
struct nls_table *nls_tab = JFS_SBI(dentry->d_sb)->nls_tab;
fs/jfs/jfs_unicode.c
105
int length = dentry->d_name.len;
fs/jfs/jfs_unicode.c
116
uniName->namlen = jfs_strtoUCS(uniName->name, dentry->d_name.name,
fs/jfs/jfs_unicode.h
14
extern int get_UCSname(struct component_name *, struct dentry *);
fs/jfs/jfs_xattr.h
47
extern ssize_t jfs_listxattr(struct dentry *, char *, size_t);
fs/jfs/namei.c
1052
d_instantiate_new(dentry, ip);
fs/jfs/namei.c
1070
struct dentry *old_dentry, struct inode *new_dir,
fs/jfs/namei.c
1071
struct dentry *new_dentry, unsigned int flags)
fs/jfs/namei.c
108
rc = jfs_init_security(tid, ip, dip, &dentry->d_name);
fs/jfs/namei.c
1359
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/jfs/namei.c
1371
jfs_info("jfs_mknod: %pd", dentry);
fs/jfs/namei.c
1377
if ((rc = get_UCSname(&dname, dentry)))
fs/jfs/namei.c
1396
rc = jfs_init_security(tid, ip, dir, &dentry->d_name);
fs/jfs/namei.c
1441
d_instantiate_new(dentry, ip);
fs/jfs/namei.c
1452
static struct dentry *jfs_lookup(struct inode *dip, struct dentry *dentry, unsigned int flags)
fs/jfs/namei.c
1460
jfs_info("jfs_lookup: name = %pd", dentry);
fs/jfs/namei.c
1462
if ((rc = get_UCSname(&key, dentry)))
fs/jfs/namei.c
1477
return d_splice_alias(ip, dentry);
fs/jfs/namei.c
1499
struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/jfs/namei.c
1506
struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/jfs/namei.c
1513
struct dentry *jfs_get_parent(struct dentry *dentry)
fs/jfs/namei.c
1518
le32_to_cpu(JFS_IP(d_inode(dentry))->i_dtroot.header.idotdot);
fs/jfs/namei.c
1520
return d_obtain_alias(jfs_iget(dentry->d_sb, parent_ino));
fs/jfs/namei.c
1554
static int jfs_ci_hash(const struct dentry *dir, struct qstr *this)
fs/jfs/namei.c
1567
static int jfs_ci_compare(const struct dentry *dentry,
fs/jfs/namei.c
1584
struct dentry *dentry, unsigned int flags)
fs/jfs/namei.c
1596
if (d_really_is_positive(dentry))
fs/jfs/namei.c
168
d_instantiate_new(dentry, ip);
fs/jfs/namei.c
196
static struct dentry *jfs_mkdir(struct mnt_idmap *idmap, struct inode *dip,
fs/jfs/namei.c
197
struct dentry *dentry, umode_t mode)
fs/jfs/namei.c
208
jfs_info("jfs_mkdir: dip:0x%p name:%pd", dip, dentry);
fs/jfs/namei.c
218
if ((rc = get_UCSname(&dname, dentry)))
fs/jfs/namei.c
241
rc = jfs_init_security(tid, ip, dip, &dentry->d_name);
fs/jfs/namei.c
302
d_instantiate_new(dentry, ip);
fs/jfs/namei.c
334
static int jfs_rmdir(struct inode *dip, struct dentry *dentry)
fs/jfs/namei.c
338
struct inode *ip = d_inode(dentry);
fs/jfs/namei.c
344
jfs_info("jfs_rmdir: dip:0x%p name:%pd", dip, dentry);
fs/jfs/namei.c
360
if ((rc = get_UCSname(&dname, dentry))) {
fs/jfs/namei.c
464
static int jfs_unlink(struct inode *dip, struct dentry *dentry)
fs/jfs/namei.c
468
struct inode *ip = d_inode(dentry);
fs/jfs/namei.c
476
jfs_info("jfs_unlink: dip:0x%p name:%pd", dip, dentry);
fs/jfs/namei.c
486
if ((rc = get_UCSname(&dname, dentry)))
fs/jfs/namei.c
64
struct dentry *dentry, umode_t mode, bool excl)
fs/jfs/namei.c
75
jfs_info("jfs_create: dip:0x%p name:%pd", dip, dentry);
fs/jfs/namei.c
787
static int jfs_link(struct dentry *old_dentry,
fs/jfs/namei.c
788
struct inode *dir, struct dentry *dentry)
fs/jfs/namei.c
798
jfs_info("jfs_link: %pd %pd", old_dentry, dentry);
fs/jfs/namei.c
817
if ((rc = get_UCSname(&dname, dentry)))
fs/jfs/namei.c
845
d_instantiate(dentry, ip);
fs/jfs/namei.c
85
if ((rc = get_UCSname(&dname, dentry)))
fs/jfs/namei.c
880
struct dentry *dentry, const char *name)
fs/jfs/namei.c
911
if ((rc = get_UCSname(&dname, dentry)))
fs/jfs/namei.c
929
rc = jfs_init_security(tid, ip, dip, &dentry->d_name);
fs/jfs/super.c
119
static int jfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/jfs/super.c
121
struct jfs_sb_info *sbi = JFS_SBI(dentry->d_sb);
fs/jfs/super.c
656
static int jfs_show_options(struct seq_file *seq, struct dentry *root)
fs/jfs/super.c
807
inode = d_inode(path->dentry);
fs/jfs/xattr.c
872
ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size)
fs/jfs/xattr.c
874
struct inode *inode = d_inode(dentry);
fs/jfs/xattr.c
951
struct dentry *unused, struct inode *inode,
fs/jfs/xattr.c
960
struct dentry *unused, struct inode *inode,
fs/jfs/xattr.c
969
struct dentry *unused, struct inode *inode,
fs/jfs/xattr.c
979
struct dentry *unused, struct inode *inode,
fs/kernfs/dir.c
1140
struct dentry *dentry, unsigned int flags)
fs/kernfs/dir.c
1149
if (d_really_is_negative(dentry)) {
fs/kernfs/dir.c
1166
root = kernfs_root_from_sb(dentry->d_sb);
fs/kernfs/dir.c
1168
parent = kernfs_dentry_node(dentry->d_parent);
fs/kernfs/dir.c
1170
if (kernfs_dir_changed(parent, dentry)) {
fs/kernfs/dir.c
1183
kn = kernfs_dentry_node(dentry);
fs/kernfs/dir.c
1193
if (kernfs_dentry_node(dentry->d_parent) != parent)
fs/kernfs/dir.c
1197
if (strcmp(dentry->d_name.name, kernfs_rcu_name(kn)) != 0)
fs/kernfs/dir.c
1202
kernfs_info(dentry->d_sb)->ns != kn->ns)
fs/kernfs/dir.c
1216
static struct dentry *kernfs_iop_lookup(struct inode *dir,
fs/kernfs/dir.c
1217
struct dentry *dentry,
fs/kernfs/dir.c
1231
kn = kernfs_find_ns(parent, dentry->d_name.name, ns);
fs/kernfs/dir.c
1252
kernfs_set_rev(parent, dentry);
fs/kernfs/dir.c
1256
return d_splice_alias(inode, dentry);
fs/kernfs/dir.c
1259
static struct dentry *kernfs_iop_mkdir(struct mnt_idmap *idmap,
fs/kernfs/dir.c
1260
struct inode *dir, struct dentry *dentry,
fs/kernfs/dir.c
1273
ret = scops->mkdir(parent, dentry->d_name.name, mode);
fs/kernfs/dir.c
1279
static int kernfs_iop_rmdir(struct inode *dir, struct dentry *dentry)
fs/kernfs/dir.c
1281
struct kernfs_node *kn = kernfs_dentry_node(dentry);
fs/kernfs/dir.c
1298
struct inode *old_dir, struct dentry *old_dentry,
fs/kernfs/dir.c
1299
struct inode *new_dir, struct dentry *new_dentry,
fs/kernfs/dir.c
1888
struct dentry *dentry = file->f_path.dentry;
fs/kernfs/dir.c
1889
struct kernfs_node *parent = kernfs_dentry_node(dentry);
fs/kernfs/dir.c
1901
ns = kernfs_info(dentry->d_sb)->ns;
fs/kernfs/dir.c
616
struct kernfs_node *kernfs_node_from_dentry(struct dentry *dentry)
fs/kernfs/dir.c
618
if (dentry->d_sb->s_op == &kernfs_sops)
fs/kernfs/dir.c
619
return kernfs_dentry_node(dentry);
fs/kernfs/file.c
870
struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry);
fs/kernfs/inode.c
111
int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/kernfs/inode.c
114
struct inode *inode = d_inode(dentry);
fs/kernfs/inode.c
124
error = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/kernfs/inode.c
140
ssize_t kernfs_iop_listxattr(struct dentry *dentry, char *buf, size_t size)
fs/kernfs/inode.c
142
struct kernfs_node *kn = kernfs_dentry_node(dentry);
fs/kernfs/inode.c
149
return simple_xattr_list(d_inode(dentry), &attrs->xattrs, buf, size);
fs/kernfs/inode.c
189
struct inode *inode = d_inode(path->dentry);
fs/kernfs/inode.c
326
struct dentry *unused, struct inode *inode,
fs/kernfs/inode.c
337
struct dentry *unused, struct inode *inode,
fs/kernfs/inode.c
412
struct dentry *unused, struct inode *inode,
fs/kernfs/kernfs-internal.h
139
static inline struct kernfs_node *kernfs_dentry_node(struct dentry *dentry)
fs/kernfs/kernfs-internal.h
141
if (d_really_is_negative(dentry))
fs/kernfs/kernfs-internal.h
143
return d_inode(dentry)->i_private;
fs/kernfs/kernfs-internal.h
147
struct dentry *dentry)
fs/kernfs/kernfs-internal.h
149
dentry->d_time = parent->dir.rev;
fs/kernfs/kernfs-internal.h
158
struct dentry *dentry)
fs/kernfs/kernfs-internal.h
160
if (parent->dir.rev != dentry->d_time)
fs/kernfs/kernfs-internal.h
175
int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/kernfs/kernfs-internal.h
180
ssize_t kernfs_iop_listxattr(struct dentry *dentry, char *buf, size_t size);
fs/kernfs/mount.c
146
static struct dentry *kernfs_fh_to_dentry(struct super_block *sb,
fs/kernfs/mount.c
153
static struct dentry *kernfs_fh_to_parent(struct super_block *sb,
fs/kernfs/mount.c
160
static struct dentry *kernfs_get_parent_dentry(struct dentry *child)
fs/kernfs/mount.c
222
struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
fs/kernfs/mount.c
225
struct dentry *dentry;
fs/kernfs/mount.c
231
dentry = dget(sb->s_root);
fs/kernfs/mount.c
235
return dentry;
fs/kernfs/mount.c
249
dput(dentry);
fs/kernfs/mount.c
254
struct dentry *dtmp;
fs/kernfs/mount.c
259
return dentry;
fs/kernfs/mount.c
264
dput(dentry);
fs/kernfs/mount.c
270
dput(dentry);
fs/kernfs/mount.c
273
dtmp = lookup_noperm_positive_unlocked(&QSTR(name), dentry);
fs/kernfs/mount.c
274
dput(dentry);
fs/kernfs/mount.c
279
dentry = dtmp;
fs/kernfs/mount.c
28
static int kernfs_sop_show_options(struct seq_file *sf, struct dentry *dentry)
fs/kernfs/mount.c
288
struct dentry *root;
fs/kernfs/mount.c
30
struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry));
fs/kernfs/mount.c
38
static int kernfs_sop_show_path(struct seq_file *sf, struct dentry *dentry)
fs/kernfs/mount.c
40
struct kernfs_node *node = kernfs_dentry_node(dentry);
fs/kernfs/mount.c
47
seq_dentry(sf, dentry, " \t\n\\");
fs/kernfs/mount.c
51
static int kernfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/kernfs/mount.c
53
simple_statfs(dentry, buf);
fs/kernfs/mount.c
54
buf->f_fsid = uuid_to_fsid(dentry->d_sb->s_uuid.b);
fs/kernfs/mount.c
97
static struct dentry *__kernfs_fh_to_dentry(struct super_block *sb,
fs/kernfs/symlink.c
128
static const char *kernfs_iop_get_link(struct dentry *dentry,
fs/kernfs/symlink.c
135
if (!dentry)
fs/libfs.c
1041
struct dentry *dentry;
fs/libfs.c
1076
dentry = d_alloc_name(s->s_root, files->name);
fs/libfs.c
1077
if (!dentry)
fs/libfs.c
1081
dput(dentry);
fs/libfs.c
1088
d_make_persistent(dentry, inode);
fs/libfs.c
1089
dput(dentry);
fs/libfs.c
109
static struct dentry *scan_positives(struct dentry *cursor,
fs/libfs.c
112
struct dentry *last)
fs/libfs.c
114
struct dentry *dentry = cursor->d_parent, *found = NULL;
fs/libfs.c
116
spin_lock(&dentry->d_lock);
fs/libfs.c
118
struct dentry *d = hlist_entry(*p, struct dentry, d_sib);
fs/libfs.c
137
spin_unlock(&dentry->d_lock);
fs/libfs.c
139
spin_lock(&dentry->d_lock);
fs/libfs.c
142
spin_unlock(&dentry->d_lock);
fs/libfs.c
1488
struct dentry *generic_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/libfs.c
149
struct dentry *dentry = file->f_path.dentry;
fs/libfs.c
1521
struct dentry *generic_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/libfs.c
162
struct dentry *cursor = file->private_data;
fs/libfs.c
163
struct dentry *to = NULL;
fs/libfs.c
165
inode_lock_shared(dentry->d_inode);
fs/libfs.c
168
to = scan_positives(cursor, &dentry->d_children.first,
fs/libfs.c
170
spin_lock(&dentry->d_lock);
fs/libfs.c
1716
const char *simple_get_link(struct dentry *dentry, struct inode *inode,
fs/libfs.c
1731
static struct dentry *empty_dir_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/libfs.c
1737
struct dentry *dentry, struct iattr *attr)
fs/libfs.c
174
spin_unlock(&dentry->d_lock);
fs/libfs.c
1742
static ssize_t empty_dir_listxattr(struct dentry *dentry, char *list, size_t size)
fs/libfs.c
179
inode_unlock_shared(dentry->d_inode);
fs/libfs.c
1805
int generic_ci_d_compare(const struct dentry *dentry, unsigned int len,
fs/libfs.c
1808
const struct dentry *parent;
fs/libfs.c
1825
parent = READ_ONCE(dentry->d_parent);
fs/libfs.c
1841
if (qstr.name == dentry->d_shortname.string) {
fs/libfs.c
1842
strbuf = dentry->d_shortname; // NUL is guaranteed to be in there
fs/libfs.c
1848
return utf8_strncasecmp(dentry->d_sb->s_encoding, name, &qstr);
fs/libfs.c
1859
int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str)
fs/libfs.c
1861
const struct inode *dir = READ_ONCE(dentry->d_inode);
fs/libfs.c
1862
struct super_block *sb = dentry->d_sb;
fs/libfs.c
1869
ret = utf8_casefold_hash(um, dentry, str);
fs/libfs.c
193
struct dentry *dentry = file->f_path.dentry;
fs/libfs.c
194
struct dentry *cursor = file->private_data;
fs/libfs.c
195
struct dentry *next = NULL;
fs/libfs.c
202
p = &dentry->d_children.first;
fs/libfs.c
214
spin_lock(&dentry->d_lock);
fs/libfs.c
2141
struct dentry *stashed_dentry_get(struct dentry **stashed)
fs/libfs.c
2143
struct dentry *dentry;
fs/libfs.c
2146
dentry = rcu_dereference(*stashed);
fs/libfs.c
2147
if (!dentry)
fs/libfs.c
2149
if (IS_ERR(dentry))
fs/libfs.c
2150
return dentry;
fs/libfs.c
2151
if (!lockref_get_not_dead(&dentry->d_lockref))
fs/libfs.c
2153
return dentry;
fs/libfs.c
2156
static struct dentry *prepare_anon_dentry(struct dentry **stashed,
fs/libfs.c
2160
struct dentry *dentry;
fs/libfs.c
218
spin_unlock(&dentry->d_lock);
fs/libfs.c
2184
dentry = d_alloc_anon(sb);
fs/libfs.c
2185
if (!dentry) {
fs/libfs.c
2191
dentry->d_fsdata = stashed;
fs/libfs.c
2194
d_instantiate(dentry, inode);
fs/libfs.c
2195
return dentry;
fs/libfs.c
2198
struct dentry *stash_dentry(struct dentry **stashed, struct dentry *dentry)
fs/libfs.c
2202
struct dentry *old;
fs/libfs.c
2205
old = cmpxchg(stashed, NULL, dentry);
fs/libfs.c
2207
return dentry;
fs/libfs.c
2214
if (likely(try_cmpxchg(stashed, &old, dentry)))
fs/libfs.c
2215
return dentry;
fs/libfs.c
2236
int path_from_stashed(struct dentry **stashed, struct vfsmount *mnt, void *data,
fs/libfs.c
2239
struct dentry *dentry, *res;
fs/libfs.c
2252
dentry = prepare_anon_dentry(stashed, mnt->mnt_sb, data);
fs/libfs.c
2253
if (IS_ERR(dentry))
fs/libfs.c
2254
return PTR_ERR(dentry);
fs/libfs.c
2258
res = sops->stash_dentry(stashed, dentry);
fs/libfs.c
2260
res = stash_dentry(stashed, dentry);
fs/libfs.c
2262
dput(dentry);
fs/libfs.c
2265
if (res != dentry)
fs/libfs.c
2266
dput(dentry);
fs/libfs.c
2269
path->dentry = res;
fs/libfs.c
2271
VFS_WARN_ON_ONCE(path->dentry->d_fsdata != stashed);
fs/libfs.c
2272
VFS_WARN_ON_ONCE(d_inode(path->dentry)->i_private != data);
fs/libfs.c
2276
void stashed_dentry_prune(struct dentry *dentry)
fs/libfs.c
2278
struct dentry **stashed = dentry->d_fsdata;
fs/libfs.c
2279
struct inode *inode = d_inode(dentry);
fs/libfs.c
2292
cmpxchg(stashed, dentry, NULL);
fs/libfs.c
2306
struct dentry *simple_start_creating(struct dentry *parent, const char *name)
fs/libfs.c
2319
void simple_done_creating(struct dentry *child)
fs/libfs.c
258
static void offset_set(struct dentry *dentry, long offset)
fs/libfs.c
260
dentry->d_fsdata = (void *)offset;
fs/libfs.c
263
static long dentry2offset(struct dentry *dentry)
fs/libfs.c
265
return (long)dentry->d_fsdata;
fs/libfs.c
290
int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry)
fs/libfs.c
295
if (dentry2offset(dentry) != 0)
fs/libfs.c
298
ret = mtree_alloc_cyclic(&octx->mt, &offset, dentry, DIR_OFFSET_MIN,
fs/libfs.c
304
offset_set(dentry, offset);
fs/libfs.c
308
static int simple_offset_replace(struct offset_ctx *octx, struct dentry *dentry,
fs/libfs.c
313
ret = mtree_store(&octx->mt, offset, dentry, GFP_KERNEL);
fs/libfs.c
316
offset_set(dentry, offset);
fs/libfs.c
326
void simple_offset_remove(struct offset_ctx *octx, struct dentry *dentry)
fs/libfs.c
330
offset = dentry2offset(dentry);
fs/libfs.c
335
offset_set(dentry, 0);
fs/libfs.c
353
void simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/libfs.c
354
struct inode *new_dir, struct dentry *new_dentry)
fs/libfs.c
37
struct inode *inode = d_inode(path->dentry);
fs/libfs.c
382
struct dentry *old_dentry,
fs/libfs.c
384
struct dentry *new_dentry)
fs/libfs.c
44
int simple_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/libfs.c
451
static struct dentry *find_positive_dentry(struct dentry *parent,
fs/libfs.c
452
struct dentry *dentry,
fs/libfs.c
455
struct dentry *found = NULL;
fs/libfs.c
459
dentry = d_next_sibling(dentry);
fs/libfs.c
46
u64 id = huge_encode_dev(dentry->d_sb->s_dev);
fs/libfs.c
460
else if (!dentry)
fs/libfs.c
461
dentry = d_first_child(parent);
fs/libfs.c
462
hlist_for_each_entry_from(dentry, d_sib) {
fs/libfs.c
463
if (!simple_positive(dentry))
fs/libfs.c
465
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
fs/libfs.c
466
if (simple_positive(dentry))
fs/libfs.c
467
found = dget_dlock(dentry);
fs/libfs.c
468
spin_unlock(&dentry->d_lock);
fs/libfs.c
476
static noinline_for_stack struct dentry *
fs/libfs.c
477
offset_dir_lookup(struct dentry *parent, loff_t offset)
fs/libfs.c
481
struct dentry *child, *found = NULL;
fs/libfs.c
49
buf->f_type = dentry->d_sb->s_magic;
fs/libfs.c
496
static bool offset_dir_emit(struct dir_context *ctx, struct dentry *dentry)
fs/libfs.c
498
struct inode *inode = d_inode(dentry);
fs/libfs.c
500
return dir_emit(ctx, dentry->d_name.name, dentry->d_name.len,
fs/libfs.c
506
struct dentry *dir = file->f_path.dentry;
fs/libfs.c
507
struct dentry *dentry;
fs/libfs.c
509
dentry = offset_dir_lookup(dir, ctx->pos);
fs/libfs.c
510
if (!dentry)
fs/libfs.c
513
struct dentry *next;
fs/libfs.c
515
ctx->pos = dentry2offset(dentry);
fs/libfs.c
516
if (!offset_dir_emit(ctx, dentry))
fs/libfs.c
519
next = find_positive_dentry(dir, dentry, true);
fs/libfs.c
520
dput(dentry);
fs/libfs.c
524
dentry = next;
fs/libfs.c
526
dput(dentry);
fs/libfs.c
558
struct dentry *dir = file->f_path.dentry;
fs/libfs.c
577
struct dentry *find_next_child(struct dentry *parent, struct dentry *prev)
fs/libfs.c
579
struct dentry *child = NULL, *d;
fs/libfs.c
599
static void __simple_recursive_removal(struct dentry *dentry,
fs/libfs.c
60
int always_delete_dentry(const struct dentry *dentry)
fs/libfs.c
600
void (*callback)(struct dentry *),
fs/libfs.c
603
struct dentry *this = dget(dentry);
fs/libfs.c
605
struct dentry *victim = NULL, *child;
fs/libfs.c
620
if (!locked || victim != dentry)
fs/libfs.c
629
if (victim == dentry) {
fs/libfs.c
632
if (d_is_dir(dentry))
fs/libfs.c
636
dput(dentry);
fs/libfs.c
645
void simple_recursive_removal(struct dentry *dentry,
fs/libfs.c
646
void (*callback)(struct dentry *))
fs/libfs.c
648
return __simple_recursive_removal(dentry, callback, false);
fs/libfs.c
652
void simple_remove_by_name(struct dentry *parent, const char *name,
fs/libfs.c
653
void (*callback)(struct dentry *))
fs/libfs.c
655
struct dentry *dentry;
fs/libfs.c
657
dentry = lookup_noperm_positive_unlocked(&QSTR(name), parent);
fs/libfs.c
658
if (!IS_ERR(dentry)) {
fs/libfs.c
659
simple_recursive_removal(dentry, callback);
fs/libfs.c
660
dput(dentry); // paired with lookup_noperm_positive_unlocked()
fs/libfs.c
666
void locked_recursive_removal(struct dentry *dentry,
fs/libfs.c
667
void (*callback)(struct dentry *))
fs/libfs.c
669
return __simple_recursive_removal(dentry, callback, true);
fs/libfs.c
70
struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/libfs.c
72
if (dentry->d_name.len > NAME_MAX)
fs/libfs.c
74
if (!dentry->d_op && !(dentry->d_flags & DCACHE_DONTCACHE)) {
fs/libfs.c
75
spin_lock(&dentry->d_lock);
fs/libfs.c
754
int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
fs/libfs.c
76
dentry->d_flags |= DCACHE_DONTCACHE;
fs/libfs.c
762
d_make_persistent(dentry, inode);
fs/libfs.c
767
int simple_empty(struct dentry *dentry)
fs/libfs.c
769
struct dentry *child;
fs/libfs.c
77
spin_unlock(&dentry->d_lock);
fs/libfs.c
772
spin_lock(&dentry->d_lock);
fs/libfs.c
773
hlist_for_each_entry(child, &dentry->d_children, d_sib) {
fs/libfs.c
783
spin_unlock(&dentry->d_lock);
fs/libfs.c
788
void __simple_unlink(struct inode *dir, struct dentry *dentry)
fs/libfs.c
790
struct inode *inode = d_inode(dentry);
fs/libfs.c
798
void __simple_rmdir(struct inode *dir, struct dentry *dentry)
fs/libfs.c
800
drop_nlink(d_inode(dentry));
fs/libfs.c
801
__simple_unlink(dir, dentry);
fs/libfs.c
806
int simple_unlink(struct inode *dir, struct dentry *dentry)
fs/libfs.c
808
__simple_unlink(dir, dentry);
fs/libfs.c
809
d_make_discardable(dentry);
fs/libfs.c
814
int simple_rmdir(struct inode *dir, struct dentry *dentry)
fs/libfs.c
816
if (!simple_empty(dentry))
fs/libfs.c
819
__simple_rmdir(dir, dentry);
fs/libfs.c
82
d_add(dentry, NULL);
fs/libfs.c
820
d_make_discardable(dentry);
fs/libfs.c
836
void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry,
fs/libfs.c
837
struct inode *new_dir, struct dentry *new_dentry)
fs/libfs.c
851
int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
fs/libfs.c
852
struct inode *new_dir, struct dentry *new_dentry)
fs/libfs.c
872
struct dentry *old_dentry, struct inode *new_dir,
fs/libfs.c
873
struct dentry *new_dentry, unsigned int flags)
fs/libfs.c
89
file->private_data = d_alloc_cursor(file->f_path.dentry);
fs/libfs.c
917
int simple_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/libfs.c
920
struct inode *inode = d_inode(dentry);
fs/libfs.c
923
error = setattr_prepare(idmap, dentry, iattr);
fs/minix/dir.c
154
minix_dirent *minix_find_entry(struct dentry *dentry, struct folio **foliop)
fs/minix/dir.c
156
const char * name = dentry->d_name.name;
fs/minix/dir.c
157
int namelen = dentry->d_name.len;
fs/minix/dir.c
158
struct inode * dir = d_inode(dentry->d_parent);
fs/minix/dir.c
199
int minix_add_link(struct dentry *dentry, struct inode *inode)
fs/minix/dir.c
201
struct inode *dir = d_inode(dentry->d_parent);
fs/minix/dir.c
202
const char * name = dentry->d_name.name;
fs/minix/dir.c
203
int namelen = dentry->d_name.len;
fs/minix/dir.c
441
ino_t minix_inode_by_name(struct dentry *dentry)
fs/minix/dir.c
444
struct minix_dir_entry *de = minix_find_entry(dentry, &folio);
fs/minix/file.c
26
struct dentry *dentry, struct iattr *attr)
fs/minix/file.c
28
struct inode *inode = d_inode(dentry);
fs/minix/file.c
31
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/minix/inode.c
27
static int minix_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/minix/inode.c
416
static int minix_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/minix/inode.c
418
struct super_block *sb = dentry->d_sb;
fs/minix/inode.c
707
struct super_block *sb = path->dentry->d_sb;
fs/minix/inode.c
708
struct inode *inode = d_inode(path->dentry);
fs/minix/minix.h
70
struct minix_dir_entry *minix_find_entry(struct dentry *, struct folio **);
fs/minix/minix.h
71
int minix_add_link(struct dentry*, struct inode*);
fs/minix/minix.h
78
ino_t minix_inode_by_name(struct dentry*);
fs/minix/namei.c
10
static int add_nondir(struct dentry *dentry, struct inode *inode)
fs/minix/namei.c
104
return add_nondir(dentry, inode);
fs/minix/namei.c
107
static struct dentry *minix_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/minix/namei.c
108
struct dentry *dentry, umode_t mode)
fs/minix/namei.c
12
int err = minix_add_link(dentry, inode);
fs/minix/namei.c
125
err = minix_add_link(dentry, inode);
fs/minix/namei.c
129
d_instantiate(dentry, inode);
fs/minix/namei.c
14
d_instantiate(dentry, inode);
fs/minix/namei.c
141
static int minix_unlink(struct inode * dir, struct dentry *dentry)
fs/minix/namei.c
143
struct inode * inode = d_inode(dentry);
fs/minix/namei.c
153
de = minix_find_entry(dentry, &folio);
fs/minix/namei.c
166
static int minix_rmdir(struct inode * dir, struct dentry *dentry)
fs/minix/namei.c
168
struct inode * inode = d_inode(dentry);
fs/minix/namei.c
180
err = minix_unlink(dir, dentry);
fs/minix/namei.c
191
struct inode *old_dir, struct dentry *old_dentry,
fs/minix/namei.c
192
struct inode *new_dir, struct dentry *new_dentry,
fs/minix/namei.c
22
static struct dentry *minix_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags)
fs/minix/namei.c
27
if (dentry->d_name.len > minix_sb(dir->i_sb)->s_namelen)
fs/minix/namei.c
30
ino = minix_inode_by_name(dentry);
fs/minix/namei.c
33
return d_splice_alias(inode, dentry);
fs/minix/namei.c
37
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/minix/namei.c
50
return add_nondir(dentry, inode);
fs/minix/namei.c
67
struct dentry *dentry, umode_t mode, bool excl)
fs/minix/namei.c
69
return minix_mknod(&nop_mnt_idmap, dir, dentry, mode, 0);
fs/minix/namei.c
73
struct dentry *dentry, const char *symname)
fs/minix/namei.c
93
return add_nondir(dentry, inode);
fs/minix/namei.c
96
static int minix_link(struct dentry * old_dentry, struct inode * dir,
fs/minix/namei.c
97
struct dentry *dentry)
fs/mount.h
130
extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *);
fs/mount.h
136
struct mount *m = __lookup_mnt(path->mnt, path->dentry);
fs/mount.h
140
extern void __detach_mounts(struct dentry *dentry);
fs/mount.h
142
static inline void detach_mounts(struct dentry *dentry)
fs/mount.h
144
if (!d_mountpoint(dentry))
fs/mount.h
146
__detach_mounts(dentry);
fs/mount.h
169
extern bool __is_local_mountpoint(const struct dentry *dentry);
fs/mount.h
170
static inline bool is_local_mountpoint(const struct dentry *dentry)
fs/mount.h
172
if (!d_mountpoint(dentry))
fs/mount.h
175
return __is_local_mountpoint(dentry);
fs/mount.h
212
bool has_locked_children(struct mount *mnt, struct dentry *dentry);
fs/mount.h
266
struct mnt_namespace *mnt_ns_from_dentry(struct dentry *dentry);
fs/mount.h
41
struct dentry *m_dentry;
fs/mount.h
48
struct dentry *mnt_mountpoint;
fs/namei.c
1000
if (unlikely(!lockref_get_not_dead(&dentry->d_lockref)))
fs/namei.c
1002
if (read_seqcount_retry(&dentry->d_seq, nd->next_seq))
fs/namei.c
1016
nd->path.dentry = NULL;
fs/namei.c
1022
dput(dentry);
fs/namei.c
1027
struct dentry *dentry, unsigned int flags)
fs/namei.c
1029
if (unlikely(dentry->d_flags & DCACHE_OP_REVALIDATE))
fs/namei.c
1030
return dentry->d_op->d_revalidate(dir, name, dentry, flags);
fs/namei.c
1047
struct dentry *dentry = nd->path.dentry;
fs/namei.c
1087
if (likely(!(dentry->d_flags & DCACHE_OP_WEAK_REVALIDATE)))
fs/namei.c
1090
status = dentry->d_op->d_weak_revalidate(dentry, nd->flags);
fs/namei.c
1118
nd->root_seq = __read_seqcount_begin(&nd->root.dentry->d_seq);
fs/namei.c
1142
struct dentry *d;
fs/namei.c
1144
d = nd->path.dentry;
fs/namei.c
1153
nd->inode = nd->path.dentry->d_inode;
fs/namei.c
1182
nd->inode = nd->path.dentry->d_inode;
fs/namei.c
1294
audit_inode(nd->name, nd->stack[0].link.dentry, 0);
fs/namei.c
1357
struct inode *inode = link->dentry->d_inode;
fs/namei.c
1464
struct dentry *mountpoint;
fs/namei.c
1475
dput(path->dentry);
fs/namei.c
1476
path->dentry = mountpoint;
fs/namei.c
1487
struct dentry *mountpoint = m->mnt_mountpoint;
fs/namei.c
1490
if (unlikely(root->dentry == mountpoint &&
fs/namei.c
1495
path->dentry = mountpoint;
fs/namei.c
1535
struct dentry *dentry = path->dentry;
fs/namei.c
1550
dentry->d_inode)
fs/namei.c
1560
return finish_automount(dentry->d_op->d_automount(path), path);
fs/namei.c
1584
ret = path->dentry->d_op->d_manage(path, false);
fs/namei.c
1585
flags = smp_load_acquire(&path->dentry->d_flags);
fs/namei.c
1593
dput(path->dentry);
fs/namei.c
1597
path->dentry = dget(mounted->mnt_root);
fs/namei.c
1599
flags = path->dentry->d_flags;
fs/namei.c
1614
flags = smp_load_acquire(&path->dentry->d_flags);
fs/namei.c
1633
unsigned flags = smp_load_acquire(&path->dentry->d_flags);
fs/namei.c
1651
dput(path->dentry);
fs/namei.c
1654
path->dentry = dget(mounted->mnt_root);
fs/namei.c
1684
struct dentry *dentry = path->dentry;
fs/namei.c
1685
unsigned int flags = dentry->d_flags;
fs/namei.c
1696
int res = dentry->d_op->d_manage(path, true);
fs/namei.c
1699
flags = dentry->d_flags;
fs/namei.c
1703
struct mount *mounted = __lookup_mnt(path->mnt, dentry);
fs/namei.c
1706
dentry = path->dentry = mounted->mnt.mnt_root;
fs/namei.c
1708
nd->next_seq = read_seqcount_begin(&dentry->d_seq);
fs/namei.c
1709
flags = dentry->d_flags;
fs/namei.c
1723
static inline int handle_mounts(struct nameidata *nd, struct dentry *dentry,
fs/namei.c
1730
path->dentry = dentry;
fs/namei.c
1733
if (likely(!d_managed(dentry)))
fs/namei.c
1739
path->dentry = dentry;
fs/namei.c
1741
if (unlikely(!try_to_unlazy_next(nd, dentry)))
fs/namei.c
1748
dput(path->dentry);
fs/namei.c
1759
static struct dentry *lookup_dcache(const struct qstr *name,
fs/namei.c
1760
struct dentry *dir,
fs/namei.c
1763
struct dentry *dentry = d_lookup(dir, name);
fs/namei.c
1764
if (dentry) {
fs/namei.c
1765
int error = d_revalidate(dir->d_inode, name, dentry, flags);
fs/namei.c
1768
d_invalidate(dentry);
fs/namei.c
1769
dput(dentry);
fs/namei.c
1773
return dentry;
fs/namei.c
1785
struct dentry *lookup_one_qstr_excl(const struct qstr *name,
fs/namei.c
1786
struct dentry *base, unsigned int flags)
fs/namei.c
1788
struct dentry *dentry;
fs/namei.c
1789
struct dentry *old;
fs/namei.c
1792
dentry = lookup_dcache(name, base, flags);
fs/namei.c
1793
if (dentry)
fs/namei.c
1801
dentry = d_alloc(base, name);
fs/namei.c
1802
if (unlikely(!dentry))
fs/namei.c
1805
old = dir->i_op->lookup(dir, dentry, flags);
fs/namei.c
1807
dput(dentry);
fs/namei.c
1808
dentry = old;
fs/namei.c
1811
if (IS_ERR(dentry))
fs/namei.c
1812
return dentry;
fs/namei.c
1813
if (d_is_negative(dentry) && !(flags & LOOKUP_CREATE)) {
fs/namei.c
1814
dput(dentry);
fs/namei.c
1817
if (d_is_positive(dentry) && (flags & LOOKUP_EXCL)) {
fs/namei.c
1818
dput(dentry);
fs/namei.c
1821
return dentry;
fs/namei.c
1839
static struct dentry *lookup_fast(struct nameidata *nd)
fs/namei.c
1841
struct dentry *dentry, *parent = nd->path.dentry;
fs/namei.c
1850
dentry = __d_lookup_rcu(parent, &nd->last, &nd->next_seq);
fs/namei.c
1851
if (unlikely(!dentry)) {
fs/namei.c
1864
status = d_revalidate(nd->inode, &nd->last, dentry, nd->flags);
fs/namei.c
1866
return dentry;
fs/namei.c
1867
if (!try_to_unlazy_next(nd, dentry))
fs/namei.c
1872
dentry, nd->flags);
fs/namei.c
1874
dentry = __d_lookup(parent, &nd->last);
fs/namei.c
1875
if (unlikely(!dentry))
fs/namei.c
1877
status = d_revalidate(nd->inode, &nd->last, dentry, nd->flags);
fs/namei.c
1881
d_invalidate(dentry);
fs/namei.c
1882
dput(dentry);
fs/namei.c
1885
return dentry;
fs/namei.c
1889
static struct dentry *__lookup_slow(const struct qstr *name,
fs/namei.c
1890
struct dentry *dir,
fs/namei.c
1893
struct dentry *dentry, *old;
fs/namei.c
1901
dentry = d_alloc_parallel(dir, name, &wq);
fs/namei.c
1902
if (IS_ERR(dentry))
fs/namei.c
1903
return dentry;
fs/namei.c
1904
if (unlikely(!d_in_lookup(dentry))) {
fs/namei.c
1905
int error = d_revalidate(inode, name, dentry, flags);
fs/namei.c
1908
d_invalidate(dentry);
fs/namei.c
1909
dput(dentry);
fs/namei.c
1912
dput(dentry);
fs/namei.c
1913
dentry = ERR_PTR(error);
fs/namei.c
1916
old = inode->i_op->lookup(inode, dentry, flags);
fs/namei.c
1917
d_lookup_done(dentry);
fs/namei.c
1919
dput(dentry);
fs/namei.c
1920
dentry = old;
fs/namei.c
1923
return dentry;
fs/namei.c
1926
static noinline struct dentry *lookup_slow(const struct qstr *name,
fs/namei.c
1927
struct dentry *dir,
fs/namei.c
1931
struct dentry *res;
fs/namei.c
1938
static struct dentry *lookup_slow_killable(const struct qstr *name,
fs/namei.c
1939
struct dentry *dir,
fs/namei.c
1943
struct dentry *res;
fs/namei.c
2013
if (read_seqcount_retry(&link->dentry->d_seq, nd->next_seq))
fs/namei.c
2050
error = security_inode_follow_link(link->dentry, inode,
fs/namei.c
2057
const char * (*get)(struct dentry *, struct inode *,
fs/namei.c
2063
res = get(link->dentry, inode, &last->done);
fs/namei.c
2065
res = get(link->dentry, inode, &last->done);
fs/namei.c
2095
struct dentry *dentry)
fs/namei.c
2101
err = handle_mounts(nd, dentry, &path);
fs/namei.c
2104
inode = path.dentry->d_inode;
fs/namei.c
2105
if (likely(!d_is_symlink(path.dentry)) ||
fs/namei.c
2110
if (read_seqcount_retry(&path.dentry->d_seq, nd->next_seq))
fs/namei.c
2115
dput(nd->path.dentry);
fs/namei.c
2128
struct dentry *dentry)
fs/namei.c
2137
!d_managed(dentry) && !d_is_symlink(dentry))) {
fs/namei.c
2138
struct inode *inode = dentry->d_inode;
fs/namei.c
2139
if (read_seqcount_retry(&dentry->d_seq, nd->next_seq))
fs/namei.c
2143
nd->path.dentry = dentry;
fs/namei.c
2149
return step_into_slowpath(nd, flags, dentry);
fs/namei.c
2152
static struct dentry *follow_dotdot_rcu(struct nameidata *nd)
fs/namei.c
2154
struct dentry *parent, *old;
fs/namei.c
2158
if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) {
fs/namei.c
2167
nd->inode = path.dentry->d_inode;
fs/namei.c
2174
old = nd->path.dentry;
fs/namei.c
2189
return nd->path.dentry;
fs/namei.c
2192
static struct dentry *follow_dotdot(struct nameidata *nd)
fs/namei.c
2194
struct dentry *parent;
fs/namei.c
2198
if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) {
fs/namei.c
2206
nd->inode = path.dentry->d_inode;
fs/namei.c
2211
parent = dget_parent(nd->path.dentry);
fs/namei.c
2221
return dget(nd->path.dentry);
fs/namei.c
2228
struct dentry *parent;
fs/namei.c
2264
struct dentry *dentry;
fs/namei.c
2275
dentry = lookup_fast(nd);
fs/namei.c
2276
if (IS_ERR(dentry))
fs/namei.c
2277
return ERR_CAST(dentry);
fs/namei.c
2278
if (unlikely(!dentry)) {
fs/namei.c
2279
dentry = lookup_slow(&nd->last, nd->path.dentry, nd->flags);
fs/namei.c
2280
if (IS_ERR(dentry))
fs/namei.c
2281
return ERR_CAST(dentry);
fs/namei.c
2285
return step_into(nd, flags, dentry);
fs/namei.c
2453
unsigned long a, b, x, y = (unsigned long)nd->path.dentry;
fs/namei.c
2540
unsigned long hash = init_name_hash(nd->path.dentry);
fs/namei.c
2622
struct dentry *parent = nd->path.dentry;
fs/namei.c
2663
if (unlikely(!d_can_lookup(nd->path.dentry))) {
fs/namei.c
2698
struct dentry *root = nd->root.dentry;
fs/namei.c
2705
nd->seq = read_seqcount_begin(&nd->path.dentry->d_seq);
fs/namei.c
2732
nd->inode = nd->path.dentry->d_inode;
fs/namei.c
2733
nd->seq = __read_seqcount_begin(&nd->path.dentry->d_seq);
fs/namei.c
2737
nd->inode = nd->path.dentry->d_inode;
fs/namei.c
2742
struct dentry *dentry;
fs/namei.c
2753
dentry = fd_file(f)->f_path.dentry;
fs/namei.c
2755
if (*s && unlikely(!d_can_lookup(dentry)))
fs/namei.c
2760
nd->inode = nd->path.dentry->d_inode;
fs/namei.c
2761
nd->seq = read_seqcount_begin(&nd->path.dentry->d_seq);
fs/namei.c
2764
nd->inode = nd->path.dentry->d_inode;
fs/namei.c
2792
dget(nd->path.dentry);
fs/namei.c
2794
return PTR_ERR(step_into(nd, WALK_NOFOLLOW, nd->path.dentry));
fs/namei.c
2820
if (!d_can_lookup(nd->path.dentry))
fs/namei.c
2825
nd->path.dentry = NULL;
fs/namei.c
2846
audit_inode(name, path->dentry,
fs/namei.c
2863
nd->path.dentry = NULL;
fs/namei.c
2889
audit_inode(name, parent->dentry, AUDIT_INODE_PARENT);
fs/namei.c
2916
static struct dentry *__start_dirop(struct dentry *parent, struct qstr *name,
fs/namei.c
2920
struct dentry *dentry;
fs/namei.c
2931
dentry = lookup_one_qstr_excl(name, parent, lookup_flags);
fs/namei.c
2932
if (IS_ERR(dentry))
fs/namei.c
2934
return dentry;
fs/namei.c
2937
struct dentry *start_dirop(struct dentry *parent, struct qstr *name,
fs/namei.c
2950
void end_dirop(struct dentry *de)
fs/namei.c
2960
static struct dentry *__start_removing_path(int dfd, struct filename *name,
fs/namei.c
2964
struct dentry *d;
fs/namei.c
2975
d = start_dirop(parent_path.dentry, &last, 0);
fs/namei.c
2980
path->dentry = no_free_ptr(parent_path.dentry);
fs/namei.c
3006
struct dentry *kern_path_parent(const char *name, struct path *path)
fs/namei.c
3010
struct dentry *d;
fs/namei.c
3020
d = lookup_noperm_unlocked(&last, parent_path.dentry);
fs/namei.c
3023
path->dentry = no_free_ptr(parent_path.dentry);
fs/namei.c
3028
struct dentry *start_removing_path(const char *name, struct path *path)
fs/namei.c
3034
struct dentry *start_removing_user_path_at(int dfd,
fs/namei.c
3076
int vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt,
fs/namei.c
3081
struct path root = {.mnt = mnt, .dentry = dentry};
fs/namei.c
3088
int lookup_noperm_common(struct qstr *qname, struct dentry *base)
fs/namei.c
3118
struct qstr *qname, struct dentry *base)
fs/namei.c
3142
struct dentry *try_lookup_noperm(struct qstr *name, struct dentry *base)
fs/namei.c
3164
struct dentry *lookup_noperm(struct qstr *name, struct dentry *base)
fs/namei.c
3166
struct dentry *dentry;
fs/namei.c
3175
dentry = lookup_dcache(name, base, 0);
fs/namei.c
3176
return dentry ? dentry : __lookup_slow(name, base, 0);
fs/namei.c
3190
struct dentry *lookup_one(struct mnt_idmap *idmap, struct qstr *name,
fs/namei.c
3191
struct dentry *base)
fs/namei.c
3193
struct dentry *dentry;
fs/namei.c
3202
dentry = lookup_dcache(name, base, 0);
fs/namei.c
3203
return dentry ? dentry : __lookup_slow(name, base, 0);
fs/namei.c
3218
struct dentry *lookup_one_unlocked(struct mnt_idmap *idmap, struct qstr *name,
fs/namei.c
3219
struct dentry *base)
fs/namei.c
3222
struct dentry *ret;
fs/namei.c
3254
struct dentry *lookup_one_positive_killable(struct mnt_idmap *idmap,
fs/namei.c
3256
struct dentry *base)
fs/namei.c
3259
struct dentry *ret;
fs/namei.c
3293
struct dentry *lookup_one_positive_unlocked(struct mnt_idmap *idmap,
fs/namei.c
3295
struct dentry *base)
fs/namei.c
3297
struct dentry *ret = lookup_one_unlocked(idmap, name, base);
fs/namei.c
3321
struct dentry *lookup_noperm_unlocked(struct qstr *name, struct dentry *base)
fs/namei.c
3323
struct dentry *ret;
fs/namei.c
3345
struct dentry *lookup_noperm_positive_unlocked(struct qstr *name,
fs/namei.c
3346
struct dentry *base)
fs/namei.c
3348
struct dentry *ret;
fs/namei.c
3375
struct dentry *start_creating(struct mnt_idmap *idmap, struct dentry *parent,
fs/namei.c
3402
struct dentry *start_removing(struct mnt_idmap *idmap, struct dentry *parent,
fs/namei.c
3430
struct dentry *start_creating_killable(struct mnt_idmap *idmap,
fs/namei.c
3431
struct dentry *parent,
fs/namei.c
3461
struct dentry *start_removing_killable(struct mnt_idmap *idmap,
fs/namei.c
3462
struct dentry *parent,
fs/namei.c
3485
struct dentry *start_creating_noperm(struct dentry *parent,
fs/namei.c
3510
struct dentry *start_removing_noperm(struct dentry *parent,
fs/namei.c
3536
struct dentry *start_creating_dentry(struct dentry *parent,
fs/namei.c
3537
struct dentry *child)
fs/namei.c
3569
struct dentry *start_removing_dentry(struct dentry *parent,
fs/namei.c
3570
struct dentry *child)
fs/namei.c
3593
struct dentry *parent = dget_parent(path->dentry);
fs/namei.c
3594
struct dentry *child;
fs/namei.c
3601
dput(path->dentry);
fs/namei.c
3602
path->dentry = parent;
fs/namei.c
3607
path->dentry = child;
fs/namei.c
3656
struct dentry *victim, bool isdir)
fs/namei.c
3709
struct inode *dir, struct dentry *child)
fs/namei.c
3724
static struct dentry *lock_two_directories(struct dentry *p1, struct dentry *p2)
fs/namei.c
3726
struct dentry *p = p1, *q = p2, *r;
fs/namei.c
3759
struct dentry *lock_rename(struct dentry *p1, struct dentry *p2)
fs/namei.c
3774
struct dentry *lock_rename_child(struct dentry *c1, struct dentry *p2)
fs/namei.c
3813
void unlock_rename(struct dentry *p1, struct dentry *p2)
fs/namei.c
3848
struct dentry *trap;
fs/namei.c
3849
struct dentry *d1, *d2;
fs/namei.c
3941
struct dentry *old_dentry, struct qstr *new_last)
fs/namei.c
3943
struct dentry *trap;
fs/namei.c
3944
struct dentry *d2;
fs/namei.c
4022
struct dentry *old_dentry, struct qstr *new_last)
fs/namei.c
4051
struct dentry *old_dentry, struct dentry *new_dentry)
fs/namei.c
4053
struct dentry *trap;
fs/namei.c
4162
int vfs_create(struct mnt_idmap *idmap, struct dentry *dentry, umode_t mode,
fs/namei.c
4165
struct inode *dir = d_inode(dentry->d_parent);
fs/namei.c
4168
error = may_create_dentry(idmap, dir, dentry);
fs/namei.c
4176
error = security_inode_create(dir, dentry, mode);
fs/namei.c
4182
error = dir->i_op->create(idmap, dir, dentry, mode, true);
fs/namei.c
4184
fsnotify_create(dir, dentry);
fs/namei.c
4189
int vfs_mkobj(struct dentry *dentry, umode_t mode,
fs/namei.c
4190
int (*f)(struct dentry *, umode_t, void *),
fs/namei.c
4193
struct inode *dir = dentry->d_parent->d_inode;
fs/namei.c
4194
int error = may_create_dentry(&nop_mnt_idmap, dir, dentry);
fs/namei.c
4200
error = security_inode_create(dir, dentry, mode);
fs/namei.c
4203
error = f(dentry, mode, arg);
fs/namei.c
4205
fsnotify_create(dir, dentry);
fs/namei.c
4219
struct dentry *dentry = path->dentry;
fs/namei.c
4220
struct inode *inode = dentry->d_inode;
fs/namei.c
4278
struct inode *inode = path->dentry->d_inode;
fs/namei.c
4285
error = do_truncate(idmap, path->dentry, 0,
fs/namei.c
4301
const struct path *dir, struct dentry *dentry,
fs/namei.c
4304
int error = security_path_mknod(dir, dentry, mode, 0);
fs/namei.c
4308
if (!fsuidgid_has_mapping(dir->dentry->d_sb, idmap))
fs/namei.c
4311
error = inode_permission(idmap, dir->dentry->d_inode,
fs/namei.c
4316
return security_inode_create(dir->dentry->d_inode, dentry, mode);
fs/namei.c
4332
static struct dentry *atomic_open(const struct path *path, struct dentry *dentry,
fs/namei.c
4336
struct dentry *const DENTRY_NOT_SET = (void *) -1UL;
fs/namei.c
4337
struct inode *dir = path->dentry->d_inode;
fs/namei.c
4340
file->__f_path.dentry = DENTRY_NOT_SET;
fs/namei.c
4342
error = dir->i_op->atomic_open(dir, dentry, file,
fs/namei.c
4344
d_lookup_done(dentry);
fs/namei.c
4347
if (unlikely(dentry != file->f_path.dentry)) {
fs/namei.c
4348
dput(dentry);
fs/namei.c
4349
dentry = dget(file->f_path.dentry);
fs/namei.c
4351
} else if (WARN_ON(file->f_path.dentry == DENTRY_NOT_SET)) {
fs/namei.c
4354
if (file->f_path.dentry) {
fs/namei.c
4355
dput(dentry);
fs/namei.c
4356
dentry = file->f_path.dentry;
fs/namei.c
4358
if (unlikely(d_is_negative(dentry)))
fs/namei.c
4363
dput(dentry);
fs/namei.c
4364
dentry = ERR_PTR(error);
fs/namei.c
4366
return dentry;
fs/namei.c
4384
static struct dentry *lookup_open(struct nameidata *nd, struct file *file,
fs/namei.c
4389
struct dentry *dir = nd->path.dentry;
fs/namei.c
4392
struct dentry *dentry;
fs/namei.c
4401
dentry = d_lookup(dir, &nd->last);
fs/namei.c
4403
if (!dentry) {
fs/namei.c
4404
dentry = d_alloc_parallel(dir, &nd->last, &wq);
fs/namei.c
4405
if (IS_ERR(dentry))
fs/namei.c
4406
return dentry;
fs/namei.c
4408
if (d_in_lookup(dentry))
fs/namei.c
4411
error = d_revalidate(dir_inode, &nd->last, dentry, nd->flags);
fs/namei.c
4416
d_invalidate(dentry);
fs/namei.c
4417
dput(dentry);
fs/namei.c
4418
dentry = NULL;
fs/namei.c
4420
if (dentry->d_inode) {
fs/namei.c
4422
return dentry;
fs/namei.c
4446
dentry, mode);
fs/namei.c
4455
dentry = atomic_open(&nd->path, dentry, file, open_flag, mode);
fs/namei.c
4456
if (unlikely(create_error) && dentry == ERR_PTR(-ENOENT))
fs/namei.c
4457
dentry = ERR_PTR(create_error);
fs/namei.c
4458
return dentry;
fs/namei.c
4461
if (d_in_lookup(dentry)) {
fs/namei.c
4462
struct dentry *res = dir_inode->i_op->lookup(dir_inode, dentry,
fs/namei.c
4464
d_lookup_done(dentry);
fs/namei.c
4470
dput(dentry);
fs/namei.c
4471
dentry = res;
fs/namei.c
4476
if (!dentry->d_inode && (open_flag & O_CREAT)) {
fs/namei.c
4483
audit_inode_child(dir_inode, dentry, AUDIT_TYPE_CHILD_CREATE);
fs/namei.c
4489
error = dir_inode->i_op->create(idmap, dir_inode, dentry,
fs/namei.c
4494
if (unlikely(create_error) && !dentry->d_inode) {
fs/namei.c
4498
return dentry;
fs/namei.c
4501
dput(dentry);
fs/namei.c
4510
static struct dentry *lookup_fast_for_open(struct nameidata *nd, int open_flag)
fs/namei.c
4512
struct dentry *dentry;
fs/namei.c
4526
dentry = lookup_fast(nd);
fs/namei.c
4527
if (IS_ERR_OR_NULL(dentry))
fs/namei.c
4528
return dentry;
fs/namei.c
4532
if (!dentry->d_inode) {
fs/namei.c
4534
dput(dentry);
fs/namei.c
4535
dentry = NULL;
fs/namei.c
4538
return dentry;
fs/namei.c
4545
struct dentry *dir = nd->path.dentry;
fs/namei.c
4548
struct dentry *dentry;
fs/namei.c
4560
dentry = lookup_fast_for_open(nd, open_flag);
fs/namei.c
4561
if (IS_ERR(dentry))
fs/namei.c
4562
return ERR_CAST(dentry);
fs/namei.c
4564
if (likely(dentry))
fs/namei.c
4589
dentry = lookup_open(nd, file, op, got_write, &delegated_inode);
fs/namei.c
4590
if (!IS_ERR(dentry)) {
fs/namei.c
4592
fsnotify_create(dir->d_inode, dentry);
fs/namei.c
4604
if (IS_ERR(dentry)) {
fs/namei.c
4612
return ERR_CAST(dentry);
fs/namei.c
4616
dput(nd->path.dentry);
fs/namei.c
4617
nd->path.dentry = dentry;
fs/namei.c
4624
res = step_into(nd, WALK_TRAILING, dentry);
fs/namei.c
4648
audit_inode(nd->name, nd->path.dentry, 0);
fs/namei.c
4653
if (d_is_dir(nd->path.dentry))
fs/namei.c
4656
d_backing_inode(nd->path.dentry));
fs/namei.c
4660
if ((nd->flags & LOOKUP_DIRECTORY) && !d_can_lookup(nd->path.dentry))
fs/namei.c
4669
} else if (d_is_reg(nd->path.dentry) && open_flag & O_TRUNC) {
fs/namei.c
4710
struct dentry *child;
fs/namei.c
4711
struct inode *dir = d_inode(parentpath->dentry);
fs/namei.c
4722
child = d_alloc(parentpath->dentry, &slash_name);
fs/namei.c
4726
file->__f_path.dentry = child;
fs/namei.c
4796
audit_inode(nd->name, file->f_path.dentry, 0);
fs/namei.c
4809
audit_inode(nd->name, path.dentry, 0);
fs/namei.c
4881
if (d_is_symlink(root->dentry) && op->intent & LOOKUP_OPEN)
fs/namei.c
4898
static struct dentry *filename_create(int dfd, struct filename *name,
fs/namei.c
4901
struct dentry *dentry = ERR_PTR(-EEXIST);
fs/namei.c
4928
dentry = start_dirop(path->dentry, &last, reval_flag | create_flags);
fs/namei.c
4929
if (IS_ERR(dentry))
fs/namei.c
4935
return dentry;
fs/namei.c
4937
end_dirop(dentry);
fs/namei.c
4938
dentry = ERR_PTR(error);
fs/namei.c
4944
return dentry;
fs/namei.c
4947
struct dentry *start_creating_path(int dfd, const char *pathname,
fs/namei.c
4966
void end_creating_path(const struct path *path, struct dentry *dentry)
fs/namei.c
4968
end_creating(dentry);
fs/namei.c
4974
inline struct dentry *start_creating_user_path(
fs/namei.c
5004
struct dentry *dentry = path->dentry;
fs/namei.c
5005
struct dentry *dir = dentry->d_parent;
fs/namei.c
5017
path->dentry = dir;
fs/namei.c
5020
create_error = may_o_create(idmap, path, dentry, mode);
fs/namei.c
5024
dentry = atomic_open(path, dentry, file, flags, mode);
fs/namei.c
5025
error = PTR_ERR_OR_ZERO(dentry);
fs/namei.c
5032
fsnotify_create(dir->d_inode, dentry);
fs/namei.c
5037
path->dentry = dentry;
fs/namei.c
5040
error = vfs_create(mnt_idmap(path->mnt), path->dentry, mode, NULL);
fs/namei.c
5069
struct dentry *dentry, umode_t mode, dev_t dev,
fs/namei.c
5073
int error = may_create_dentry(idmap, dir, dentry);
fs/namei.c
5090
error = security_inode_mknod(dir, dentry, mode, dev);
fs/namei.c
5098
error = dir->i_op->mknod(idmap, dir, dentry, mode, dev);
fs/namei.c
5100
fsnotify_create(dir, dentry);
fs/namei.c
5127
struct dentry *dentry;
fs/namei.c
5136
dentry = filename_create(dfd, name, &path, lookup_flags);
fs/namei.c
5137
if (IS_ERR(dentry))
fs/namei.c
5138
return PTR_ERR(dentry);
fs/namei.c
5140
error = security_path_mknod(&path, dentry,
fs/namei.c
5141
mode_strip_umask(path.dentry->d_inode, mode), dev);
fs/namei.c
5148
error = vfs_create(idmap, dentry, mode, &di);
fs/namei.c
5150
security_path_post_mknod(idmap, dentry);
fs/namei.c
5153
error = vfs_mknod(idmap, path.dentry->d_inode,
fs/namei.c
5154
dentry, mode, new_decode_dev(dev), &di);
fs/namei.c
5157
error = vfs_mknod(idmap, path.dentry->d_inode,
fs/namei.c
5158
dentry, mode, 0, &di);
fs/namei.c
5162
end_creating_path(&path, dentry);
fs/namei.c
5210
struct dentry *vfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/namei.c
5211
struct dentry *dentry, umode_t mode,
fs/namei.c
5216
struct dentry *de;
fs/namei.c
5218
error = may_create_dentry(idmap, dir, dentry);
fs/namei.c
5227
error = security_inode_mkdir(dir, dentry, mode);
fs/namei.c
5239
de = dir->i_op->mkdir(idmap, dir, dentry, mode);
fs/namei.c
5244
dput(dentry);
fs/namei.c
5245
dentry = de;
fs/namei.c
5247
fsnotify_mkdir(dir, dentry);
fs/namei.c
5248
return dentry;
fs/namei.c
5251
end_creating(dentry);
fs/namei.c
5258
struct dentry *dentry;
fs/namei.c
5265
dentry = filename_create(dfd, name, &path, lookup_flags);
fs/namei.c
5266
if (IS_ERR(dentry))
fs/namei.c
5267
return PTR_ERR(dentry);
fs/namei.c
5269
error = security_path_mkdir(&path, dentry,
fs/namei.c
5270
mode_strip_umask(path.dentry->d_inode, mode));
fs/namei.c
5272
dentry = vfs_mkdir(mnt_idmap(path.mnt), path.dentry->d_inode,
fs/namei.c
5273
dentry, mode, &delegated_inode);
fs/namei.c
5274
if (IS_ERR(dentry))
fs/namei.c
5275
error = PTR_ERR(dentry);
fs/namei.c
5277
end_creating_path(&path, dentry);
fs/namei.c
5318
struct dentry *dentry, struct delegated_inode *delegated_inode)
fs/namei.c
5320
int error = may_delete_dentry(idmap, dir, dentry, true);
fs/namei.c
5328
dget(dentry);
fs/namei.c
5329
inode_lock(dentry->d_inode);
fs/namei.c
5332
if (is_local_mountpoint(dentry) ||
fs/namei.c
5333
(dentry->d_inode->i_flags & S_KERNEL_FILE))
fs/namei.c
5336
error = security_inode_rmdir(dir, dentry);
fs/namei.c
5344
error = dir->i_op->rmdir(dir, dentry);
fs/namei.c
5348
shrink_dcache_parent(dentry);
fs/namei.c
5349
dentry->d_inode->i_flags |= S_DEAD;
fs/namei.c
5350
dont_mount(dentry);
fs/namei.c
5351
detach_mounts(dentry);
fs/namei.c
5354
inode_unlock(dentry->d_inode);
fs/namei.c
5355
dput(dentry);
fs/namei.c
5357
d_delete_notify(dir, dentry);
fs/namei.c
5365
struct dentry *dentry;
fs/namei.c
5392
dentry = start_dirop(path.dentry, &last, lookup_flags);
fs/namei.c
5393
error = PTR_ERR(dentry);
fs/namei.c
5394
if (IS_ERR(dentry))
fs/namei.c
5396
error = security_path_rmdir(&path, dentry);
fs/namei.c
5399
error = vfs_rmdir(mnt_idmap(path.mnt), path.dentry->d_inode,
fs/namei.c
5400
dentry, &delegated_inode);
fs/namei.c
5402
end_dirop(dentry);
fs/namei.c
5451
struct dentry *dentry, struct delegated_inode *delegated_inode)
fs/namei.c
5453
struct inode *target = dentry->d_inode;
fs/namei.c
5454
int error = may_delete_dentry(idmap, dir, dentry, false);
fs/namei.c
5465
else if (is_local_mountpoint(dentry))
fs/namei.c
5468
error = security_inode_unlink(dir, dentry);
fs/namei.c
5476
error = dir->i_op->unlink(dir, dentry);
fs/namei.c
5478
dont_mount(dentry);
fs/namei.c
5479
detach_mounts(dentry);
fs/namei.c
5487
if (!error && dentry->d_flags & DCACHE_NFSFS_RENAMED) {
fs/namei.c
5488
fsnotify_unlink(dir, dentry);
fs/namei.c
5491
d_delete_notify(dir, dentry);
fs/namei.c
5507
struct dentry *dentry;
fs/namei.c
5527
dentry = start_dirop(path.dentry, &last, lookup_flags);
fs/namei.c
5528
error = PTR_ERR(dentry);
fs/namei.c
5529
if (IS_ERR(dentry))
fs/namei.c
5534
if (d_is_dir(dentry))
fs/namei.c
5538
end_dirop(dentry);
fs/namei.c
5541
inode = dentry->d_inode;
fs/namei.c
5543
error = security_path_unlink(&path, dentry);
fs/namei.c
5546
error = vfs_unlink(mnt_idmap(path.mnt), path.dentry->d_inode,
fs/namei.c
5547
dentry, &delegated_inode);
fs/namei.c
5549
end_dirop(dentry);
fs/namei.c
5601
struct dentry *dentry, const char *oldname,
fs/namei.c
5606
error = may_create_dentry(idmap, dir, dentry);
fs/namei.c
5613
error = security_inode_symlink(dir, dentry, oldname);
fs/namei.c
5621
error = dir->i_op->symlink(idmap, dir, dentry, oldname);
fs/namei.c
5623
fsnotify_create(dir, dentry);
fs/namei.c
5631
struct dentry *dentry;
fs/namei.c
5640
dentry = filename_create(newdfd, to, &path, lookup_flags);
fs/namei.c
5641
if (IS_ERR(dentry))
fs/namei.c
5642
return PTR_ERR(dentry);
fs/namei.c
5644
error = security_path_symlink(&path, dentry, from->name);
fs/namei.c
5646
error = vfs_symlink(mnt_idmap(path.mnt), path.dentry->d_inode,
fs/namei.c
5647
dentry, from->name, &delegated_inode);
fs/namei.c
5648
end_creating_path(&path, dentry);
fs/namei.c
5702
int vfs_link(struct dentry *old_dentry, struct mnt_idmap *idmap,
fs/namei.c
5703
struct inode *dir, struct dentry *new_dentry,
fs/namei.c
5780
struct dentry *new_dentry;
fs/namei.c
5817
error = security_path_link(old_path.dentry, &new_path, new_dentry);
fs/namei.c
5820
error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode,
fs/namei.c
5907
struct dentry *old_dentry = rd->old_dentry;
fs/namei.c
5908
struct dentry *new_dentry = rd->new_dentry;
fs/namei.c
6119
rd.old_parent = old_path.dentry;
fs/namei.c
6121
rd.new_parent = new_path.dentry;
fs/namei.c
6219
int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen)
fs/namei.c
6221
struct inode *inode = d_inode(dentry);
fs/namei.c
6231
return inode->i_op->readlink(dentry, buffer, buflen);
fs/namei.c
6233
if (!d_is_symlink(dentry))
fs/namei.c
6243
link = inode->i_op->get_link(dentry, inode, &done);
fs/namei.c
6264
const char *vfs_get_link(struct dentry *dentry, struct delayed_call *done)
fs/namei.c
6267
struct inode *inode = d_inode(dentry);
fs/namei.c
6269
if (d_is_symlink(dentry)) {
fs/namei.c
6270
res = ERR_PTR(security_inode_readlink(dentry));
fs/namei.c
6272
res = inode->i_op->get_link(dentry, inode, done);
fs/namei.c
6279
static char *__page_get_link(struct dentry *dentry, struct inode *inode,
fs/namei.c
6285
if (!dentry) {
fs/namei.c
6303
const char *page_get_link_raw(struct dentry *dentry, struct inode *inode,
fs/namei.c
6306
return __page_get_link(dentry, inode, callback);
fs/namei.c
6321
const char *page_get_link(struct dentry *dentry, struct inode *inode,
fs/namei.c
6324
char *kaddr = __page_get_link(dentry, inode, callback);
fs/namei.c
6352
int page_readlink(struct dentry *dentry, char __user *buffer, int buflen)
fs/namei.c
6358
link = page_get_link(dentry, d_inode(dentry), &done);
fs/namei.c
705
dget(path->dentry);
fs/namei.c
717
dput(path->dentry);
fs/namei.c
761
p->path.dentry = NULL;
fs/namei.c
810
static bool path_connected(struct vfsmount *mnt, struct dentry *dentry)
fs/namei.c
818
return is_subdir(dentry, mnt->mnt_root);
fs/namei.c
856
nd->path.dentry = NULL;
fs/namei.c
866
path->dentry = NULL;
fs/namei.c
869
if (unlikely(!lockref_get_not_dead(&path->dentry->d_lockref))) {
fs/namei.c
870
path->dentry = NULL;
fs/namei.c
873
return !read_seqcount_retry(&path->dentry->d_seq, seq);
fs/namei.c
932
struct dentry *parent = nd->path.dentry;
fs/namei.c
953
nd->path.dentry = NULL;
fs/namei.c
971
static bool try_to_unlazy_next(struct nameidata *nd, struct dentry *dentry)
fs/namei.c
990
if (unlikely(!lockref_get_not_dead(&nd->path.dentry->d_lockref)))
fs/namespace.c
1148
static void setup_mnt(struct mount *m, struct dentry *root)
fs/namespace.c
1240
static struct mount *clone_mnt(struct mount *old, struct dentry *root,
fs/namespace.c
1456
if (!d_mountpoint(path->dentry))
fs/namespace.c
1473
p = clone_mnt(real_mount(path->mnt), path->dentry, CL_PRIVATE);
fs/namespace.c
1976
void __detach_mounts(struct dentry *dentry)
fs/namespace.c
198
static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry)
fs/namespace.c
1984
if (!lookup_mountpoint(dentry, &mp))
fs/namespace.c
201
tmp += ((unsigned long)dentry / L1_CACHE_BYTES);
fs/namespace.c
2019
struct super_block *sb = path->dentry->d_sb;
fs/namespace.c
2045
dput(path->dentry);
fs/namespace.c
206
static inline struct hlist_head *mp_hash(struct dentry *dentry)
fs/namespace.c
208
unsigned long tmp = ((unsigned long)dentry / L1_CACHE_BYTES);
fs/namespace.c
2085
static bool is_mnt_ns_file(struct dentry *dentry)
fs/namespace.c
2090
if (dentry->d_op != &ns_dentry_operations)
fs/namespace.c
2093
ns = d_inode(dentry)->i_private;
fs/namespace.c
2136
struct mnt_namespace *mnt_ns_from_dentry(struct dentry *dentry)
fs/namespace.c
2138
if (!is_mnt_ns_file(dentry))
fs/namespace.c
2141
return to_mnt_ns(get_proc_ns(dentry->d_inode));
fs/namespace.c
2144
static bool mnt_ns_loop(struct dentry *dentry)
fs/namespace.c
2149
struct mnt_namespace *mnt_ns = mnt_ns_from_dentry(dentry);
fs/namespace.c
2157
struct mount *copy_tree(struct mount *src_root, struct dentry *dentry,
fs/namespace.c
2166
if (!(flag & CL_COPY_MNT_NS_FILE) && is_mnt_ns_file(dentry))
fs/namespace.c
2169
res = dst_mnt = clone_mnt(src_root, dentry, flag);
fs/namespace.c
2176
if (!is_subdir(src_root_child->mnt_mountpoint, dentry))
fs/namespace.c
2264
if (!is_subdir(child->mnt_mountpoint, path->dentry))
fs/namespace.c
2270
res[n].dentry = m->mnt.mnt_root;
fs/namespace.c
2323
static bool __has_locked_children(struct mount *mnt, struct dentry *dentry)
fs/namespace.c
2328
if (!is_subdir(child->mnt_mountpoint, dentry))
fs/namespace.c
2337
bool has_locked_children(struct mount *mnt, struct dentry *dentry)
fs/namespace.c
2340
return __has_locked_children(mnt, dentry);
fs/namespace.c
2399
if (__has_locked_children(old_mnt, path->dentry))
fs/namespace.c
2402
new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
fs/namespace.c
2676
struct dentry **dentry,
fs/namespace.c
2683
*dentry = m->mnt_mountpoint;
fs/namespace.c
2686
m = __lookup_mnt(path->mnt, path->dentry);
fs/namespace.c
2689
*dentry = m->mnt.mnt_root;
fs/namespace.c
2692
*dentry = path->dentry;
fs/namespace.c
2739
struct dentry *dentry, *d;
fs/namespace.c
2743
m = where_to_mount(path, &dentry, beneath);
fs/namespace.c
2746
dget(dentry);
fs/namespace.c
2750
inode_lock(dentry->d_inode);
fs/namespace.c
2757
if (unlikely(n != m || dentry != d))
fs/namespace.c
2759
else if (unlikely(cant_mount(dentry) || !is_mounted(path->mnt)))
fs/namespace.c
2764
err = get_mountpoint(dentry, res);
fs/namespace.c
2769
inode_unlock(dentry->d_inode);
fs/namespace.c
2782
dput(dentry);
fs/namespace.c
2947
d_op = path->dentry->d_op;
fs/namespace.c
2972
if (!recurse && __has_locked_children(old, old_path->dentry))
fs/namespace.c
2988
return copy_tree(old, old_path->dentry, copy_flags);
fs/namespace.c
2990
return clone_mnt(old, old_path->dentry, copy_flags);
fs/namespace.c
3010
if (mnt_ns_loop(old_path.dentry))
fs/namespace.c
3110
to_path.dentry = old_ns_root->mnt.mnt_root;
fs/namespace.c
3376
fc = fs_context_for_reconfigure(path->dentry, sb_flags, MS_RMT_MASK);
fs/namespace.c
3489
no_child = !__lookup_mnt(path->mnt, path->dentry);
fs/namespace.c
3493
no_child = !__lookup_mnt(path->mnt, path->dentry);
fs/namespace.c
3641
if (d_is_dir(new_path->dentry) != d_is_dir(old_path->dentry))
fs/namespace.c
3849
struct dentry *dentry = path->dentry;
fs/namespace.c
3855
inode_lock(dentry->d_inode);
fs/namespace.c
3857
if (unlikely(cant_mount(dentry)))
fs/namespace.c
3862
err = get_mountpoint(dentry, mp);
fs/namespace.c
3865
inode_unlock(dentry->d_inode);
fs/namespace.c
3871
mp->parent = clone_mnt(real_mount(path->mnt), dentry, copy_flags);
fs/namespace.c
3891
if (m->mnt_root == path->dentry)
fs/namespace.c
4302
struct dentry *mount_subtree(struct vfsmount *m, const char *name)
fs/namespace.c
4334
return path.dentry;
fs/namespace.c
4478
new_path.dentry = dget(fc->root);
fs/namespace.c
4613
bool is_path_reachable(struct mount *mnt, struct dentry *dentry,
fs/namespace.c
4617
dentry = mnt->mnt_mountpoint;
fs/namespace.c
4620
return &mnt->mnt == root->mnt && is_subdir(dentry, root->dentry);
fs/namespace.c
4626
return is_path_reachable(real_mount(path1->mnt), path1->dentry, path2);
fs/namespace.c
4662
if (d_unlinked(new->dentry))
fs/namespace.c
4678
if (!is_path_reachable(new_mnt, new->dentry, &root))
fs/namespace.c
5178
int show_path(struct seq_file *m, struct dentry *root)
fs/namespace.c
5323
struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
fs/namespace.c
5662
root->dentry = dget(root->mnt->mnt_root);
fs/namespace.c
6008
orig.dentry = orig.mnt->mnt_root;
fs/namespace.c
6015
if (!is_path_reachable(real_mount(orig.mnt), orig.dentry, &kls->root) &&
fs/namespace.c
6019
ret = security_sb_statfs(orig.dentry);
fs/namespace.c
6170
root.dentry = nullfs_mnt->mnt_root;
fs/namespace.c
6196
root.dentry = mnt->mnt_root;
fs/namespace.c
789
struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
fs/namespace.c
791
struct hlist_head *head = m_hash(mnt, dentry);
fs/namespace.c
795
if (&p->mnt_parent->mnt == mnt && p->mnt_mountpoint == dentry)
fs/namespace.c
816
child_mnt = __lookup_mnt(path->mnt, path->dentry);
fs/namespace.c
838
bool __is_local_mountpoint(const struct dentry *dentry)
fs/namespace.c
846
if (mnt->mnt_mountpoint == dentry)
fs/namespace.c
858
static bool lookup_mountpoint(struct dentry *dentry, struct pinned_mountpoint *m)
fs/namespace.c
860
struct hlist_head *chain = mp_hash(dentry);
fs/namespace.c
864
if (mp->m_dentry == dentry) {
fs/namespace.c
873
static int get_mountpoint(struct dentry *dentry, struct pinned_mountpoint *m)
fs/namespace.c
879
if (d_mountpoint(dentry)) {
fs/namespace.c
881
if (d_unlinked(dentry))
fs/namespace.c
885
found = lookup_mountpoint(dentry, m);
fs/namespace.c
897
ret = d_set_mounted(dentry);
fs/namespace.c
909
mp->m_dentry = dget(dentry);
fs/namespace.c
910
hlist_add_head(&mp->m_hash, mp_hash(dentry));
fs/namespace.c
925
struct dentry *dentry = mp->m_dentry;
fs/namespace.c
926
spin_lock(&dentry->d_lock);
fs/namespace.c
927
dentry->d_flags &= ~DCACHE_MOUNTED;
fs/namespace.c
928
spin_unlock(&dentry->d_lock);
fs/namespace.c
929
dput_to_list(dentry, list);
fs/nfs/blocklayout/rpc_pipefs.c
147
struct dentry *dir;
fs/nfs/cache_lib.c
119
struct dentry *dir;
fs/nfs/dir.c
1226
struct dentry *dentry = file_dentry(file);
fs/nfs/dir.c
1227
struct inode *inode = d_inode(dentry);
fs/nfs/dir.c
1431
static bool nfs_verifier_is_delegated(struct dentry *dentry)
fs/nfs/dir.c
1433
return nfs_test_verifier_delegated(dentry->d_time);
fs/nfs/dir.c
1436
static void nfs_set_verifier_locked(struct dentry *dentry, unsigned long verf)
fs/nfs/dir.c
1438
struct inode *inode = d_inode(dentry);
fs/nfs/dir.c
1439
struct inode *dir = d_inode_rcu(dentry->d_parent);
fs/nfs/dir.c
1446
dentry->d_time = verf;
fs/nfs/dir.c
1459
void nfs_set_verifier(struct dentry *dentry, unsigned long verf)
fs/nfs/dir.c
1462
spin_lock(&dentry->d_lock);
fs/nfs/dir.c
1463
nfs_set_verifier_locked(dentry, verf);
fs/nfs/dir.c
1464
spin_unlock(&dentry->d_lock);
fs/nfs/dir.c
1471
struct dentry *alias;
fs/nfs/dir.c
1486
struct dentry *this_parent;
fs/nfs/dir.c
1487
struct dentry *dentry;
fs/nfs/dir.c
1493
hlist_entry(dir->i_dentry.first, struct dentry, d_u.d_alias);
fs/nfs/dir.c
1497
dentry = d_first_child(this_parent);
fs/nfs/dir.c
1498
hlist_for_each_entry_from(dentry, d_sib) {
fs/nfs/dir.c
1499
if (unlikely(dentry->d_flags & DCACHE_DENTRY_CURSOR))
fs/nfs/dir.c
1501
inode = d_inode_rcu(dentry);
fs/nfs/dir.c
1505
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
fs/nfs/dir.c
1506
nfs_unset_verifier_delegated(&dentry->d_time);
fs/nfs/dir.c
1507
spin_unlock(&dentry->d_lock);
fs/nfs/dir.c
1536
static int nfs_dentry_verify_change(struct inode *dir, struct dentry *dentry)
fs/nfs/dir.c
1539
d_really_is_negative(dentry))
fs/nfs/dir.c
1540
return dentry->d_time == inode_peek_iversion_raw(dir);
fs/nfs/dir.c
1541
return nfs_verify_change_attribute(dir, dentry->d_time);
fs/nfs/dir.c
1550
static int nfs_check_verifier(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
1553
if (IS_ROOT(dentry))
fs/nfs/dir.c
1557
if (!nfs_dentry_verify_change(dir, dentry))
fs/nfs/dir.c
1567
if (!nfs_dentry_verify_change(dir, dentry))
fs/nfs/dir.c
1656
int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
1666
return !nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU);
fs/nfs/dir.c
1670
nfs_lookup_revalidate_done(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
1677
if (inode && (IS_ROOT(dentry) ||
fs/nfs/dir.c
1692
if (inode && IS_ROOT(dentry))
fs/nfs/dir.c
1696
trace_nfs_lookup_revalidate_exit(dir, dentry, 0, error);
fs/nfs/dir.c
1701
nfs_lookup_revalidate_negative(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
1705
if (nfs_neg_need_reval(dir, dentry, flags)) {
fs/nfs/dir.c
1710
return nfs_lookup_revalidate_done(dir, dentry, NULL, ret);
fs/nfs/dir.c
1714
nfs_lookup_revalidate_delegated(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
1717
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/dir.c
1718
return nfs_lookup_revalidate_done(dir, dentry, inode, 1);
fs/nfs/dir.c
1722
struct dentry *dentry,
fs/nfs/dir.c
1730
trace_nfs_lookup_revalidate_enter(dir, dentry, flags);
fs/nfs/dir.c
1739
ret = NFS_PROTO(dir)->lookup(dir, dentry, name, fhandle, fattr);
fs/nfs/dir.c
1753
nfs_set_verifier(dentry, dir_verifier);
fs/nfs/dir.c
1764
if (!ret && nfs_dentry_verify_change(dir, dentry))
fs/nfs/dir.c
1766
return nfs_lookup_revalidate_done(dir, dentry, inode, ret);
fs/nfs/dir.c
1782
struct dentry *dentry, unsigned int flags)
fs/nfs/dir.c
1788
inode = d_inode(dentry);
fs/nfs/dir.c
1791
return nfs_lookup_revalidate_negative(dir, dentry, flags);
fs/nfs/dir.c
1795
__func__, dentry);
fs/nfs/dir.c
1799
if ((flags & LOOKUP_RENAME_TARGET) && d_count(dentry) < 2 &&
fs/nfs/dir.c
1803
if (nfs_verifier_is_delegated(dentry))
fs/nfs/dir.c
1804
return nfs_lookup_revalidate_delegated(dir, dentry, inode);
fs/nfs/dir.c
1808
nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU)) {
fs/nfs/dir.c
1824
return nfs_lookup_revalidate_dentry(dir, name, dentry, inode, flags);
fs/nfs/dir.c
1826
return nfs_lookup_revalidate_done(dir, dentry, inode, 1);
fs/nfs/dir.c
1830
return nfs_lookup_revalidate_done(dir, dentry, inode, error);
fs/nfs/dir.c
1834
__nfs_lookup_revalidate(struct dentry *dentry, unsigned int flags)
fs/nfs/dir.c
1837
if (dentry->d_fsdata == NFS_FSDATA_BLOCKED)
fs/nfs/dir.c
1841
wait_var_event(&dentry->d_fsdata,
fs/nfs/dir.c
1842
smp_load_acquire(&dentry->d_fsdata)
fs/nfs/dir.c
1849
struct dentry *dentry, unsigned int flags)
fs/nfs/dir.c
1851
if (__nfs_lookup_revalidate(dentry, flags))
fs/nfs/dir.c
1853
return nfs_do_lookup_revalidate(dir, name, dentry, flags);
fs/nfs/dir.c
1856
static void block_revalidate(struct dentry *dentry)
fs/nfs/dir.c
1859
kfree(dentry->d_fsdata);
fs/nfs/dir.c
1867
lockdep_assert_held(&dentry->d_lock);
fs/nfs/dir.c
1869
dentry->d_fsdata = NFS_FSDATA_BLOCKED;
fs/nfs/dir.c
1872
static void unblock_revalidate(struct dentry *dentry)
fs/nfs/dir.c
1874
store_release_wake_up(&dentry->d_fsdata, NULL);
fs/nfs/dir.c
1886
static int nfs_weak_revalidate(struct dentry *dentry, unsigned int flags)
fs/nfs/dir.c
1888
struct inode *inode = d_inode(dentry);
fs/nfs/dir.c
1898
__func__, dentry);
fs/nfs/dir.c
1904
__func__, dentry);
fs/nfs/dir.c
1917
static int nfs_dentry_delete(const struct dentry *dentry)
fs/nfs/dir.c
1920
dentry, dentry->d_flags);
fs/nfs/dir.c
1923
if (d_really_is_positive(dentry) && NFS_STALE(d_inode(dentry)))
fs/nfs/dir.c
1926
if (dentry->d_flags & DCACHE_NFSFS_RENAMED) {
fs/nfs/dir.c
1930
if (!(dentry->d_sb->s_flags & SB_ACTIVE)) {
fs/nfs/dir.c
1959
static void nfs_dentry_iput(struct dentry *dentry, struct inode *inode)
fs/nfs/dir.c
1961
if (dentry->d_flags & DCACHE_NFSFS_RENAMED) {
fs/nfs/dir.c
1963
nfs_complete_unlink(dentry, inode);
fs/nfs/dir.c
1969
static void nfs_d_release(struct dentry *dentry)
fs/nfs/dir.c
1972
if (unlikely(dentry->d_fsdata)) {
fs/nfs/dir.c
1973
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/nfs/dir.c
1976
kfree(dentry->d_fsdata);
fs/nfs/dir.c
1990
struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
fs/nfs/dir.c
1992
struct dentry *res;
fs/nfs/dir.c
1999
dfprintk(VFS, "NFS: lookup(%pd2)\n", dentry);
fs/nfs/dir.c
2002
if (unlikely(dentry->d_name.len > NFS_SERVER(dir)->namelen))
fs/nfs/dir.c
2019
trace_nfs_lookup_enter(dir, dentry, flags);
fs/nfs/dir.c
2020
error = NFS_PROTO(dir)->lookup(dir, dentry, &dentry->d_name,
fs/nfs/dir.c
2031
inode = nfs_fhget(dentry->d_sb, fhandle, fattr);
fs/nfs/dir.c
2040
nfs_set_verifier(dentry, dir_verifier);
fs/nfs/dir.c
2041
res = d_splice_alias(inode, dentry);
fs/nfs/dir.c
2046
dentry = res;
fs/nfs/dir.c
2049
trace_nfs_lookup_exit(dir, dentry, flags, PTR_ERR_OR_ZERO(res));
fs/nfs/dir.c
2066
struct dentry *, unsigned int);
fs/nfs/dir.c
2078
static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, int open_flags, struct file *filp)
fs/nfs/dir.c
2080
return alloc_nfs_open_context(dentry, flags_to_mode(open_flags), filp);
fs/nfs/dir.c
2090
struct dentry *dentry,
fs/nfs/dir.c
2095
err = finish_open(file, dentry, do_open);
fs/nfs/dir.c
2106
int nfs_atomic_open(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
2112
struct dentry *res;
fs/nfs/dir.c
2122
BUG_ON(d_inode(dentry));
fs/nfs/dir.c
2125
dir->i_sb->s_id, dir->i_ino, dentry);
fs/nfs/dir.c
2133
if (!d_in_lookup(dentry)) {
fs/nfs/dir.c
2145
if (dentry->d_name.len > NFS_SERVER(dir)->namelen)
fs/nfs/dir.c
2162
if (!(open_flags & O_CREAT) && !d_in_lookup(dentry)) {
fs/nfs/dir.c
2163
d_drop(dentry);
fs/nfs/dir.c
2165
dentry = d_alloc_parallel(dentry->d_parent,
fs/nfs/dir.c
2166
&dentry->d_name, &wq);
fs/nfs/dir.c
2167
if (IS_ERR(dentry))
fs/nfs/dir.c
2168
return PTR_ERR(dentry);
fs/nfs/dir.c
2169
if (unlikely(!d_in_lookup(dentry)))
fs/nfs/dir.c
2170
return finish_no_open(file, dentry);
fs/nfs/dir.c
2173
ctx = create_nfs_open_context(dentry, open_flags, file);
fs/nfs/dir.c
2186
d_drop(dentry);
fs/nfs/dir.c
2193
nfs_set_verifier(dentry, dir_verifier);
fs/nfs/dir.c
2194
d_splice_alias(NULL, dentry);
fs/nfs/dir.c
2211
err = nfs_finish_open(ctx, ctx->dentry, file, open_flags);
fs/nfs/dir.c
2216
d_lookup_done(dentry);
fs/nfs/dir.c
2217
dput(dentry);
fs/nfs/dir.c
2222
res = nfs_lookup(dir, dentry, lookup_flags);
fs/nfs/dir.c
2224
inode = d_inode(dentry);
fs/nfs/dir.c
2242
d_lookup_done(dentry);
fs/nfs/dir.c
2244
res = dentry;
fs/nfs/dir.c
2246
dput(dentry);
fs/nfs/dir.c
2254
struct dentry *dentry, unsigned int flags)
fs/nfs/dir.c
2258
if (__nfs_lookup_revalidate(dentry, flags))
fs/nfs/dir.c
2261
trace_nfs_lookup_revalidate_enter(dir, dentry, flags);
fs/nfs/dir.c
2265
if (d_mountpoint(dentry))
fs/nfs/dir.c
2268
inode = d_inode(dentry);
fs/nfs/dir.c
2276
if (nfs_verifier_is_delegated(dentry) ||
fs/nfs/dir.c
2278
return nfs_lookup_revalidate_delegated(dir, dentry, inode);
fs/nfs/dir.c
2289
if (!nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU))
fs/nfs/dir.c
2297
return nfs_lookup_revalidate_dentry(dir, name, dentry, inode, flags);
fs/nfs/dir.c
2300
return nfs_do_lookup_revalidate(dir, name, dentry, flags);
fs/nfs/dir.c
2305
int nfs_atomic_open_v23(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
2309
struct dentry *res = NULL;
fs/nfs/dir.c
2315
if (dentry->d_name.len > NFS_SERVER(dir)->namelen)
fs/nfs/dir.c
2319
error = nfs_do_create(dir, dentry, mode, open_flags);
fs/nfs/dir.c
2322
return finish_open(file, dentry, NULL);
fs/nfs/dir.c
2326
if (d_in_lookup(dentry)) {
fs/nfs/dir.c
2331
res = nfs_lookup(dir, dentry, 0);
fs/nfs/dir.c
2338
struct dentry *
fs/nfs/dir.c
2339
nfs_add_or_obtain(struct dentry *dentry, struct nfs_fh *fhandle,
fs/nfs/dir.c
2342
struct dentry *parent = dget_parent(dentry);
fs/nfs/dir.c
2345
struct dentry *d;
fs/nfs/dir.c
2348
d_drop(dentry);
fs/nfs/dir.c
2351
error = NFS_PROTO(dir)->lookup(dir, dentry, &dentry->d_name,
fs/nfs/dir.c
2356
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/dir.c
2358
struct nfs_server *server = NFS_SB(dentry->d_sb);
fs/nfs/dir.c
2364
inode = nfs_fhget(dentry->d_sb, fhandle, fattr);
fs/nfs/dir.c
2365
d = d_splice_alias(inode, dentry);
fs/nfs/dir.c
2378
int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fhandle,
fs/nfs/dir.c
2381
struct dentry *d;
fs/nfs/dir.c
2383
d = nfs_add_or_obtain(dentry, fhandle, fattr);
fs/nfs/dir.c
2399
static int nfs_do_create(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
2408
dir->i_sb->s_id, dir->i_ino, dentry);
fs/nfs/dir.c
2417
trace_nfs_create_enter(dir, dentry, open_flags);
fs/nfs/dir.c
2418
error = NFS_PROTO(dir)->create(dir, dentry, &attr, open_flags);
fs/nfs/dir.c
2419
trace_nfs_create_exit(dir, dentry, open_flags, error);
fs/nfs/dir.c
2424
d_drop(dentry);
fs/nfs/dir.c
2429
struct dentry *dentry, umode_t mode, bool excl)
fs/nfs/dir.c
2431
return nfs_do_create(dir, dentry, mode, excl ? O_EXCL : 0);
fs/nfs/dir.c
2440
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/nfs/dir.c
2446
dir->i_sb->s_id, dir->i_ino, dentry);
fs/nfs/dir.c
2451
trace_nfs_mknod_enter(dir, dentry);
fs/nfs/dir.c
2452
status = NFS_PROTO(dir)->mknod(dir, dentry, &attr, rdev);
fs/nfs/dir.c
2453
trace_nfs_mknod_exit(dir, dentry, status);
fs/nfs/dir.c
2458
d_drop(dentry);
fs/nfs/dir.c
2466
struct dentry *nfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/nfs/dir.c
2467
struct dentry *dentry, umode_t mode)
fs/nfs/dir.c
2470
struct dentry *ret;
fs/nfs/dir.c
2473
dir->i_sb->s_id, dir->i_ino, dentry);
fs/nfs/dir.c
2478
trace_nfs_mkdir_enter(dir, dentry);
fs/nfs/dir.c
2479
ret = NFS_PROTO(dir)->mkdir(dir, dentry, &attr);
fs/nfs/dir.c
2480
trace_nfs_mkdir_exit(dir, dentry, PTR_ERR_OR_ZERO(ret));
fs/nfs/dir.c
2485
static void nfs_dentry_handle_enoent(struct dentry *dentry)
fs/nfs/dir.c
2487
if (simple_positive(dentry))
fs/nfs/dir.c
2488
d_delete(dentry);
fs/nfs/dir.c
2492
struct dentry *dentry, int error)
fs/nfs/dir.c
2496
if (d_really_is_positive(dentry))
fs/nfs/dir.c
2497
d_delete(dentry);
fs/nfs/dir.c
2498
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/dir.c
2501
nfs_d_prune_case_insensitive_aliases(d_inode(dentry));
fs/nfs/dir.c
2502
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/dir.c
2506
int nfs_rmdir(struct inode *dir, struct dentry *dentry)
fs/nfs/dir.c
2511
dir->i_sb->s_id, dir->i_ino, dentry);
fs/nfs/dir.c
2513
trace_nfs_rmdir_enter(dir, dentry);
fs/nfs/dir.c
2514
if (d_really_is_positive(dentry)) {
fs/nfs/dir.c
2515
down_write(&NFS_I(d_inode(dentry))->rmdir_sem);
fs/nfs/dir.c
2516
error = NFS_PROTO(dir)->rmdir(dir, &dentry->d_name);
fs/nfs/dir.c
2520
clear_nlink(d_inode(dentry));
fs/nfs/dir.c
2523
nfs_dentry_handle_enoent(dentry);
fs/nfs/dir.c
2525
up_write(&NFS_I(d_inode(dentry))->rmdir_sem);
fs/nfs/dir.c
2527
error = NFS_PROTO(dir)->rmdir(dir, &dentry->d_name);
fs/nfs/dir.c
2528
nfs_dentry_remove_handle_error(dir, dentry, error);
fs/nfs/dir.c
2529
trace_nfs_rmdir_exit(dir, dentry, error);
fs/nfs/dir.c
2542
static int nfs_safe_remove(struct dentry *dentry)
fs/nfs/dir.c
2544
struct inode *dir = d_inode(dentry->d_parent);
fs/nfs/dir.c
2545
struct inode *inode = d_inode(dentry);
fs/nfs/dir.c
2548
dfprintk(VFS, "NFS: safe_remove(%pd2)\n", dentry);
fs/nfs/dir.c
2551
if (dentry->d_flags & DCACHE_NFSFS_RENAMED) {
fs/nfs/dir.c
2556
trace_nfs_remove_enter(dir, dentry);
fs/nfs/dir.c
2560
error = NFS_PROTO(dir)->remove(dir, dentry);
fs/nfs/dir.c
2564
error = NFS_PROTO(dir)->remove(dir, dentry);
fs/nfs/dir.c
2566
nfs_dentry_handle_enoent(dentry);
fs/nfs/dir.c
2567
trace_nfs_remove_exit(dir, dentry, error);
fs/nfs/dir.c
2577
int nfs_unlink(struct inode *dir, struct dentry *dentry)
fs/nfs/dir.c
2582
dir->i_ino, dentry);
fs/nfs/dir.c
2584
trace_nfs_unlink_enter(dir, dentry);
fs/nfs/dir.c
2585
spin_lock(&dentry->d_lock);
fs/nfs/dir.c
2586
if (d_count(dentry) > 1 && !test_bit(NFS_INO_PRESERVE_UNLINKED,
fs/nfs/dir.c
2587
&NFS_I(d_inode(dentry))->flags)) {
fs/nfs/dir.c
2588
spin_unlock(&dentry->d_lock);
fs/nfs/dir.c
2590
write_inode_now(d_inode(dentry), 0);
fs/nfs/dir.c
2591
error = nfs_sillyrename(dir, dentry);
fs/nfs/dir.c
2600
if (WARN_ON(dentry->d_flags & DCACHE_NFSFS_RENAMED) ||
fs/nfs/dir.c
2601
WARN_ON(dentry->d_fsdata == NFS_FSDATA_BLOCKED)) {
fs/nfs/dir.c
2602
spin_unlock(&dentry->d_lock);
fs/nfs/dir.c
2605
block_revalidate(dentry);
fs/nfs/dir.c
2607
spin_unlock(&dentry->d_lock);
fs/nfs/dir.c
2608
error = nfs_safe_remove(dentry);
fs/nfs/dir.c
2609
nfs_dentry_remove_handle_error(dir, dentry, error);
fs/nfs/dir.c
2610
unblock_revalidate(dentry);
fs/nfs/dir.c
2612
trace_nfs_unlink_exit(dir, dentry, error);
fs/nfs/dir.c
2633
struct dentry *dentry, const char *symname)
fs/nfs/dir.c
2642
dir->i_ino, dentry, symname);
fs/nfs/dir.c
2659
trace_nfs_symlink_enter(dir, dentry);
fs/nfs/dir.c
2660
error = NFS_PROTO(dir)->symlink(dir, dentry, folio, pathlen, &attr);
fs/nfs/dir.c
2661
trace_nfs_symlink_exit(dir, dentry, error);
fs/nfs/dir.c
2665
dentry, symname, error);
fs/nfs/dir.c
2666
d_drop(dentry);
fs/nfs/dir.c
2671
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/dir.c
2677
if (filemap_add_folio(d_inode(dentry)->i_mapping, folio, 0,
fs/nfs/dir.c
2689
nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
fs/nfs/dir.c
2695
old_dentry, dentry);
fs/nfs/dir.c
2697
trace_nfs_link_enter(inode, dir, dentry);
fs/nfs/dir.c
2698
d_drop(dentry);
fs/nfs/dir.c
2701
error = NFS_PROTO(dir)->link(inode, dir, &dentry->d_name);
fs/nfs/dir.c
2703
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/dir.c
2705
d_add(dentry, inode);
fs/nfs/dir.c
2707
trace_nfs_link_exit(inode, dir, dentry, error);
fs/nfs/dir.c
2715
struct dentry *new_dentry = data->new_dentry;
fs/nfs/dir.c
2720
static bool nfs_rename_is_unsafe_cross_dir(struct dentry *old_dentry,
fs/nfs/dir.c
2721
struct dentry *new_dentry)
fs/nfs/dir.c
2757
struct dentry *old_dentry, struct inode *new_dir,
fs/nfs/dir.c
2758
struct dentry *new_dentry, unsigned int flags)
fs/nfs/dir.c
2763
struct dentry *dentry = NULL;
fs/nfs/dir.c
2800
dentry = d_alloc(new_dentry->d_parent,
fs/nfs/dir.c
2802
if (!dentry)
fs/nfs/dir.c
2810
new_dentry = dentry;
fs/nfs/dir.c
2869
if (dentry)
fs/nfs/dir.c
2870
dput(dentry);
fs/nfs/dir.c
589
.dentry = file_dentry(desc->file),
fs/nfs/dir.c
59
static int nfs_do_create(struct inode *dir, struct dentry *dentry,
fs/nfs/dir.c
641
int nfs_same_file(struct dentry *dentry, struct nfs_entry *entry)
fs/nfs/dir.c
646
if (d_really_is_negative(dentry))
fs/nfs/dir.c
649
inode = d_inode(dentry);
fs/nfs/dir.c
726
void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry,
fs/nfs/dir.c
731
struct dentry *dentry;
fs/nfs/dir.c
732
struct dentry *alias;
fs/nfs/dir.c
756
dentry = d_lookup(parent, &filename);
fs/nfs/dir.c
758
if (!dentry) {
fs/nfs/dir.c
759
dentry = d_alloc_parallel(parent, &filename, &wq);
fs/nfs/dir.c
760
if (IS_ERR(dentry))
fs/nfs/dir.c
763
if (!d_in_lookup(dentry)) {
fs/nfs/dir.c
765
if (!nfs_fsid_equal(&NFS_SB(dentry->d_sb)->fsid,
fs/nfs/dir.c
768
if (nfs_same_file(dentry, entry)) {
fs/nfs/dir.c
771
nfs_set_verifier(dentry, dir_verifier);
fs/nfs/dir.c
772
status = nfs_refresh_inode(d_inode(dentry), entry->fattr);
fs/nfs/dir.c
774
nfs_setsecurity(d_inode(dentry), entry->fattr);
fs/nfs/dir.c
776
dentry, 0, status);
fs/nfs/dir.c
780
d_inode(parent), dentry, 0);
fs/nfs/dir.c
781
d_invalidate(dentry);
fs/nfs/dir.c
782
dput(dentry);
fs/nfs/dir.c
783
dentry = NULL;
fs/nfs/dir.c
788
d_lookup_done(dentry);
fs/nfs/dir.c
792
nfs_set_verifier(dentry, dir_verifier);
fs/nfs/dir.c
793
inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr);
fs/nfs/dir.c
794
alias = d_splice_alias(inode, dentry);
fs/nfs/dir.c
795
d_lookup_done(dentry);
fs/nfs/dir.c
800
dput(dentry);
fs/nfs/dir.c
801
dentry = alias;
fs/nfs/dir.c
803
trace_nfs_readdir_lookup(d_inode(parent), dentry, 0);
fs/nfs/dir.c
805
dput(dentry);
fs/nfs/export.c
109
dentry = ERR_PTR(ret);
fs/nfs/export.c
116
dentry = d_obtain_alias(inode);
fs/nfs/export.c
120
return dentry;
fs/nfs/export.c
123
static struct dentry *
fs/nfs/export.c
124
nfs_get_parent(struct dentry *dentry)
fs/nfs/export.c
127
struct inode *inode = d_inode(dentry), *pinode;
fs/nfs/export.c
131
struct dentry *parent;
fs/nfs/export.c
63
static struct dentry *
fs/nfs/export.c
71
struct dentry *dentry;
fs/nfs/export.c
90
dentry = ERR_PTR(-ENOMEM);
fs/nfs/getroot.c
72
struct dentry *root;
fs/nfs/inode.c
1006
nfs_readdirplus_parent_cache_hit(path->dentry);
fs/nfs/inode.c
1064
nfs_readdirplus_parent_cache_miss(path->dentry);
fs/nfs/inode.c
1069
nfs_readdirplus_parent_cache_hit(path->dentry);
fs/nfs/inode.c
1128
struct inode *inode = d_inode(ctx->dentry);
fs/nfs/inode.c
1160
struct inode *inode = d_inode(ctx->dentry);
fs/nfs/inode.c
1189
inode = d_inode(ctx->dentry);
fs/nfs/inode.c
1206
struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry,
fs/nfs/inode.c
1215
nfs_sb_active(dentry->d_sb);
fs/nfs/inode.c
1216
ctx->dentry = dget(dentry);
fs/nfs/inode.c
1247
struct inode *inode = d_inode(ctx->dentry);
fs/nfs/inode.c
1248
struct super_block *sb = ctx->dentry->d_sb;
fs/nfs/inode.c
1260
dput(ctx->dentry);
fs/nfs/inode.c
1285
struct inode *inode = d_inode(ctx->dentry);
fs/nfs/inode.c
1336
struct inode *inode = d_inode(ctx->dentry);
fs/nfs/inode.c
710
nfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/nfs/inode.c
713
struct inode *inode = d_inode(dentry);
fs/nfs/inode.c
789
error = NFS_PROTO(inode)->setattr(dentry, fattr, attr);
fs/nfs/inode.c
934
static void nfs_readdirplus_parent_cache_miss(struct dentry *dentry)
fs/nfs/inode.c
936
if (!IS_ROOT(dentry)) {
fs/nfs/inode.c
937
struct dentry *parent = dget_parent(dentry);
fs/nfs/inode.c
943
static void nfs_readdirplus_parent_cache_hit(struct dentry *dentry)
fs/nfs/inode.c
945
if (!IS_ROOT(dentry)) {
fs/nfs/inode.c
946
struct dentry *parent = dget_parent(dentry);
fs/nfs/inode.c
985
struct inode *inode = d_inode(path->dentry);
fs/nfs/internal.h
153
struct dentry *dentry;
fs/nfs/internal.h
38
static inline bool nfs_lookup_is_soft_revalidate(const struct dentry *dentry)
fs/nfs/internal.h
393
struct dentry *nfs_lookup(struct inode *, struct dentry *, unsigned int);
fs/nfs/internal.h
395
int nfs_create(struct mnt_idmap *, struct inode *, struct dentry *,
fs/nfs/internal.h
397
struct dentry *nfs_mkdir(struct mnt_idmap *, struct inode *, struct dentry *,
fs/nfs/internal.h
399
int nfs_rmdir(struct inode *, struct dentry *);
fs/nfs/internal.h
40
if (!(NFS_SB(dentry->d_sb)->flags & NFS_MOUNT_SOFTREVAL))
fs/nfs/internal.h
400
int nfs_unlink(struct inode *, struct dentry *);
fs/nfs/internal.h
401
int nfs_symlink(struct mnt_idmap *, struct inode *, struct dentry *,
fs/nfs/internal.h
403
int nfs_link(struct dentry *, struct inode *, struct dentry *);
fs/nfs/internal.h
404
int nfs_mknod(struct mnt_idmap *, struct inode *, struct dentry *, umode_t,
fs/nfs/internal.h
406
int nfs_rename(struct mnt_idmap *, struct inode *, struct dentry *,
fs/nfs/internal.h
407
struct inode *, struct dentry *, unsigned int);
fs/nfs/internal.h
42
if (!d_is_positive(dentry) || !NFS_FH(d_inode(dentry))->size)
fs/nfs/internal.h
552
extern char *nfs_path(char **p, struct dentry *dentry,
fs/nfs/internal.h
579
int nfs_statfs(struct dentry *, struct kstatfs *);
fs/nfs/internal.h
580
int nfs_show_options(struct seq_file *, struct dentry *);
fs/nfs/internal.h
581
int nfs_show_devname(struct seq_file *, struct dentry *);
fs/nfs/internal.h
582
int nfs_show_path(struct seq_file *, struct dentry *);
fs/nfs/internal.h
583
int nfs_show_stats(struct seq_file *, struct dentry *);
fs/nfs/internal.h
726
struct dentry *old_dentry, struct dentry *new_dentry,
fs/nfs/internal.h
728
extern int nfs_sillyrename(struct inode *dir, struct dentry *dentry);
fs/nfs/internal.h
770
static inline char *nfs_devname(struct dentry *dentry,
fs/nfs/internal.h
774
return nfs_path(&dummy, dentry, buffer, buflen, NFS_PATH_CANONICAL);
fs/nfs/namespace.c
101
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
114
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
120
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
124
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
150
struct nfs_server *server = NFS_SB(path->dentry->d_sb);
fs/nfs/namespace.c
152
unsigned long s_flags = path->dentry->d_sb->s_flags;
fs/nfs/namespace.c
156
if (IS_ROOT(path->dentry))
fs/nfs/namespace.c
162
fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry);
fs/nfs/namespace.c
167
ctx->clone_data.dentry = path->dentry;
fs/nfs/namespace.c
168
ctx->clone_data.sb = path->dentry->d_sb;
fs/nfs/namespace.c
229
if (NFS_FH(d_inode(path->dentry))->size != 0)
fs/nfs/namespace.c
232
generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(path->dentry),
fs/nfs/namespace.c
238
nfs_namespace_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/nfs/namespace.c
241
if (NFS_FH(d_inode(dentry))->size != 0)
fs/nfs/namespace.c
242
return nfs_setattr(idmap, dentry, attr);
fs/nfs/namespace.c
280
struct dentry *dentry = ctx->clone_data.dentry;
fs/nfs/namespace.c
302
p = nfs_devname(dentry, buffer, 4096);
fs/nfs/namespace.c
320
struct dentry *dentry = ctx->clone_data.dentry;
fs/nfs/namespace.c
321
struct dentry *parent = dget_parent(dentry);
fs/nfs/namespace.c
325
err = server->nfs_client->rpc_ops->lookup(d_inode(parent), dentry, &dentry->d_name,
fs/nfs/namespace.c
52
char *nfs_path(char **p, struct dentry *dentry_in, char *buffer,
fs/nfs/namespace.c
59
struct dentry *dentry;
fs/nfs/namespace.c
64
dentry = dentry_in;
fs/nfs/namespace.c
72
spin_lock(&dentry->d_lock);
fs/nfs/namespace.c
73
if (IS_ROOT(dentry))
fs/nfs/namespace.c
75
namelen = dentry->d_name.len;
fs/nfs/namespace.c
80
memcpy(end, dentry->d_name.name, namelen);
fs/nfs/namespace.c
82
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
83
dentry = dentry->d_parent;
fs/nfs/namespace.c
86
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
92
spin_unlock(&dentry->d_lock);
fs/nfs/namespace.c
99
base = dentry->d_fsdata;
fs/nfs/nfs3_fs.h
15
extern int nfs3_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/nfs/nfs3_fs.h
19
extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t);
fs/nfs/nfs3acl.c
257
int nfs3_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/nfs/nfs3acl.c
261
struct inode *inode = d_inode(dentry);
fs/nfs/nfs3acl.c
327
nfs3_listxattr(struct dentry *dentry, char *data, size_t size)
fs/nfs/nfs3acl.c
329
struct inode *inode = d_inode(dentry);
fs/nfs/nfs3proc.c
126
nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
fs/nfs/nfs3proc.c
129
struct inode *inode = d_inode(dentry);
fs/nfs/nfs3proc.c
195
nfs3_proc_lookup(struct inode *dir, struct dentry *dentry, const struct qstr *name,
fs/nfs/nfs3proc.c
201
if (nfs_lookup_is_soft_revalidate(dentry))
fs/nfs/nfs3proc.c
204
dprintk("NFS call lookup %pd2\n", dentry);
fs/nfs/nfs3proc.c
315
static struct dentry *
fs/nfs/nfs3proc.c
316
nfs3_do_create(struct inode *dir, struct dentry *dentry, struct nfs3_createdata *data)
fs/nfs/nfs3proc.c
325
return nfs_add_or_obtain(dentry, data->res.fh, data->res.fattr);
fs/nfs/nfs3proc.c
337
nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
fs/nfs/nfs3proc.c
342
struct dentry *d_alias;
fs/nfs/nfs3proc.c
345
dprintk("NFS call create %pd\n", dentry);
fs/nfs/nfs3proc.c
353
data->arg.create.name = dentry->d_name.name;
fs/nfs/nfs3proc.c
354
data->arg.create.len = dentry->d_name.len;
fs/nfs/nfs3proc.c
369
d_alias = nfs3_do_create(dir, dentry, data);
fs/nfs/nfs3proc.c
400
dentry = d_alias;
fs/nfs/nfs3proc.c
416
status = nfs3_proc_setattr(dentry, data->res.fattr, sattr);
fs/nfs/nfs3proc.c
417
nfs_post_op_update_inode(d_inode(dentry), data->res.fattr);
fs/nfs/nfs3proc.c
423
status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl);
fs/nfs/nfs3proc.c
437
nfs3_proc_remove(struct inode *dir, struct dentry *dentry)
fs/nfs/nfs3proc.c
441
.name = dentry->d_name,
fs/nfs/nfs3proc.c
451
dprintk("NFS call remove %pd2\n", dentry);
fs/nfs/nfs3proc.c
466
struct dentry *dentry,
fs/nfs/nfs3proc.c
490
struct dentry *old_dentry,
fs/nfs/nfs3proc.c
491
struct dentry *new_dentry,
fs/nfs/nfs3proc.c
551
nfs3_proc_symlink(struct inode *dir, struct dentry *dentry, struct folio *folio,
fs/nfs/nfs3proc.c
556
struct dentry *d_alias;
fs/nfs/nfs3proc.c
562
dprintk("NFS call symlink %pd\n", dentry);
fs/nfs/nfs3proc.c
569
data->arg.symlink.fromname = dentry->d_name.name;
fs/nfs/nfs3proc.c
570
data->arg.symlink.fromlen = dentry->d_name.len;
fs/nfs/nfs3proc.c
575
d_alias = nfs3_do_create(dir, dentry, data);
fs/nfs/nfs3proc.c
587
static struct dentry *
fs/nfs/nfs3proc.c
588
nfs3_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)
fs/nfs/nfs3proc.c
592
struct dentry *ret = ERR_PTR(-ENOMEM);
fs/nfs/nfs3proc.c
595
dprintk("NFS call mkdir %pd\n", dentry);
fs/nfs/nfs3proc.c
608
data->arg.mkdir.name = dentry->d_name.name;
fs/nfs/nfs3proc.c
609
data->arg.mkdir.len = dentry->d_name.len;
fs/nfs/nfs3proc.c
612
ret = nfs3_do_create(dir, dentry, data);
fs/nfs/nfs3proc.c
618
dentry = ret;
fs/nfs/nfs3proc.c
620
status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl);
fs/nfs/nfs3proc.c
676
struct inode *dir = d_inode(nr_arg->dentry);
fs/nfs/nfs3proc.c
721
nfs3_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
fs/nfs/nfs3proc.c
726
struct dentry *d_alias;
fs/nfs/nfs3proc.c
729
dprintk("NFS call mknod %pd %u:%u\n", dentry,
fs/nfs/nfs3proc.c
742
data->arg.mknod.name = dentry->d_name.name;
fs/nfs/nfs3proc.c
743
data->arg.mknod.len = dentry->d_name.len;
fs/nfs/nfs3proc.c
765
d_alias = nfs3_do_create(dir, dentry, data);
fs/nfs/nfs3proc.c
771
dentry = d_alias;
fs/nfs/nfs3proc.c
773
status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl);
fs/nfs/nfs4_fs.h
245
struct dentry *dir;
fs/nfs/nfs4_fs.h
246
struct dentry *dentry;
fs/nfs/nfs4_fs.h
285
int nfs_atomic_open(struct inode *, struct dentry *, struct file *,
fs/nfs/nfs4_fs.h
344
struct dentry *,
fs/nfs/nfs4file.c
102
d_drop(dentry);
fs/nfs/nfs4file.c
32
struct dentry *dentry = file_dentry(filp);
fs/nfs/nfs4file.c
33
struct dentry *parent = NULL;
fs/nfs/nfs4file.c
354
ctx = alloc_nfs_open_context(filep->f_path.dentry,
fs/nfs/nfs4file.c
48
dprintk("NFS: open file(%pd2)\n", dentry);
fs/nfs/nfs4file.c
57
parent = dget_parent(dentry);
fs/nfs/nfs4file.c
87
if (inode != d_inode(dentry))
fs/nfs/nfs4idmap.c
420
static void nfs_idmap_pipe_destroy(struct dentry *dir,
fs/nfs/nfs4idmap.c
428
static int nfs_idmap_pipe_create(struct dentry *dir,
fs/nfs/nfs4namespace.c
112
static char *nfs4_path(struct dentry *dentry, char *buffer, ssize_t buflen)
fs/nfs/nfs4namespace.c
115
char *path = nfs_path(&limit, dentry, buffer, buflen,
fs/nfs/nfs4namespace.c
129
static int nfs4_validate_fspath(struct dentry *dentry,
fs/nfs/nfs4namespace.c
143
path = nfs4_path(dentry, buf, 4096);
fs/nfs/nfs4namespace.c
377
dprintk("%s: referral at %pd2\n", __func__, ctx->clone_data.dentry);
fs/nfs/nfs4namespace.c
380
error = nfs4_validate_fspath(ctx->clone_data.dentry, locations, ctx);
fs/nfs/nfs4namespace.c
408
struct dentry *dentry, *parent;
fs/nfs/nfs4namespace.c
426
dentry = ctx->clone_data.dentry;
fs/nfs/nfs4namespace.c
427
parent = dget_parent(dentry);
fs/nfs/nfs4namespace.c
429
__func__, dentry);
fs/nfs/nfs4namespace.c
431
err = nfs4_proc_fs_locations(client, d_inode(parent), &dentry->d_name, fs_locations, page);
fs/nfs/nfs4namespace.c
454
struct dentry *dentry = ctx->clone_data.dentry;
fs/nfs/nfs4namespace.c
455
struct dentry *parent = dget_parent(dentry);
fs/nfs/nfs4namespace.c
461
client = nfs4_proc_lookup_mountpoint(dir, dentry, ctx->mntfh,
fs/nfs/nfs4proc.c
10533
static ssize_t nfs4_listxattr(struct dentry *dentry, char *list, size_t size)
fs/nfs/nfs4proc.c
10538
error = generic_listxattr(dentry, list, left);
fs/nfs/nfs4proc.c
10546
error2 = security_inode_listsecurity(d_inode(dentry), list, left);
fs/nfs/nfs4proc.c
10554
error3 = nfs4_listxattr_nfs4_user(d_inode(dentry), list, left);
fs/nfs/nfs4proc.c
113
nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
130
err = security_dentry_init_security(dentry, sattr->ia_mode,
fs/nfs/nfs4proc.c
131
&dentry->d_name, NULL, &shim);
fs/nfs/nfs4proc.c
1360
static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry,
fs/nfs/nfs4proc.c
1366
struct dentry *parent = dget_parent(dentry);
fs/nfs/nfs4proc.c
1389
nfs_sb_active(dentry->d_sb);
fs/nfs/nfs4proc.c
1390
p->dentry = dget(dentry);
fs/nfs/nfs4proc.c
1425
p->o_arg.name = &dentry->d_name;
fs/nfs/nfs4proc.c
1439
p->o_arg.fh = NFS_FH(d_inode(dentry));
fs/nfs/nfs4proc.c
1463
struct super_block *sb = p->dentry->d_sb;
fs/nfs/nfs4proc.c
1476
dput(p->dentry);
fs/nfs/nfs4proc.c
161
nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
2042
inode = d_inode(data->dentry);
fs/nfs/nfs4proc.c
2157
opendata = nfs4_opendata_alloc(ctx->dentry, state->owner, 0, 0,
fs/nfs/nfs4proc.c
2170
struct nfs_server *server = NFS_SB(opendata->dentry->d_sb);
fs/nfs/nfs4proc.c
2754
fh = NFS_FH(d_inode(data->dentry));
fs/nfs/nfs4proc.c
2781
d_drop(ctx->dentry);
fs/nfs/nfs4proc.c
3061
struct dentry *dentry;
fs/nfs/nfs4proc.c
3098
dentry = opendata->dentry;
fs/nfs/nfs4proc.c
3099
nfs_set_verifier(dentry, dir_verifier);
fs/nfs/nfs4proc.c
3100
if (d_really_is_negative(dentry)) {
fs/nfs/nfs4proc.c
3101
struct dentry *alias;
fs/nfs/nfs4proc.c
3102
d_drop(dentry);
fs/nfs/nfs4proc.c
3103
alias = d_splice_alias(igrab(state->inode), dentry);
fs/nfs/nfs4proc.c
3106
dput(ctx->dentry);
fs/nfs/nfs4proc.c
3108
ctx->dentry = dentry = alias;
fs/nfs/nfs4proc.c
3119
if (d_inode(dentry) == state->inode)
fs/nfs/nfs4proc.c
3146
struct dentry *dentry = ctx->dentry;
fs/nfs/nfs4proc.c
3165
if (d_really_is_positive(dentry))
fs/nfs/nfs4proc.c
3166
nfs4_return_incompatible_delegation(d_inode(dentry), fmode);
fs/nfs/nfs4proc.c
3168
if (d_really_is_positive(dentry))
fs/nfs/nfs4proc.c
3170
opendata = nfs4_opendata_alloc(dentry, sp, fmode, flags,
fs/nfs/nfs4proc.c
3183
if (d_really_is_positive(dentry))
fs/nfs/nfs4proc.c
3184
opendata->state = nfs4_get_open_state(d_inode(dentry), sp);
fs/nfs/nfs4proc.c
343
static void nfs4_setup_readdir(u64 cookie, __be32 *verifier, struct dentry *dentry,
fs/nfs/nfs4proc.c
380
p = xdr_encode_hyper(p, NFS_FILEID(d_inode(dentry)));
fs/nfs/nfs4proc.c
3833
label = nfs4_label_init_security(dir, ctx->dentry, attr, &l);
fs/nfs/nfs4proc.c
3847
struct dentry *dentry = ctx->dentry;
fs/nfs/nfs4proc.c
3850
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/nfs/nfs4proc.c
3851
nfs4_inode_set_return_delegation_on_close(d_inode(dentry));
fs/nfs/nfs4proc.c
393
spin_lock(&dentry->d_lock);
fs/nfs/nfs4proc.c
394
p = xdr_encode_hyper(p, NFS_FILEID(d_inode(dentry->d_parent)));
fs/nfs/nfs4proc.c
395
spin_unlock(&dentry->d_lock);
fs/nfs/nfs4proc.c
4519
nfs4_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
fs/nfs/nfs4proc.c
4522
struct inode *inode = d_inode(dentry);
fs/nfs/nfs4proc.c
4563
struct dentry *dentry, const struct qstr *name,
fs/nfs/nfs4proc.c
4589
if (nfs_lookup_is_soft_revalidate(dentry))
fs/nfs/nfs4proc.c
4596
dprintk("NFS call lookup %pd2\n", dentry);
fs/nfs/nfs4proc.c
4613
struct dentry *dentry, const struct qstr *name,
fs/nfs/nfs4proc.c
4622
err = _nfs4_proc_lookup(client, dir, dentry, name, fhandle, fattr);
fs/nfs/nfs4proc.c
4657
static int nfs4_proc_lookup(struct inode *dir, struct dentry *dentry, const struct qstr *name,
fs/nfs/nfs4proc.c
4663
status = nfs4_proc_lookup_common(&client, dir, dentry, name, fhandle, fattr);
fs/nfs/nfs4proc.c
4672
nfs4_proc_lookup_mountpoint(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
4678
status = nfs4_proc_lookup_common(&client, dir, dentry, &dentry->d_name,
fs/nfs/nfs4proc.c
4853
nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
fs/nfs/nfs4proc.c
4862
ctx = alloc_nfs_open_context(dentry, FMODE_READ, NULL);
fs/nfs/nfs4proc.c
4866
ilabel = nfs4_label_init_security(dir, dentry, sattr, &l);
fs/nfs/nfs4proc.c
4915
static int nfs4_proc_remove(struct inode *dir, struct dentry *dentry)
fs/nfs/nfs4proc.c
4920
struct inode *inode = d_inode(dentry);
fs/nfs/nfs4proc.c
4930
err = _nfs4_proc_remove(dir, &dentry->d_name, NF4REG);
fs/nfs/nfs4proc.c
4931
trace_nfs4_remove(dir, &dentry->d_name, err);
fs/nfs/nfs4proc.c
4955
struct dentry *dentry,
fs/nfs/nfs4proc.c
4960
struct nfs_server *server = NFS_SB(dentry->d_sb);
fs/nfs/nfs4proc.c
4968
nfs_request_directory_delegation(d_inode(dentry->d_parent));
fs/nfs/nfs4proc.c
4978
nfs4_setup_sequence(NFS_SB(data->dentry->d_sb)->nfs_client,
fs/nfs/nfs4proc.c
5002
struct dentry *old_dentry,
fs/nfs/nfs4proc.c
5003
struct dentry *new_dentry,
fs/nfs/nfs4proc.c
5162
static int nfs4_do_create(struct inode *dir, struct dentry *dentry, struct nfs4_createdata *data)
fs/nfs/nfs4proc.c
5172
status = nfs_instantiate(dentry, data->res.fh, data->res.fattr);
fs/nfs/nfs4proc.c
5177
static struct dentry *nfs4_do_mkdir(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5180
struct dentry *ret;
fs/nfs/nfs4proc.c
5195
ret = nfs_add_or_obtain(dentry, data->res.fh, data->res.fattr);
fs/nfs/nfs4proc.c
5208
static int _nfs4_proc_symlink(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5220
data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4LNK);
fs/nfs/nfs4proc.c
5229
status = nfs4_do_create(dir, dentry, data);
fs/nfs/nfs4proc.c
5236
static int nfs4_proc_symlink(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5245
label = nfs4_label_init_security(dir, dentry, sattr, &l);
fs/nfs/nfs4proc.c
5248
err = _nfs4_proc_symlink(dir, dentry, folio, len, sattr, label);
fs/nfs/nfs4proc.c
5249
trace_nfs4_symlink(dir, &dentry->d_name, err);
fs/nfs/nfs4proc.c
5258
static struct dentry *_nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5263
struct dentry *ret = NULL;
fs/nfs/nfs4proc.c
5266
data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4DIR);
fs/nfs/nfs4proc.c
5271
ret = nfs4_do_mkdir(dir, dentry, data, statusp);
fs/nfs/nfs4proc.c
5278
static struct dentry *nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5286
struct dentry *alias;
fs/nfs/nfs4proc.c
5289
label = nfs4_label_init_security(dir, dentry, sattr, &l);
fs/nfs/nfs4proc.c
5294
alias = _nfs4_proc_mkdir(dir, dentry, sattr, label, &err);
fs/nfs/nfs4proc.c
5295
trace_nfs4_mkdir(dir, &dentry->d_name, err);
fs/nfs/nfs4proc.c
5309
struct inode *dir = d_inode(nr_arg->dentry);
fs/nfs/nfs4proc.c
5328
nr_arg->dentry, (unsigned long long)nr_arg->cookie);
fs/nfs/nfs4proc.c
5334
nfs4_setup_readdir(nr_arg->cookie, nr_arg->verf, nr_arg->dentry, &args);
fs/nfs/nfs4proc.c
5358
trace_nfs4_readdir(d_inode(arg->dentry), err);
fs/nfs/nfs4proc.c
5359
err = nfs4_handle_exception(NFS_SERVER(d_inode(arg->dentry)),
fs/nfs/nfs4proc.c
5365
static int _nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5372
data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4SOCK);
fs/nfs/nfs4proc.c
5393
status = nfs4_do_create(dir, dentry, data);
fs/nfs/nfs4proc.c
5400
static int nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
fs/nfs/nfs4proc.c
5410
label = nfs4_label_init_security(dir, dentry, sattr, &l);
fs/nfs/nfs4proc.c
5415
err = _nfs4_proc_mknod(dir, dentry, sattr, label, rdev);
fs/nfs/nfs4proc.c
5416
trace_nfs4_mknod(dir, &dentry->d_name, err);
fs/nfs/nfs4proc.c
7345
renew_lease(NFS_SERVER(d_inode(data->ctx->dentry)),
fs/nfs/nfs4proc.c
7803
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7811
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7817
static bool nfs4_xattr_list_nfs4_acl(struct dentry *dentry)
fs/nfs/nfs4proc.c
7819
return nfs4_server_supports_acls(NFS_SB(dentry->d_sb), NFS4ACL_ACL);
fs/nfs/nfs4proc.c
7826
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7834
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7840
static bool nfs4_xattr_list_nfs4_dacl(struct dentry *dentry)
fs/nfs/nfs4proc.c
7842
return nfs4_server_supports_acls(NFS_SB(dentry->d_sb), NFS4ACL_DACL);
fs/nfs/nfs4proc.c
7849
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7857
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7863
static bool nfs4_xattr_list_nfs4_sacl(struct dentry *dentry)
fs/nfs/nfs4proc.c
7865
return nfs4_server_supports_acls(NFS_SB(dentry->d_sb), NFS4ACL_SACL);
fs/nfs/nfs4proc.c
7872
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7883
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7902
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4proc.c
7940
struct dentry *unused, struct inode *inode,
fs/nfs/nfs4state.c
1417
"error = %d\n", ctx->dentry, err);
fs/nfs/nfs4super.c
151
struct dentry *dentry;
fs/nfs/nfs4super.c
208
dentry = mount_subtree(root_mnt, export_path);
fs/nfs/nfs4super.c
211
if (IS_ERR(dentry))
fs/nfs/nfs4super.c
212
return PTR_ERR(dentry);
fs/nfs/nfs4super.c
214
fc->root = dentry;
fs/nfs/nfs4trace.h
1857
const struct inode *inode = d_inode(ctx->dentry);
fs/nfs/nfs4trace.h
568
__string(name, ctx->dentry->d_name.name)
fs/nfs/nfs4trace.h
582
__entry->dev = ctx->dentry->d_sb->s_dev;
fs/nfs/nfs4trace.h
606
__entry->dir = NFS_FILEID(d_inode(ctx->dentry->d_parent));
fs/nfs/nfstrace.h
416
const struct dentry *dentry,
fs/nfs/nfstrace.h
420
TP_ARGS(dir, dentry, flags),
fs/nfs/nfstrace.h
427
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
434
__entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry));
fs/nfs/nfstrace.h
453
const struct dentry *dentry, \
fs/nfs/nfstrace.h
456
TP_ARGS(dir, dentry, flags))
fs/nfs/nfstrace.h
461
const struct dentry *dentry,
fs/nfs/nfstrace.h
466
TP_ARGS(dir, dentry, flags, error),
fs/nfs/nfstrace.h
474
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
482
__entry->fileid = d_is_negative(dentry) ? 0 : NFS_FILEID(d_inode(dentry));
fs/nfs/nfstrace.h
502
const struct dentry *dentry, \
fs/nfs/nfstrace.h
506
TP_ARGS(dir, dentry, flags, error))
fs/nfs/nfstrace.h
530
__string(name, ctx->dentry->d_name.name)
fs/nfs/nfstrace.h
568
__string(name, ctx->dentry->d_name.name)
fs/nfs/nfstrace.h
596
const struct dentry *dentry,
fs/nfs/nfstrace.h
600
TP_ARGS(dir, dentry, flags),
fs/nfs/nfstrace.h
606
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
629
const struct dentry *dentry,
fs/nfs/nfstrace.h
634
TP_ARGS(dir, dentry, flags, error),
fs/nfs/nfstrace.h
641
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
666
const struct dentry *dentry
fs/nfs/nfstrace.h
669
TP_ARGS(dir, dentry),
fs/nfs/nfstrace.h
674
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
695
const struct dentry *dentry \
fs/nfs/nfstrace.h
697
TP_ARGS(dir, dentry))
fs/nfs/nfstrace.h
702
const struct dentry *dentry,
fs/nfs/nfstrace.h
706
TP_ARGS(dir, dentry, error),
fs/nfs/nfstrace.h
712
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
735
const struct dentry *dentry, \
fs/nfs/nfstrace.h
738
TP_ARGS(dir, dentry, error))
fs/nfs/nfstrace.h
757
const struct dentry *dentry
fs/nfs/nfstrace.h
760
TP_ARGS(inode, dir, dentry),
fs/nfs/nfstrace.h
766
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
790
const struct dentry *dentry,
fs/nfs/nfstrace.h
794
TP_ARGS(inode, dir, dentry, error),
fs/nfs/nfstrace.h
801
__string(name, dentry->d_name.name)
fs/nfs/nfstrace.h
826
const struct dentry *old_dentry,
fs/nfs/nfstrace.h
828
const struct dentry *new_dentry
fs/nfs/nfstrace.h
863
const struct dentry *old_dentry, \
fs/nfs/nfstrace.h
865
const struct dentry *new_dentry \
fs/nfs/nfstrace.h
872
const struct dentry *old_dentry,
fs/nfs/nfstrace.h
874
const struct dentry *new_dentry,
fs/nfs/nfstrace.h
914
const struct dentry *old_dentry, \
fs/nfs/nfstrace.h
916
const struct dentry *new_dentry, \
fs/nfs/nfstrace.h
943
struct inode *dir = d_inode(data->dentry->d_parent);
fs/nfs/pagelist.c
1086
flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry));
fs/nfs/pagelist.c
173
struct inode *inode = d_inode(l_ctx->open_context->dentry);
fs/nfs/pagelist.c
567
rpc_wake_up(&NFS_SERVER(d_inode(ctx->dentry))->uoc_rpcwaitq);
fs/nfs/pnfs.c
1119
struct dentry *parent_dir = dget_parent(ctx->dentry);
fs/nfs/pnfs.c
2427
struct inode *ino = data->dentry->d_inode;
fs/nfs/pnfs.c
2462
struct inode *ino = data->dentry->d_inode;
fs/nfs/proc.c
126
nfs_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
fs/nfs/proc.c
129
struct inode *inode = d_inode(dentry);
fs/nfs/proc.c
156
nfs_proc_lookup(struct inode *dir, struct dentry *dentry, const struct qstr *name,
fs/nfs/proc.c
177
if (nfs_lookup_is_soft_revalidate(dentry))
fs/nfs/proc.c
180
dprintk("NFS call lookup %pd2\n", dentry);
fs/nfs/proc.c
216
struct dentry *dentry, struct iattr *sattr)
fs/nfs/proc.c
224
data->arg.name = dentry->d_name.name;
fs/nfs/proc.c
225
data->arg.len = dentry->d_name.len;
fs/nfs/proc.c
241
nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
fs/nfs/proc.c
250
dprintk("NFS call create %pd\n", dentry);
fs/nfs/proc.c
251
data = nfs_alloc_createdata(dir, dentry, sattr);
fs/nfs/proc.c
259
status = nfs_instantiate(dentry, data->res.fh, data->res.fattr);
fs/nfs/proc.c
270
nfs_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
fs/nfs/proc.c
280
dprintk("NFS call mknod %pd\n", dentry);
fs/nfs/proc.c
291
data = nfs_alloc_createdata(dir, dentry, sattr);
fs/nfs/proc.c
306
status = nfs_instantiate(dentry, data->res.fh, data->res.fattr);
fs/nfs/proc.c
314
nfs_proc_remove(struct inode *dir, struct dentry *dentry)
fs/nfs/proc.c
318
.name = dentry->d_name,
fs/nfs/proc.c
326
dprintk("NFS call remove %pd2\n",dentry);
fs/nfs/proc.c
336
struct dentry *dentry,
fs/nfs/proc.c
355
struct dentry *old_dentry,
fs/nfs/proc.c
356
struct dentry *new_dentry,
fs/nfs/proc.c
400
nfs_proc_symlink(struct inode *dir, struct dentry *dentry, struct folio *folio,
fs/nfs/proc.c
408
.fromname = dentry->d_name.name,
fs/nfs/proc.c
409
.fromlen = dentry->d_name.len,
fs/nfs/proc.c
420
dprintk("NFS call symlink %pd\n", dentry);
fs/nfs/proc.c
440
status = nfs_instantiate(dentry, fh, fattr);
fs/nfs/proc.c
450
static struct dentry *
fs/nfs/proc.c
451
nfs_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)
fs/nfs/proc.c
457
struct dentry *alias = NULL;
fs/nfs/proc.c
460
dprintk("NFS call mkdir %pd\n", dentry);
fs/nfs/proc.c
461
data = nfs_alloc_createdata(dir, dentry, sattr);
fs/nfs/proc.c
470
alias = nfs_add_or_obtain(dentry, data->res.fh, data->res.fattr);
fs/nfs/proc.c
511
struct inode *dir = d_inode(nr_arg->dentry);
fs/nfs/super.c
246
int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/nfs/super.c
248
struct nfs_server *server = NFS_SB(dentry->d_sb);
fs/nfs/super.c
251
struct nfs_fh *fh = NFS_FH(d_inode(dentry));
fs/nfs/super.c
261
struct dentry *pd_dentry;
fs/nfs/super.c
263
pd_dentry = dget_parent(dentry);
fs/nfs/super.c
278
buf->f_frsize = dentry->d_sb->s_blocksize;
fs/nfs/super.c
287
buf->f_bsize = dentry->d_sb->s_blocksize;
fs/nfs/super.c
288
blockbits = dentry->d_sb->s_blocksize_bits;
fs/nfs/super.c
565
int nfs_show_options(struct seq_file *m, struct dentry *root)
fs/nfs/super.c
624
int nfs_show_devname(struct seq_file *m, struct dentry *root)
fs/nfs/super.c
641
int nfs_show_path(struct seq_file *m, struct dentry *dentry)
fs/nfs/super.c
651
int nfs_show_stats(struct seq_file *m, struct dentry *root)
fs/nfs/symlink.c
39
static const char *nfs_get_link(struct dentry *dentry,
fs/nfs/symlink.c
46
if (!dentry) {
fs/nfs/unlink.c
104
struct inode *dir = d_inode(data->dentry->d_parent);
fs/nfs/unlink.c
113
NFS_PROTO(dir)->unlink_setup(&msg, data->dentry, inode);
fs/nfs/unlink.c
121
static int nfs_call_unlink(struct dentry *dentry, struct inode *inode, struct nfs_unlinkdata *data)
fs/nfs/unlink.c
123
struct inode *dir = d_inode(dentry->d_parent);
fs/nfs/unlink.c
124
struct dentry *alias;
fs/nfs/unlink.c
127
alias = d_alloc_parallel(dentry->d_parent, &data->args.name, &data->wq);
fs/nfs/unlink.c
161
data->dentry = alias;
fs/nfs/unlink.c
172
nfs_async_unlink(struct dentry *dentry, const struct qstr *name)
fs/nfs/unlink.c
191
spin_lock(&dentry->d_lock);
fs/nfs/unlink.c
192
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/nfs/unlink.c
194
dentry->d_flags |= DCACHE_NFSFS_RENAMED;
fs/nfs/unlink.c
195
devname_garbage = dentry->d_fsdata;
fs/nfs/unlink.c
196
dentry->d_fsdata = data;
fs/nfs/unlink.c
197
spin_unlock(&dentry->d_lock);
fs/nfs/unlink.c
206
spin_unlock(&dentry->d_lock);
fs/nfs/unlink.c
225
nfs_complete_unlink(struct dentry *dentry, struct inode *inode)
fs/nfs/unlink.c
229
spin_lock(&dentry->d_lock);
fs/nfs/unlink.c
230
dentry->d_flags &= ~DCACHE_NFSFS_RENAMED;
fs/nfs/unlink.c
231
data = dentry->d_fsdata;
fs/nfs/unlink.c
232
dentry->d_fsdata = NULL;
fs/nfs/unlink.c
233
spin_unlock(&dentry->d_lock);
fs/nfs/unlink.c
237
if (NFS_STALE(inode) || !nfs_call_unlink(dentry, inode, data))
fs/nfs/unlink.c
243
nfs_cancel_async_unlink(struct dentry *dentry)
fs/nfs/unlink.c
245
spin_lock(&dentry->d_lock);
fs/nfs/unlink.c
246
if (dentry->d_flags & DCACHE_NFSFS_RENAMED) {
fs/nfs/unlink.c
247
struct nfs_unlinkdata *data = dentry->d_fsdata;
fs/nfs/unlink.c
249
dentry->d_flags &= ~DCACHE_NFSFS_RENAMED;
fs/nfs/unlink.c
250
dentry->d_fsdata = NULL;
fs/nfs/unlink.c
251
spin_unlock(&dentry->d_lock);
fs/nfs/unlink.c
255
spin_unlock(&dentry->d_lock);
fs/nfs/unlink.c
270
struct dentry *old_dentry = data->old_dentry;
fs/nfs/unlink.c
341
struct dentry *old_dentry, struct dentry *new_dentry,
fs/nfs/unlink.c
406
struct dentry *dentry = data->old_dentry;
fs/nfs/unlink.c
409
nfs_cancel_async_unlink(dentry);
fs/nfs/unlink.c
444
nfs_sillyrename(struct inode *dir, struct dentry *dentry)
fs/nfs/unlink.c
449
struct dentry *sdentry;
fs/nfs/unlink.c
450
struct inode *inode = d_inode(dentry);
fs/nfs/unlink.c
455
dentry, d_count(dentry));
fs/nfs/unlink.c
461
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
fs/nfs/unlink.c
464
fileid = NFS_FILEID(d_inode(dentry));
fs/nfs/unlink.c
476
dentry, silly);
fs/nfs/unlink.c
478
sdentry = lookup_noperm(&QSTR(silly), dentry->d_parent);
fs/nfs/unlink.c
49
struct inode *dir = d_inode(data->dentry->d_parent);
fs/nfs/unlink.c
492
error = nfs_async_unlink(dentry, &sdentry->d_name);
fs/nfs/unlink.c
497
task = nfs_async_rename(dir, dir, dentry, sdentry,
fs/nfs/unlink.c
501
nfs_cancel_async_unlink(dentry);
fs/nfs/unlink.c
512
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
fs/nfs/unlink.c
519
d_move(dentry, sdentry);
fs/nfs/unlink.c
524
d_drop(dentry);
fs/nfs/unlink.c
66
struct dentry *dentry = data->dentry;
fs/nfs/unlink.c
67
struct super_block *sb = dentry->d_sb;
fs/nfs/unlink.c
69
up_read_non_owner(&NFS_I(d_inode(dentry->d_parent))->rmdir_sem);
fs/nfs/unlink.c
70
d_lookup_done(dentry);
fs/nfs/unlink.c
72
dput(dentry);
fs/nfs/unlink.c
79
struct inode *dir = d_inode(data->dentry->d_parent);
fs/nfs/write.c
1703
inode = d_inode(ctx->dentry);
fs/nfs/write.c
1813
nfs_req_openctx(req)->dentry->d_sb->s_id,
fs/nfs/write.c
1814
(unsigned long long)NFS_FILEID(d_inode(nfs_req_openctx(req)->dentry)),
fs/nfs/write.c
886
struct inode *inode = d_inode(ctx->dentry);
fs/nfsd/acl.h
48
int nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry,
fs/nfsd/debugfs.c
7
static struct dentry *nfsd_top_dir __read_mostly;
fs/nfsd/export.c
1013
struct dentry *saved = dget(path->dentry);
fs/nfsd/export.c
1016
while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) {
fs/nfsd/export.c
1017
struct dentry *parent = dget_parent(path->dentry);
fs/nfsd/export.c
1018
dput(path->dentry);
fs/nfsd/export.c
1019
path->dentry = parent;
fs/nfsd/export.c
1022
dput(path->dentry);
fs/nfsd/export.c
1023
path->dentry = saved;
fs/nfsd/export.c
1052
inode = d_inode(path.dentry);
fs/nfsd/export.c
1055
name, path.dentry, clp->name,
fs/nfsd/export.c
1067
if (fh_compose(&fh, exp, path.dentry, NULL))
fs/nfsd/export.c
1310
struct dentry *saved = dget(path->dentry);
fs/nfsd/export.c
1313
while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) {
fs/nfsd/export.c
1314
struct dentry *parent = dget_parent(path->dentry);
fs/nfsd/export.c
1315
dput(path->dentry);
fs/nfsd/export.c
1316
path->dentry = parent;
fs/nfsd/export.c
1319
dput(path->dentry);
fs/nfsd/export.c
1320
path->dentry = saved;
fs/nfsd/export.c
1349
rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL);
fs/nfsd/export.c
419
struct inode *inode = d_inode(path->dentry);
fs/nfsd/export.c
776
return !strcmp(m->file->f_path.dentry->d_name.name, "export_stats");
fs/nfsd/export.c
925
hash ^= hash_ptr(exp->ex_path.dentry, EXPORT_HASHBITS);
fs/nfsd/netns.h
72
struct dentry *nfsd_client_dir;
fs/nfsd/nfs2acl.c
249
struct dentry *dentry = resp->fh.fh_dentry;
fs/nfsd/nfs2acl.c
255
if (dentry == NULL || d_really_is_negative(dentry))
fs/nfsd/nfs2acl.c
257
inode = d_inode(dentry);
fs/nfsd/nfs3acl.c
175
struct dentry *dentry = resp->fh.fh_dentry;
fs/nfsd/nfs3acl.c
182
inode = d_inode(dentry);
fs/nfsd/nfs3proc.c
257
struct dentry *parent, *child;
fs/nfsd/nfs3xdr.c
429
struct dentry *dentry = fhp->fh_dentry;
fs/nfsd/nfs3xdr.c
437
if (fhp->fh_no_wcc || !dentry || !d_really_is_positive(dentry))
fs/nfsd/nfs3xdr.c
444
lease_get_mtime(d_inode(dentry), &stat.mtime);
fs/nfsd/nfs3xdr.c
461
struct dentry *dentry = fhp->fh_dentry;
fs/nfsd/nfs3xdr.c
463
if (!dentry || !d_really_is_positive(dentry) || !fhp->fh_post_saved)
fs/nfsd/nfs3xdr.c
984
struct dentry *dparent, *dchild;
fs/nfsd/nfs3xdr.c
999
if (dparent == exp->ex_path.dentry)
fs/nfsd/nfs4acl.c
129
nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry,
fs/nfsd/nfs4acl.c
132
struct inode *inode = d_inode(dentry);
fs/nfsd/nfs4proc.c
1125
struct dentry *dentry;
fs/nfsd/nfs4proc.c
1133
&exp, &dentry);
fs/nfsd/nfs4proc.c
1136
if (d_really_is_negative(dentry)) {
fs/nfsd/nfs4proc.c
1141
dput(dentry);
fs/nfsd/nfs4proc.c
205
nfsd4_vfs_create(struct svc_fh *fhp, struct dentry **child,
fs/nfsd/nfs4proc.c
228
path.dentry = *child;
fs/nfsd/nfs4proc.c
231
*child = path.dentry;
fs/nfsd/nfs4proc.c
256
struct dentry *parent, *child;
fs/nfsd/nfs4proc.c
87
struct dentry *dentry = cstate->current_fh.fh_dentry;
fs/nfsd/nfs4proc.c
92
if ((bmval[0] & FATTR4_WORD0_ACL) && !IS_POSIXACL(d_inode(dentry)))
fs/nfsd/nfs4proc.c
96
!IS_POSIXACL(d_inode(dentry)))
fs/nfsd/nfs4recover.c
127
struct dentry *dir, *dentry;
fs/nfsd/nfs4recover.c
146
dir = nn->rec_file->f_path.dentry;
fs/nfsd/nfs4recover.c
148
dentry = start_creating(&nop_mnt_idmap, dir, &QSTR(dname));
fs/nfsd/nfs4recover.c
149
if (IS_ERR(dentry)) {
fs/nfsd/nfs4recover.c
150
status = PTR_ERR(dentry);
fs/nfsd/nfs4recover.c
153
if (d_really_is_positive(dentry))
fs/nfsd/nfs4recover.c
163
dentry = vfs_mkdir(&nop_mnt_idmap, d_inode(dir), dentry, 0700, NULL);
fs/nfsd/nfs4recover.c
164
if (IS_ERR(dentry))
fs/nfsd/nfs4recover.c
165
status = PTR_ERR(dentry);
fs/nfsd/nfs4recover.c
167
end_creating(dentry);
fs/nfsd/nfs4recover.c
184
typedef int (recdir_func)(struct dentry *, char *, struct nfsd_net *);
fs/nfsd/nfs4recover.c
1894
status = !d_is_dir(path.dentry);
fs/nfsd/nfs4recover.c
219
struct dentry *dir = nn->rec_file->f_path.dentry;
fs/nfsd/nfs4recover.c
259
struct dentry *dir, *dentry;
fs/nfsd/nfs4recover.c
264
dir = nn->rec_file->f_path.dentry;
fs/nfsd/nfs4recover.c
265
dentry = start_removing(&nop_mnt_idmap, dir, &QSTR(name));
fs/nfsd/nfs4recover.c
266
if (IS_ERR(dentry))
fs/nfsd/nfs4recover.c
267
return PTR_ERR(dentry);
fs/nfsd/nfs4recover.c
269
status = vfs_rmdir(&nop_mnt_idmap, d_inode(dir), dentry, NULL);
fs/nfsd/nfs4recover.c
270
end_removing(dentry);
fs/nfsd/nfs4recover.c
333
purge_old(struct dentry *parent, char *cname, struct nfsd_net *nn)
fs/nfsd/nfs4recover.c
336
struct dentry *child;
fs/nfsd/nfs4recover.c
396
load_recdir(struct dentry *parent, char *cname, struct nfsd_net *nn)
fs/nfsd/nfs4recover.c
566
if (d_is_dir(path.dentry)) {
fs/nfsd/nfs4recover.c
852
struct dentry *dir;
fs/nfsd/nfs4state.c
1251
ret = notify_change(&nop_mnt_idmap, f->f_path.dentry, &ia, NULL);
fs/nfsd/nfs4state.c
3283
struct dentry *dentries[ARRAY_SIZE(client_files)];
fs/nfsd/nfs4state.c
6004
struct dentry *child;
fs/nfsd/nfs4state.c
6230
path.dentry = file_dentry(nf->nf_file);
fs/nfsd/nfs4state.c
9294
static int cb_getattr_update_times(struct dentry *dentry, struct nfs4_delegation *dp)
fs/nfsd/nfs4state.c
9296
struct inode *inode = d_inode(dentry);
fs/nfsd/nfs4state.c
9325
ret = notify_change(&nop_mnt_idmap, dentry, &attrs, NULL);
fs/nfsd/nfs4state.c
9348
nfsd4_deleg_getattr_conflict(struct svc_rqst *rqstp, struct dentry *dentry,
fs/nfsd/nfs4state.c
9357
struct inode *inode = d_inode(dentry);
fs/nfsd/nfs4state.c
9417
err = cb_getattr_update_times(dentry, dp);
fs/nfsd/nfs4xdr.c
2843
struct dentry **components = NULL;
fs/nfsd/nfs4xdr.c
2856
if (cur.dentry == cur.mnt->mnt_root) {
fs/nfsd/nfs4xdr.c
2862
struct dentry **new;
fs/nfsd/nfs4xdr.c
2870
components[ncomponents++] = cur.dentry;
fs/nfsd/nfs4xdr.c
2871
cur.dentry = dget_parent(cur.dentry);
fs/nfsd/nfs4xdr.c
2878
struct dentry *dentry = components[ncomponents - 1];
fs/nfsd/nfs4xdr.c
2880
spin_lock(&dentry->d_lock);
fs/nfsd/nfs4xdr.c
2881
if (xdr_stream_encode_opaque(xdr, dentry->d_name.name,
fs/nfsd/nfs4xdr.c
2882
dentry->d_name.len) < 0) {
fs/nfsd/nfs4xdr.c
2883
spin_unlock(&dentry->d_lock);
fs/nfsd/nfs4xdr.c
2886
dprintk("/%pd", dentry);
fs/nfsd/nfs4xdr.c
2887
spin_unlock(&dentry->d_lock);
fs/nfsd/nfs4xdr.c
2888
dput(dentry);
fs/nfsd/nfs4xdr.c
3098
if (path.dentry != path.mnt->mnt_root)
fs/nfsd/nfs4xdr.c
3145
struct dentry *dentry;
fs/nfsd/nfs4xdr.c
3197
if (!IS_POSIXACL(d_inode(args->dentry)))
fs/nfsd/nfs4xdr.c
3330
if (IS_POSIXACL(d_inode(args->dentry)))
fs/nfsd/nfs4xdr.c
3513
const struct inode *inode = d_inode(args->dentry);
fs/nfsd/nfs4xdr.c
3539
args->dentry == args->exp->ex_path.mnt->mnt_root) {
fs/nfsd/nfs4xdr.c
3602
if (!IS_POSIXACL(d_inode(args->dentry)))
fs/nfsd/nfs4xdr.c
3626
struct inode *inode = d_inode(args->dentry);
fs/nfsd/nfs4xdr.c
3642
int err = xattr_supports_user_prefix(d_inode(args->dentry));
fs/nfsd/nfs4xdr.c
3704
if (IS_POSIXACL(d_inode(args->dentry)))
fs/nfsd/nfs4xdr.c
3861
struct dentry *dentry, const u32 *bmval,
fs/nfsd/nfs4xdr.c
3877
.dentry = dentry,
fs/nfsd/nfs4xdr.c
3886
args.dentry = dentry;
fs/nfsd/nfs4xdr.c
3916
status = nfsd4_deleg_getattr_conflict(rqstp, dentry, &dp);
fs/nfsd/nfs4xdr.c
3964
status = fh_compose(tempfh, exp, dentry, NULL);
fs/nfsd/nfs4xdr.c
3972
err = nfsd4_get_nfs4_acl(rqstp, dentry, &args.acl);
fs/nfsd/nfs4xdr.c
3988
err = security_inode_getsecctx(d_inode(dentry),
fs/nfsd/nfs4xdr.c
4004
struct inode *inode = d_inode(dentry);
fs/nfsd/nfs4xdr.c
4027
struct inode *inode = d_inode(dentry);
fs/nfsd/nfs4xdr.c
4117
struct dentry *dentry, u32 *bmval,
fs/nfsd/nfs4xdr.c
4125
ret = nfsd4_encode_fattr4(rqstp, &xdr, fhp, exp, dentry, bmval,
fs/nfsd/nfs4xdr.c
4161
struct dentry *dentry;
fs/nfsd/nfs4xdr.c
4165
dentry = lookup_one_positive_unlocked(&nop_mnt_idmap,
fs/nfsd/nfs4xdr.c
4168
if (IS_ERR(dentry))
fs/nfsd/nfs4xdr.c
4169
return nfserrno(PTR_ERR(dentry));
fs/nfsd/nfs4xdr.c
4179
if (nfsd_mountpoint(dentry, exp)) {
fs/nfsd/nfs4xdr.c
4192
err = nfsd_cross_mnt(cd->rd_rqstp, &dentry, &exp);
fs/nfsd/nfs4xdr.c
4203
nfserr = nfsd4_encode_fattr4(cd->rd_rqstp, cd->xdr, NULL, exp, dentry,
fs/nfsd/nfs4xdr.c
4206
dput(dentry);
fs/nfsd/nfsctl.c
1135
static struct dentry *nfsd_mkdir(struct dentry *parent, struct nfsdfs_client *ncl, char *name)
fs/nfsd/nfsctl.c
1138
struct dentry *dentry;
fs/nfsd/nfsctl.c
1145
dentry = simple_start_creating(parent, name);
fs/nfsd/nfsctl.c
1146
if (IS_ERR(dentry)) {
fs/nfsd/nfsctl.c
1148
return dentry;
fs/nfsd/nfsctl.c
1157
d_make_persistent(dentry, inode);
fs/nfsd/nfsctl.c
1159
fsnotify_mkdir(dir, dentry);
fs/nfsd/nfsctl.c
1160
simple_done_creating(dentry);
fs/nfsd/nfsctl.c
1161
return dentry; // borrowed
fs/nfsd/nfsctl.c
1169
static void _nfsd_symlink(struct dentry *parent, const char *name,
fs/nfsd/nfsctl.c
1174
struct dentry *dentry;
fs/nfsd/nfsctl.c
1180
dentry = simple_start_creating(parent, name);
fs/nfsd/nfsctl.c
1181
if (IS_ERR(dentry)) {
fs/nfsd/nfsctl.c
1190
d_make_persistent(dentry, inode);
fs/nfsd/nfsctl.c
1191
fsnotify_create(dir, dentry);
fs/nfsd/nfsctl.c
1192
simple_done_creating(dentry);
fs/nfsd/nfsctl.c
1195
static inline void _nfsd_symlink(struct dentry *parent, const char *name,
fs/nfsd/nfsctl.c
1202
static void clear_ncl(struct dentry *dentry)
fs/nfsd/nfsctl.c
1204
struct inode *inode = d_inode(dentry);
fs/nfsd/nfsctl.c
1227
static int nfsdfs_create_files(struct dentry *root,
fs/nfsd/nfsctl.c
1230
struct dentry **fdentries)
fs/nfsd/nfsctl.c
1233
struct dentry *dentry;
fs/nfsd/nfsctl.c
1240
dentry = simple_start_creating(root, files->name);
fs/nfsd/nfsctl.c
1241
if (IS_ERR(dentry)) {
fs/nfsd/nfsctl.c
1243
return PTR_ERR(dentry);
fs/nfsd/nfsctl.c
1248
d_make_persistent(dentry, inode);
fs/nfsd/nfsctl.c
1249
fsnotify_create(dir, dentry);
fs/nfsd/nfsctl.c
1251
fdentries[i] = dentry; // borrowed
fs/nfsd/nfsctl.c
1252
simple_done_creating(dentry);
fs/nfsd/nfsctl.c
1258
struct dentry *nfsd_client_mkdir(struct nfsd_net *nn,
fs/nfsd/nfsctl.c
1261
struct dentry **fdentries)
fs/nfsd/nfsctl.c
1263
struct dentry *dentry;
fs/nfsd/nfsctl.c
1269
dentry = nfsd_mkdir(nn->nfsd_client_dir, ncl, name);
fs/nfsd/nfsctl.c
1270
if (IS_ERR(dentry)) /* XXX: tossing errors? */
fs/nfsd/nfsctl.c
1272
ret = nfsdfs_create_files(dentry, files, ncl, fdentries);
fs/nfsd/nfsctl.c
1274
nfsd_client_rmdir(dentry);
fs/nfsd/nfsctl.c
1277
return dentry;
fs/nfsd/nfsctl.c
1281
void nfsd_client_rmdir(struct dentry *dentry)
fs/nfsd/nfsctl.c
1283
simple_recursive_removal(dentry, clear_ncl);
fs/nfsd/nfsctl.c
1290
struct dentry *dentry;
fs/nfsd/nfsctl.c
1329
dentry = nfsd_mkdir(sb->s_root, NULL, "clients");
fs/nfsd/nfsctl.c
1330
if (IS_ERR(dentry))
fs/nfsd/nfsctl.c
1331
return PTR_ERR(dentry);
fs/nfsd/nfsctl.c
1332
nn->nfsd_client_dir = dentry;
fs/nfsd/nfsctl.c
298
nfsd4_cancel_copy_by_sb(netns(file), path.dentry->d_sb);
fs/nfsd/nfsctl.c
299
error = nlmsvc_unlock_all_by_sb(path.dentry->d_sb);
fs/nfsd/nfsctl.c
303
nfsd4_revoke_states(nn, path.dentry->d_sb);
fs/nfsd/nfsctl.c
924
struct dentry *dentry = file_dentry(file);
fs/nfsd/nfsctl.c
934
trace_nfsd_ctl_time(netns(file), dentry->d_name.name,
fs/nfsd/nfsctl.c
935
dentry->d_name.len, i);
fs/nfsd/nfsd.h
116
struct dentry *nfsd_client_mkdir(struct nfsd_net *nn,
fs/nfsd/nfsd.h
119
struct dentry **fdentries);
fs/nfsd/nfsd.h
120
void nfsd_client_rmdir(struct dentry *dentry);
fs/nfsd/nfsd.h
580
extern int nfsd4_is_junction(struct dentry *dentry);
fs/nfsd/nfsd.h
590
static inline int nfsd4_is_junction(struct dentry *dentry)
fs/nfsd/nfsfh.c
118
static inline __be32 check_pseudo_root(struct dentry *dentry,
fs/nfsd/nfsfh.c
127
if (unlikely(!d_is_dir(dentry) &&
fs/nfsd/nfsfh.c
128
!d_is_symlink(dentry)))
fs/nfsd/nfsfh.c
135
if (unlikely(dentry != exp->ex_path.dentry))
fs/nfsd/nfsfh.c
154
struct dentry *dentry;
fs/nfsd/nfsfh.c
241
dentry = dget(exp->ex_path.dentry);
fs/nfsd/nfsfh.c
243
dentry = exportfs_decode_fh_raw(exp->ex_path.mnt, fid,
fs/nfsd/nfsfh.c
246
if (IS_ERR_OR_NULL(dentry)) {
fs/nfsd/nfsfh.c
248
dentry ? PTR_ERR(dentry) : -ESTALE);
fs/nfsd/nfsfh.c
249
switch (PTR_ERR(dentry)) {
fs/nfsd/nfsfh.c
254
dentry = ERR_PTR(-ESTALE);
fs/nfsd/nfsfh.c
258
if (dentry == NULL)
fs/nfsd/nfsfh.c
260
if (IS_ERR(dentry)) {
fs/nfsd/nfsfh.c
261
if (PTR_ERR(dentry) != -EINVAL)
fs/nfsd/nfsfh.c
262
error = nfserrno(PTR_ERR(dentry));
fs/nfsd/nfsfh.c
266
if (d_is_dir(dentry) &&
fs/nfsd/nfsfh.c
267
(dentry->d_flags & DCACHE_DISCONNECTED)) {
fs/nfsd/nfsfh.c
269
dentry);
fs/nfsd/nfsfh.c
274
if (dentry->d_sb->s_export_op->flags & EXPORT_OP_NOATOMIC_ATTR)
fs/nfsd/nfsfh.c
279
if (dentry->d_sb->s_export_op->flags & EXPORT_OP_NOWCC)
fs/nfsd/nfsfh.c
28
static int nfsd_acceptable(void *expv, struct dentry *dentry)
fs/nfsd/nfsfh.c
293
fhp->fh_dentry = dentry;
fs/nfsd/nfsfh.c
32
struct dentry *tdentry;
fs/nfsd/nfsfh.c
325
struct dentry *dentry;
fs/nfsd/nfsfh.c
33
struct dentry *parent;
fs/nfsd/nfsfh.c
334
dentry = fhp->fh_dentry;
fs/nfsd/nfsfh.c
355
error = check_pseudo_root(dentry, exp);
fs/nfsd/nfsfh.c
363
error = nfsd_mode_check(dentry, type);
fs/nfsd/nfsfh.c
38
tdentry = dget(dentry);
fs/nfsd/nfsfh.c
39
while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) {
fs/nfsd/nfsfh.c
399
&& exp->ex_path.dentry == dentry)
fs/nfsd/nfsfh.c
410
error = nfsd_permission(cred, exp, dentry, access);
fs/nfsd/nfsfh.c
484
struct dentry *dentry)
fs/nfsd/nfsfh.c
486
if (dentry != exp->ex_path.dentry) {
fs/nfsd/nfsfh.c
493
exportfs_encode_fh(dentry, fid, &maxsize, fh_flags);
fs/nfsd/nfsfh.c
505
return exp->ex_path.dentry == exp->ex_path.dentry->d_sb->s_root;
fs/nfsd/nfsfh.c
510
return exp->ex_path.dentry->d_sb;
fs/nfsd/nfsfh.c
52
if (tdentry != exp->ex_path.dentry)
fs/nfsd/nfsfh.c
54
rv = (tdentry == exp->ex_path.dentry);
fs/nfsd/nfsfh.c
593
fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry,
fs/nfsd/nfsfh.c
601
struct inode * inode = d_inode(dentry);
fs/nfsd/nfsfh.c
606
(long) d_inode(exp->ex_path.dentry)->i_ino,
fs/nfsd/nfsfh.c
607
dentry,
fs/nfsd/nfsfh.c
624
dentry);
fs/nfsd/nfsfh.c
629
dentry);
fs/nfsd/nfsfh.c
631
fhp->fh_dentry = dget(dentry); /* our internal copy */
fs/nfsd/nfsfh.c
641
d_inode(exp->ex_path.dentry)->i_ino,
fs/nfsd/nfsfh.c
645
_fh_update(fhp, exp, dentry);
fs/nfsd/nfsfh.c
65
nfsd_mode_check(struct dentry *dentry, umode_t requested)
fs/nfsd/nfsfh.c
661
struct dentry *dentry;
fs/nfsd/nfsfh.c
666
dentry = fhp->fh_dentry;
fs/nfsd/nfsfh.c
667
if (d_really_is_negative(dentry))
fs/nfsd/nfsfh.c
67
umode_t mode = d_inode(dentry)->i_mode & S_IFMT;
fs/nfsd/nfsfh.c
672
_fh_update(fhp, fhp->fh_export, dentry);
fs/nfsd/nfsfh.c
681
dentry);
fs/nfsd/nfsfh.c
697
.dentry = fhp->fh_dentry,
fs/nfsd/nfsfh.c
699
struct inode *inode = d_inode(p.dentry);
fs/nfsd/nfsfh.c
72
if (mode == S_IFDIR && !d_can_lookup(dentry)) {
fs/nfsd/nfsfh.c
796
struct dentry * dentry = fhp->fh_dentry;
fs/nfsd/nfsfh.c
798
if (dentry) {
fs/nfsd/nfsfh.c
800
dput(dentry);
fs/nfsd/nfsfh.h
226
__be32 fh_compose(struct svc_fh *, struct svc_export *, struct dentry *, struct svc_fh *);
fs/nfsd/nfsfh.h
84
struct dentry * fh_dentry; /* validated dentry */
fs/nfsd/nfsproc.c
288
struct dentry *dchild;
fs/nfsd/nfsxdr.c
218
struct dentry *dentry = fhp->fh_dentry;
fs/nfsd/nfsxdr.c
264
lease_get_mtime(d_inode(dentry), &time);
fs/nfsd/state.h
512
struct dentry *cl_nfsd_dentry;
fs/nfsd/state.h
516
struct dentry *cl_nfsd_info_dentry;
fs/nfsd/state.h
881
struct dentry *dentry, struct nfs4_delegation **pdp);
fs/nfsd/trace.h
432
__string(path, key->ex_path.dentry->d_name.name)
fs/nfsd/trace.h
452
__string(path, key->ex_path.dentry->d_name.name)
fs/nfsd/vfs.c
125
nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
fs/nfsd/vfs.c
129
struct dentry *dentry = *dpp;
fs/nfsd/vfs.c
131
.dentry = dget(dentry)};
fs/nfsd/vfs.c
141
if (path.mnt == exp->ex_path.mnt && path.dentry == dentry &&
fs/nfsd/vfs.c
142
nfsd_mountpoint(dentry, exp) == 2) {
fs/nfsd/vfs.c
172
*dpp = path.dentry;
fs/nfsd/vfs.c
173
path.dentry = dentry;
fs/nfsd/vfs.c
1784
struct dentry *dentry, *dchild;
fs/nfsd/vfs.c
1790
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
1791
dirp = d_inode(dentry);
fs/nfsd/vfs.c
1794
err = nfsd_permission(&rqstp->rq_cred, fhp->fh_export, dentry,
fs/nfsd/vfs.c
185
struct dentry *dp;
fs/nfsd/vfs.c
1864
struct dentry *dentry, *dchild = NULL;
fs/nfsd/vfs.c
187
while (path->dentry == path->mnt->mnt_root && follow_up(path))
fs/nfsd/vfs.c
1877
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
1883
dchild = start_creating(&nop_mnt_idmap, dentry, &QSTR_LEN(fname, flen));
fs/nfsd/vfs.c
189
dp = dget_parent(path->dentry);
fs/nfsd/vfs.c
190
dput(path->dentry);
fs/nfsd/vfs.c
191
path->dentry = dp;
fs/nfsd/vfs.c
1923
path.dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
1925
if (unlikely(!d_is_symlink(path.dentry)))
fs/nfsd/vfs.c
1930
link = vfs_get_link(path.dentry, &done);
fs/nfsd/vfs.c
194
static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **dentryp)
fs/nfsd/vfs.c
1962
struct dentry *dentry, *dnew;
fs/nfsd/vfs.c
198
.dentry = dget(dparent)};
fs/nfsd/vfs.c
1985
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
1986
dnew = start_creating(&nop_mnt_idmap, dentry, &QSTR_LEN(fname, flen));
fs/nfsd/vfs.c
1994
host_err = vfs_symlink(&nop_mnt_idmap, d_inode(dentry), dnew, path, NULL);
fs/nfsd/vfs.c
2028
struct dentry *ddir, *dnew, *dold;
fs/nfsd/vfs.c
209
*dentryp = dget(path.dentry);
fs/nfsd/vfs.c
2102
nfsd_close_cached_files(struct dentry *dentry)
fs/nfsd/vfs.c
2104
struct inode *inode = d_inode(dentry);
fs/nfsd/vfs.c
2111
nfsd_has_cached_files(struct dentry *dentry)
fs/nfsd/vfs.c
2114
struct inode *inode = d_inode(dentry);
fs/nfsd/vfs.c
2139
struct dentry *fdentry, *tdentry;
fs/nfsd/vfs.c
2144
struct dentry *close_cached;
fs/nfsd/vfs.c
2166
if (ffhp->fh_export->ex_path.dentry != tfhp->fh_export->ex_path.dentry)
fs/nfsd/vfs.c
225
int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp)
fs/nfsd/vfs.c
227
if (!d_inode(dentry))
fs/nfsd/vfs.c
2273
struct dentry *dentry, *rdentry;
fs/nfsd/vfs.c
2292
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
2293
dirp = d_inode(dentry);
fs/nfsd/vfs.c
2295
rdentry = start_removing(&nop_mnt_idmap, dentry, &QSTR_LEN(fname, flen));
fs/nfsd/vfs.c
231
if (nfsd4_is_junction(dentry))
fs/nfsd/vfs.c
233
if (d_managed(dentry))
fs/nfsd/vfs.c
245
struct svc_export **exp_ret, struct dentry **dentry_ret)
fs/nfsd/vfs.c
248
struct dentry *dparent;
fs/nfsd/vfs.c
249
struct dentry *dentry;
fs/nfsd/vfs.c
2569
.dentry = fhp->fh_dentry,
fs/nfsd/vfs.c
260
dentry = dget(dparent);
fs/nfsd/vfs.c
261
else if (dparent != exp->ex_path.dentry)
fs/nfsd/vfs.c
262
dentry = dget_parent(dparent);
fs/nfsd/vfs.c
2631
struct dentry *dentry;
fs/nfsd/vfs.c
2638
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
2639
inode = d_inode(dentry);
fs/nfsd/vfs.c
264
dentry = dget(dparent); /* .. == . just like at / */
fs/nfsd/vfs.c
2643
len = vfs_getxattr(&nop_mnt_idmap, dentry, name, NULL, 0);
fs/nfsd/vfs.c
267
host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry);
fs/nfsd/vfs.c
2670
len = vfs_getxattr(&nop_mnt_idmap, dentry, name, buf, len);
fs/nfsd/vfs.c
2704
struct dentry *dentry;
fs/nfsd/vfs.c
2710
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
2711
inode = d_inode(dentry);
fs/nfsd/vfs.c
2716
len = vfs_listxattr(dentry, NULL, 0);
fs/nfsd/vfs.c
272
dentry = lookup_one_unlocked(&nop_mnt_idmap,
fs/nfsd/vfs.c
2733
len = vfs_listxattr(dentry, buf, len);
fs/nfsd/vfs.c
274
host_err = PTR_ERR(dentry);
fs/nfsd/vfs.c
275
if (IS_ERR(dentry))
fs/nfsd/vfs.c
277
if (nfsd_mountpoint(dentry, exp)) {
fs/nfsd/vfs.c
278
host_err = nfsd_cross_mnt(rqstp, &dentry, &exp);
fs/nfsd/vfs.c
280
dput(dentry);
fs/nfsd/vfs.c
2824
struct dentry *dentry, int acc)
fs/nfsd/vfs.c
2826
struct inode *inode = d_inode(dentry);
fs/nfsd/vfs.c
285
*dentry_ret = dentry;
fs/nfsd/vfs.c
319
struct dentry *dentry;
fs/nfsd/vfs.c
325
err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry);
fs/nfsd/vfs.c
335
err = fh_compose(resfh, exp, dentry, fhp);
fs/nfsd/vfs.c
336
if (!err && d_really_is_negative(dentry))
fs/nfsd/vfs.c
339
dput(dentry);
fs/nfsd/vfs.c
438
static int __nfsd_setattr(struct dentry *dentry, struct iattr *iap)
fs/nfsd/vfs.c
458
host_err = notify_change(&nop_mnt_idmap, dentry, &size_attr, NULL);
fs/nfsd/vfs.c
484
return notify_change(&nop_mnt_idmap, dentry, iap, NULL);
fs/nfsd/vfs.c
505
struct dentry *dentry;
fs/nfsd/vfs.c
549
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
550
inode = d_inode(dentry);
fs/nfsd/vfs.c
590
host_err = __nfsd_setattr(dentry, &attrs);
fs/nfsd/vfs.c
597
attr->na_labelerr = security_inode_setsecctx(dentry,
fs/nfsd/vfs.c
605
dentry, ACL_TYPE_DEFAULT,
fs/nfsd/vfs.c
609
dentry, ACL_TYPE_DEFAULT,
fs/nfsd/vfs.c
623
dentry, ACL_TYPE_ACCESS,
fs/nfsd/vfs.c
661
int nfsd4_is_junction(struct dentry *dentry)
fs/nfsd/vfs.c
663
struct inode *inode = d_inode(dentry);
fs/nfsd/vfs.c
671
if (vfs_getxattr(&nop_mnt_idmap, dentry, NFSD_JUNCTION_XATTR_NAME,
fs/nfsd/vfs.c
827
struct dentry *dentry;
fs/nfsd/vfs.c
836
dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
838
if (d_is_reg(dentry))
fs/nfsd/vfs.c
840
else if (d_is_dir(dentry))
fs/nfsd/vfs.c
854
dentry, map->how);
fs/nfsd/vfs.c
907
path.dentry = fhp->fh_dentry;
fs/nfsd/vfs.c
908
inode = d_inode(path.dentry);
fs/nfsd/vfs.h
161
struct dentry *dentry, int acc);
fs/nfsd/vfs.h
76
int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
fs/nfsd/vfs.h
82
struct svc_export **, struct dentry **);
fs/nfsd/vfs.h
85
int nfsd_mountpoint(struct dentry *, struct svc_export *);
fs/nfsd/xdr4.h
956
struct dentry *dentry,
fs/nilfs2/dir.c
428
int nilfs_add_link(struct dentry *dentry, struct inode *inode)
fs/nilfs2/dir.c
430
struct inode *dir = d_inode(dentry->d_parent);
fs/nilfs2/dir.c
431
const unsigned char *name = dentry->d_name.name;
fs/nilfs2/dir.c
432
int namelen = dentry->d_name.len;
fs/nilfs2/inode.c
909
int nilfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/nilfs2/inode.c
913
struct inode *inode = d_inode(dentry);
fs/nilfs2/inode.c
917
err = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/nilfs2/ioctl.c
121
int nilfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/nilfs2/ioctl.c
123
struct inode *inode = d_inode(dentry);
fs/nilfs2/ioctl.c
139
struct dentry *dentry, struct file_kattr *fa)
fs/nilfs2/ioctl.c
141
struct inode *inode = d_inode(dentry);
fs/nilfs2/namei.c
105
err = nilfs_add_nondir(dentry, inode);
fs/nilfs2/namei.c
117
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/nilfs2/namei.c
131
err = nilfs_add_nondir(dentry, inode);
fs/nilfs2/namei.c
142
struct dentry *dentry, const char *symname)
fs/nilfs2/namei.c
176
err = nilfs_add_nondir(dentry, inode);
fs/nilfs2/namei.c
193
static int nilfs_link(struct dentry *old_dentry, struct inode *dir,
fs/nilfs2/namei.c
194
struct dentry *dentry)
fs/nilfs2/namei.c
208
err = nilfs_add_link(dentry, inode);
fs/nilfs2/namei.c
210
d_instantiate(dentry, inode);
fs/nilfs2/namei.c
221
static struct dentry *nilfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/nilfs2/namei.c
222
struct dentry *dentry, umode_t mode)
fs/nilfs2/namei.c
249
err = nilfs_add_link(dentry, inode);
fs/nilfs2/namei.c
254
d_instantiate_new(dentry, inode);
fs/nilfs2/namei.c
275
static int nilfs_do_unlink(struct inode *dir, struct dentry *dentry)
fs/nilfs2/namei.c
282
de = nilfs_find_entry(dir, &dentry->d_name, &folio);
fs/nilfs2/namei.c
288
inode = d_inode(dentry);
fs/nilfs2/namei.c
311
static int nilfs_unlink(struct inode *dir, struct dentry *dentry)
fs/nilfs2/namei.c
320
err = nilfs_do_unlink(dir, dentry);
fs/nilfs2/namei.c
324
nilfs_mark_inode_dirty(d_inode(dentry));
fs/nilfs2/namei.c
332
static int nilfs_rmdir(struct inode *dir, struct dentry *dentry)
fs/nilfs2/namei.c
334
struct inode *inode = d_inode(dentry);
fs/nilfs2/namei.c
344
err = nilfs_do_unlink(dir, dentry);
fs/nilfs2/namei.c
35
static inline int nilfs_add_nondir(struct dentry *dentry, struct inode *inode)
fs/nilfs2/namei.c
362
struct inode *old_dir, struct dentry *old_dentry,
fs/nilfs2/namei.c
363
struct inode *new_dir, struct dentry *new_dentry,
fs/nilfs2/namei.c
37
int err = nilfs_add_link(dentry, inode);
fs/nilfs2/namei.c
40
d_instantiate_new(dentry, inode);
fs/nilfs2/namei.c
464
static struct dentry *nilfs_get_parent(struct dentry *child)
fs/nilfs2/namei.c
479
static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno,
fs/nilfs2/namei.c
504
static struct dentry *nilfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
fs/nilfs2/namei.c
517
static struct dentry *nilfs_fh_to_parent(struct super_block *sb, struct fid *fh,
fs/nilfs2/namei.c
53
static struct dentry *
fs/nilfs2/namei.c
54
nilfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/nilfs2/namei.c
60
if (dentry->d_name.len > NILFS_NAME_LEN)
fs/nilfs2/namei.c
63
res = nilfs_inode_by_name(dir, &dentry->d_name, &ino);
fs/nilfs2/namei.c
77
return d_splice_alias(inode, dentry);
fs/nilfs2/namei.c
89
struct dentry *dentry, umode_t mode, bool excl)
fs/nilfs2/nilfs.h
257
int nilfs_add_link(struct dentry *, struct inode *);
fs/nilfs2/nilfs.h
272
int nilfs_fileattr_get(struct dentry *dentry, struct file_kattr *m);
fs/nilfs2/nilfs.h
274
struct dentry *dentry, struct file_kattr *fa);
fs/nilfs2/nilfs.h
303
extern int nilfs_setattr(struct mnt_idmap *, struct dentry *,
fs/nilfs2/super.c
1009
struct dentry *dentry;
fs/nilfs2/super.c
1023
dentry = d_find_alias(inode);
fs/nilfs2/super.c
1024
if (dentry) {
fs/nilfs2/super.c
1025
ret = nilfs_tree_is_busy(dentry);
fs/nilfs2/super.c
1026
dput(dentry);
fs/nilfs2/super.c
1262
struct dentry *root_dentry;
fs/nilfs2/super.c
614
static int nilfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/nilfs2/super.c
616
struct super_block *sb = dentry->d_sb;
fs/nilfs2/super.c
617
struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
fs/nilfs2/super.c
681
static int nilfs_show_options(struct seq_file *seq, struct dentry *dentry)
fs/nilfs2/super.c
683
struct super_block *sb = dentry->d_sb;
fs/nilfs2/super.c
685
struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
fs/nilfs2/super.c
909
struct dentry **root_dentry)
fs/nilfs2/super.c
912
struct dentry *dentry;
fs/nilfs2/super.c
929
dentry = d_find_alias(inode);
fs/nilfs2/super.c
930
if (!dentry) {
fs/nilfs2/super.c
931
dentry = d_make_root(inode);
fs/nilfs2/super.c
932
if (!dentry) {
fs/nilfs2/super.c
940
dentry = d_obtain_root(inode);
fs/nilfs2/super.c
941
if (IS_ERR(dentry)) {
fs/nilfs2/super.c
942
ret = PTR_ERR(dentry);
fs/nilfs2/super.c
946
*root_dentry = dentry;
fs/nilfs2/super.c
956
struct dentry **root_dentry)
fs/nilfs2/super.c
998
static bool nilfs_tree_is_busy(struct dentry *root_dentry)
fs/notify/fanotify/fanotify.c
22
return p1->mnt == p2->mnt && p1->dentry == p2->dentry;
fs/notify/fanotify/fanotify.c
27
return hash_ptr(path->dentry, FANOTIFY_EVENT_HASH_BITS) ^
fs/notify/fanotify/fanotify.c
325
if (!d_is_reg(path->dentry) && !d_can_lookup(path->dentry))
fs/notify/fanotify/fanotify.c
637
struct dentry *moved,
fs/notify/fanotify/fanotify.c
761
struct dentry *moved = NULL;
fs/notify/fanotify/fanotify_user.c
1761
static int fanotify_test_fsid(struct dentry *dentry, unsigned int flags,
fs/notify/fanotify/fanotify_user.c
1771
err = vfs_get_fsid(dentry, &fsid->id);
fs/notify/fanotify/fanotify_user.c
1775
fsid->sb = dentry->d_sb;
fs/notify/fanotify/fanotify_user.c
1785
err = vfs_get_fsid(dentry->d_sb->s_root, &root_fsid);
fs/notify/fanotify/fanotify_user.c
1804
static int fanotify_test_fid(struct dentry *dentry, unsigned int flags)
fs/notify/fanotify/fanotify_user.c
1807
const struct export_operations *nop = dentry->d_sb->s_export_op;
fs/notify/fanotify/fanotify_user.c
1833
bool is_dir = d_is_dir(path->dentry);
fs/notify/fanotify/fanotify_user.c
1846
if (!is_dir && !d_is_reg(path->dentry))
fs/notify/fanotify/fanotify_user.c
2061
ret = fanotify_test_fsid(path.dentry, flags, &__fsid);
fs/notify/fanotify/fanotify_user.c
2065
ret = fanotify_test_fid(path.dentry, flags);
fs/notify/fanotify/fanotify_user.c
2079
inode = path.dentry->d_inode;
fs/notify/fanotify/fanotify_user.c
2089
mntns = mnt_ns_from_dentry(path.dentry);
fs/notify/fanotify/fanotify_user.c
869
path && path->mnt && path->dentry) {
fs/notify/fanotify/fanotify_user.c
886
path->dentry, fd);
fs/notify/fsnotify.c
104
struct dentry *dentry)
fs/notify/fsnotify.c
106
spin_lock(&dentry->d_lock);
fs/notify/fsnotify.c
113
dentry->d_flags &= ~DCACHE_FSNOTIFY_PARENT_WATCHED;
fs/notify/fsnotify.c
114
spin_unlock(&dentry->d_lock);
fs/notify/fsnotify.c
169
return fsnotify_parent(path->dentry, FS_PRE_ACCESS, &range,
fs/notify/fsnotify.c
181
int __fsnotify_parent(struct dentry *dentry, __u32 mask, const void *data,
fs/notify/fsnotify.c
187
struct inode *inode = d_inode(dentry);
fs/notify/fsnotify.c
188
struct dentry *parent;
fs/notify/fsnotify.c
189
bool parent_watched = dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED;
fs/notify/fsnotify.c
208
parent = dget_parent(dentry);
fs/notify/fsnotify.c
212
fsnotify_clear_child_dentry_flag(p_inode, dentry);
fs/notify/fsnotify.c
224
d_is_special(dentry) &&
fs/notify/fsnotify.c
231
take_dentry_name_snapshot(&name, dentry);
fs/notify/fsnotify.c
265
path && d_unlinked(path->dentry))
fs/notify/fsnotify.c
294
struct dentry *moved = fsnotify_data_dentry(data, data_type);
fs/notify/fsnotify.c
502
struct dentry *moved;
fs/notify/fsnotify.c
617
struct dentry *dentry = file->f_path.dentry, *parent;
fs/notify/fsnotify.c
618
struct super_block *sb = dentry->d_sb;
fs/notify/fsnotify.c
641
p_mask = fsnotify_object_watched(d_inode(dentry), mnt_mask,
fs/notify/fsnotify.c
643
if (dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED) {
fs/notify/fsnotify.c
644
parent = dget_parent(dentry);
fs/notify/fsnotify.c
666
if (d_is_reg(dentry) && (p_mask & FSNOTIFY_PRE_CONTENT_EVENTS)) {
fs/notify/fsnotify.c
71
struct dentry *alias;
fs/notify/fsnotify.c
80
struct dentry *child;
fs/notify/inotify/inotify_user.c
777
inode = path.dentry->d_inode;
fs/nsfs.c
404
static int nsfs_show_path(struct seq_file *seq, struct dentry *dentry)
fs/nsfs.c
406
struct inode *inode = d_inode(dentry);
fs/nsfs.c
43
static char *ns_dname(struct dentry *dentry, char *buffer, int buflen)
fs/nsfs.c
45
struct inode *inode = d_inode(dentry);
fs/nsfs.c
518
static struct dentry *nsfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
fs/nsfs.c
640
return no_free_ptr(path.dentry);
fs/nsfs.c
689
nsfs_root_path.dentry = nsfs_mnt->mnt_root;
fs/ntfs3/file.c
189
struct inode *inode = d_inode(path->dentry);
fs/ntfs3/file.c
721
int ntfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ntfs3/file.c
724
struct inode *inode = d_inode(dentry);
fs/ntfs3/file.c
737
err = setattr_prepare(idmap, dentry, attr);
fs/ntfs3/file.c
768
err = ntfs_acl_chmod(idmap, dentry);
fs/ntfs3/inode.c
1237
struct dentry *dentry, const struct cpu_str *uni,
fs/ntfs3/inode.c
1244
const struct qstr *name = &dentry->d_name;
fs/ntfs3/inode.c
1720
d_instantiate(dentry, inode);
fs/ntfs3/inode.c
1774
int ntfs_link_inode(struct inode *inode, struct dentry *dentry)
fs/ntfs3/inode.c
1790
err = fill_name_de(sbi, de, &dentry->d_name, NULL);
fs/ntfs3/inode.c
1794
err = ni_add_name(ntfs_i(d_inode(dentry->d_parent)), ni, de);
fs/ntfs3/inode.c
1806
int ntfs_unlink_inode(struct inode *dir, const struct dentry *dentry)
fs/ntfs3/inode.c
1810
struct inode *inode = d_inode(dentry);
fs/ntfs3/inode.c
1830
err = fill_name_de(sbi, de, &dentry->d_name, NULL);
fs/ntfs3/inode.c
1878
const struct dentry *link_de, char *target,
fs/ntfs3/inode.c
1964
static noinline int ntfs_readlink_hlp(const struct dentry *link_de,
fs/ntfs3/inode.c
2118
static const char *ntfs_get_link(struct dentry *de, struct inode *inode,
fs/ntfs3/namei.c
101
return d_splice_alias(inode, dentry);
fs/ntfs3/namei.c
108
struct dentry *dentry, umode_t mode, bool excl)
fs/ntfs3/namei.c
110
return ntfs_create_inode(idmap, dir, dentry, NULL, S_IFREG | mode, 0,
fs/ntfs3/namei.c
118
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/ntfs3/namei.c
120
return ntfs_create_inode(idmap, dir, dentry, NULL, mode, rdev, NULL, 0,
fs/ntfs3/namei.c
127
static int ntfs_link(struct dentry *ode, struct inode *dir, struct dentry *de)
fs/ntfs3/namei.c
169
static int ntfs_unlink(struct inode *dir, struct dentry *dentry)
fs/ntfs3/namei.c
183
err = ntfs_unlink_inode(dir, dentry);
fs/ntfs3/namei.c
194
struct dentry *dentry, const char *symname)
fs/ntfs3/namei.c
205
return ntfs_create_inode(idmap, dir, dentry, NULL, S_IFLNK | 0777, 0,
fs/ntfs3/namei.c
212
static struct dentry *ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/ntfs3/namei.c
213
struct dentry *dentry, umode_t mode)
fs/ntfs3/namei.c
215
return ERR_PTR(ntfs_create_inode(idmap, dir, dentry, NULL,
fs/ntfs3/namei.c
222
static int ntfs_rmdir(struct inode *dir, struct dentry *dentry)
fs/ntfs3/namei.c
236
err = ntfs_unlink_inode(dir, dentry);
fs/ntfs3/namei.c
247
struct dentry *dentry, struct inode *new_dir,
fs/ntfs3/namei.c
248
struct dentry *new_dentry, u32 flags)
fs/ntfs3/namei.c
255
struct inode *inode = d_inode(dentry);
fs/ntfs3/namei.c
281
is_same = dentry->d_name.len == new_dentry->d_name.len &&
fs/ntfs3/namei.c
282
!memcmp(dentry->d_name.name, new_dentry->d_name.name,
fs/ntfs3/namei.c
283
dentry->d_name.len);
fs/ntfs3/namei.c
311
err = fill_name_de(sbi, de, &dentry->d_name, NULL);
fs/ntfs3/namei.c
333
simple_rename_timestamp(dir, dentry, new_dir, new_dentry);
fs/ntfs3/namei.c
355
struct dentry *ntfs3_get_parent(struct dentry *child)
fs/ntfs3/namei.c
380
static int ntfs_d_hash(const struct dentry *dentry, struct qstr *name)
fs/ntfs3/namei.c
391
hash = init_name_hash(dentry);
fs/ntfs3/namei.c
413
sbi = dentry->d_sb->s_fs_info;
fs/ntfs3/namei.c
426
init_name_hash(dentry));
fs/ntfs3/namei.c
438
static int ntfs_d_compare(const struct dentry *dentry, unsigned int len1,
fs/ntfs3/namei.c
469
sbi = dentry->d_sb->s_fs_info;
fs/ntfs3/namei.c
67
static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry,
fs/ntfs3/namei.c
78
err = ntfs_nls_to_utf16(ni->mi.sbi, dentry->d_name.name,
fs/ntfs3/namei.c
79
dentry->d_name.len, uni, NTFS_NAME_LEN,
fs/ntfs3/ntfs_fs.h
35
struct dentry;
fs/ntfs3/ntfs_fs.h
538
int ntfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ntfs3/ntfs_fs.h
781
struct dentry *dentry, const struct cpu_str *uni,
fs/ntfs3/ntfs_fs.h
784
int ntfs_link_inode(struct inode *inode, struct dentry *dentry);
fs/ntfs3/ntfs_fs.h
785
int ntfs_unlink_inode(struct inode *dir, const struct dentry *dentry);
fs/ntfs3/ntfs_fs.h
796
struct dentry *ntfs3_get_parent(struct dentry *child);
fs/ntfs3/ntfs_fs.h
936
struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ntfs3/ntfs_fs.h
938
int ntfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ntfs3/ntfs_fs.h
947
int ntfs_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry);
fs/ntfs3/ntfs_fs.h
948
ssize_t ntfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
fs/ntfs3/super.c
132
struct dentry *de = d_find_alias(inode);
fs/ntfs3/super.c
734
static int ntfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ntfs3/super.c
736
struct super_block *sb = dentry->d_sb;
fs/ntfs3/super.c
760
static int ntfs_show_options(struct seq_file *m, struct dentry *root)
fs/ntfs3/super.c
898
static struct dentry *ntfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/ntfs3/super.c
905
static struct dentry *ntfs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/ntfs3/xattr.c
1042
static bool ntfs_xattr_user_list(struct dentry *dentry)
fs/ntfs3/xattr.c
543
struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ntfs3/xattr.c
546
struct inode *inode = d_inode(dentry);
fs/ntfs3/xattr.c
678
int ntfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ntfs3/xattr.c
681
return ntfs_set_acl_ex(idmap, d_inode(dentry), acl, type, false);
fs/ntfs3/xattr.c
723
int ntfs_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry)
fs/ntfs3/xattr.c
725
struct inode *inode = d_inode(dentry);
fs/ntfs3/xattr.c
734
return posix_acl_chmod(idmap, dentry, inode->i_mode);
fs/ntfs3/xattr.c
740
ssize_t ntfs_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/ntfs3/xattr.c
742
struct inode *inode = d_inode(dentry);
fs/ntfs3/xattr.c
764
static int ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de,
fs/ntfs3/xattr.c
858
struct mnt_idmap *idmap, struct dentry *de,
fs/ocfs2/acl.c
264
int ocfs2_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ocfs2/acl.c
270
struct inode *inode = d_inode(dentry);
fs/ocfs2/acl.h
20
int ocfs2_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ocfs2/blockcheck.c
241
struct dentry *parent)
fs/ocfs2/blockcheck.c
243
struct dentry *dir;
fs/ocfs2/blockcheck.c
260
struct dentry *parent)
fs/ocfs2/blockcheck.c
271
struct dentry *parent)
fs/ocfs2/blockcheck.h
25
struct dentry *b_debug_dir; /* Parent of the debugfs files */
fs/ocfs2/blockcheck.h
55
struct dentry *parent);
fs/ocfs2/cluster/heartbeat.c
1392
static void o2hb_debug_create(const char *name, struct dentry *dir,
fs/ocfs2/cluster/heartbeat.c
1968
struct dentry *parent)
fs/ocfs2/cluster/heartbeat.c
1970
struct dentry *dir;
fs/ocfs2/cluster/heartbeat.c
224
struct dentry *hr_debug_dir;
fs/ocfs2/cluster/heartbeat.c
93
static struct dentry *o2hb_debug_dir;
fs/ocfs2/cluster/netdebug.c
38
static struct dentry *o2net_dentry;
fs/ocfs2/dcache.c
108
static int ocfs2_match_dentry(struct dentry *dentry,
fs/ocfs2/dcache.c
120
if (!dentry->d_fsdata)
fs/ocfs2/dcache.c
123
if (skip_unhashed && d_unhashed(dentry))
fs/ocfs2/dcache.c
126
parent = d_inode(dentry->d_parent);
fs/ocfs2/dcache.c
141
struct dentry *ocfs2_find_local_alias(struct inode *inode,
fs/ocfs2/dcache.c
145
struct dentry *dentry;
fs/ocfs2/dcache.c
148
hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) {
fs/ocfs2/dcache.c
149
spin_lock(&dentry->d_lock);
fs/ocfs2/dcache.c
150
if (ocfs2_match_dentry(dentry, parent_blkno, skip_unhashed)) {
fs/ocfs2/dcache.c
151
trace_ocfs2_find_local_alias(dentry->d_name.len,
fs/ocfs2/dcache.c
152
dentry->d_name.name);
fs/ocfs2/dcache.c
154
dget_dlock(dentry);
fs/ocfs2/dcache.c
155
spin_unlock(&dentry->d_lock);
fs/ocfs2/dcache.c
157
return dentry;
fs/ocfs2/dcache.c
159
spin_unlock(&dentry->d_lock);
fs/ocfs2/dcache.c
199
int ocfs2_dentry_attach_lock(struct dentry *dentry,
fs/ocfs2/dcache.c
204
struct dentry *alias;
fs/ocfs2/dcache.c
205
struct ocfs2_dentry_lock *dl = dentry->d_fsdata;
fs/ocfs2/dcache.c
207
trace_ocfs2_dentry_attach_lock(dentry->d_name.len, dentry->d_name.name,
fs/ocfs2/dcache.c
219
if (d_really_is_negative(dentry) && dentry->d_fsdata) {
fs/ocfs2/dcache.c
222
dentry->d_fsdata = dl = NULL;
fs/ocfs2/dcache.c
228
dentry,
fs/ocfs2/dcache.c
254
dentry,
fs/ocfs2/dcache.c
26
void ocfs2_dentry_attach_gen(struct dentry *dentry)
fs/ocfs2/dcache.c
286
if (unlikely(dentry->d_fsdata && !alias)) {
fs/ocfs2/dcache.c
29
OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen;
fs/ocfs2/dcache.c
298
dentry->d_fsdata = dl;
fs/ocfs2/dcache.c
30
BUG_ON(d_inode(dentry));
fs/ocfs2/dcache.c
307
ret = ocfs2_dentry_lock(dentry, 0);
fs/ocfs2/dcache.c
309
ocfs2_dentry_unlock(dentry, 0);
fs/ocfs2/dcache.c
31
dentry->d_fsdata = (void *)gen;
fs/ocfs2/dcache.c
322
dentry->d_fsdata = NULL;
fs/ocfs2/dcache.c
36
struct dentry *dentry, unsigned int flags)
fs/ocfs2/dcache.c
379
static void ocfs2_dentry_iput(struct dentry *dentry, struct inode *inode)
fs/ocfs2/dcache.c
381
struct ocfs2_dentry_lock *dl = dentry->d_fsdata;
fs/ocfs2/dcache.c
388
if (!(dentry->d_flags & DCACHE_DISCONNECTED) &&
fs/ocfs2/dcache.c
389
!d_unhashed(dentry)) {
fs/ocfs2/dcache.c
395
ino, dentry->d_flags, dentry);
fs/ocfs2/dcache.c
402
dentry, dl->dl_count);
fs/ocfs2/dcache.c
404
ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl);
fs/ocfs2/dcache.c
429
void ocfs2_dentry_move(struct dentry *dentry, struct dentry *target,
fs/ocfs2/dcache.c
434
struct inode *inode = d_inode(dentry);
fs/ocfs2/dcache.c
445
ocfs2_dentry_lock_put(osb, dentry->d_fsdata);
fs/ocfs2/dcache.c
447
dentry->d_fsdata = NULL;
fs/ocfs2/dcache.c
448
ret = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(new_dir)->ip_blkno);
fs/ocfs2/dcache.c
45
inode = d_inode(dentry);
fs/ocfs2/dcache.c
453
d_move(dentry, target);
fs/ocfs2/dcache.c
46
osb = OCFS2_SB(dentry->d_sb);
fs/ocfs2/dcache.c
48
trace_ocfs2_dentry_revalidate(dentry, name->len, name->name);
fs/ocfs2/dcache.c
55
unsigned long gen = (unsigned long) dentry->d_fsdata;
fs/ocfs2/dcache.c
94
if (!dentry->d_fsdata) {
fs/ocfs2/dcache.h
28
int ocfs2_dentry_attach_lock(struct dentry *dentry, struct inode *inode,
fs/ocfs2/dcache.h
34
struct dentry *ocfs2_find_local_alias(struct inode *inode, u64 parent_blkno,
fs/ocfs2/dcache.h
37
void ocfs2_dentry_move(struct dentry *dentry, struct dentry *target,
fs/ocfs2/dcache.h
41
void ocfs2_dentry_attach_gen(struct dentry *dentry);
fs/ocfs2/dir.h
54
struct dentry *dentry,
fs/ocfs2/dir.h
59
return __ocfs2_add_entry(handle, d_inode(dentry->d_parent),
fs/ocfs2/dir.h
60
dentry->d_name.name, dentry->d_name.len,
fs/ocfs2/dlm/dlmcommon.h
140
struct dentry *dlm_debugfs_subroot;
fs/ocfs2/dlm/dlmdebug.c
272
static struct dentry *dlm_debugfs_root;
fs/ocfs2/dlmfs/dlmfs.c
192
struct dentry *dentry, struct iattr *attr)
fs/ocfs2/dlmfs/dlmfs.c
195
struct inode *inode = d_inode(dentry);
fs/ocfs2/dlmfs/dlmfs.c
198
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/ocfs2/dlmfs/dlmfs.c
351
struct dentry *dentry,
fs/ocfs2/dlmfs/dlmfs.c
380
user_dlm_lock_res_init(&ip->ip_lockres, dentry);
fs/ocfs2/dlmfs/dlmfs.c
405
static struct dentry *dlmfs_mkdir(struct mnt_idmap * idmap,
fs/ocfs2/dlmfs/dlmfs.c
407
struct dentry * dentry,
fs/ocfs2/dlmfs/dlmfs.c
412
const struct qstr *domain = &dentry->d_name;
fs/ocfs2/dlmfs/dlmfs.c
425
inode = dlmfs_get_inode(dir, dentry, mode | S_IFDIR);
fs/ocfs2/dlmfs/dlmfs.c
444
d_make_persistent(dentry, inode);
fs/ocfs2/dlmfs/dlmfs.c
455
struct dentry *dentry,
fs/ocfs2/dlmfs/dlmfs.c
461
const struct qstr *name = &dentry->d_name;
fs/ocfs2/dlmfs/dlmfs.c
475
inode = dlmfs_get_inode(dir, dentry, mode | S_IFREG);
fs/ocfs2/dlmfs/dlmfs.c
482
d_make_persistent(dentry, inode);
fs/ocfs2/dlmfs/dlmfs.c
488
struct dentry *dentry)
fs/ocfs2/dlmfs/dlmfs.c
491
struct inode *inode = d_inode(dentry);
fs/ocfs2/dlmfs/dlmfs.c
500
dentry, status);
fs/ocfs2/dlmfs/dlmfs.c
503
status = simple_unlink(dir, dentry);
fs/ocfs2/dlmfs/userdlm.c
573
struct dentry *dentry)
fs/ocfs2/dlmfs/userdlm.c
584
BUG_ON(dentry->d_name.len >= USER_DLM_LOCK_ID_MAX_LEN);
fs/ocfs2/dlmfs/userdlm.c
587
dentry->d_name.name,
fs/ocfs2/dlmfs/userdlm.c
588
dentry->d_name.len);
fs/ocfs2/dlmfs/userdlm.c
589
lockres->l_namelen = dentry->d_name.len;
fs/ocfs2/dlmfs/userdlm.h
57
struct dentry *dentry);
fs/ocfs2/dlmglue.c
2971
int ocfs2_dentry_lock(struct dentry *dentry, int ex)
fs/ocfs2/dlmglue.c
2975
struct ocfs2_dentry_lock *dl = dentry->d_fsdata;
fs/ocfs2/dlmglue.c
2976
struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb);
fs/ocfs2/dlmglue.c
2996
void ocfs2_dentry_unlock(struct dentry *dentry, int ex)
fs/ocfs2/dlmglue.c
2999
struct ocfs2_dentry_lock *dl = dentry->d_fsdata;
fs/ocfs2/dlmglue.c
3000
struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb);
fs/ocfs2/dlmglue.c
4060
struct dentry *dentry;
fs/ocfs2/dlmglue.c
4112
dentry = ocfs2_find_local_alias(dl->dl_inode,
fs/ocfs2/dlmglue.c
4114
if (!dentry)
fs/ocfs2/dlmglue.c
4119
shrink_dcache_parent(dentry);
fs/ocfs2/dlmglue.c
4121
mlog(0, "d_delete(%pd);\n", dentry);
fs/ocfs2/dlmglue.c
4131
d_delete(dentry);
fs/ocfs2/dlmglue.c
4132
dput(dentry);
fs/ocfs2/dlmglue.h
172
int ocfs2_dentry_lock(struct dentry *dentry, int ex);
fs/ocfs2/dlmglue.h
173
void ocfs2_dentry_unlock(struct dentry *dentry, int ex);
fs/ocfs2/export.c
130
static struct dentry *ocfs2_get_parent(struct dentry *child)
fs/ocfs2/export.c
134
struct dentry *parent;
fs/ocfs2/export.c
205
trace_ocfs2_encode_fh_begin(dentry, dentry->d_name.len,
fs/ocfs2/export.c
206
dentry->d_name.name,
fs/ocfs2/export.c
252
static struct dentry *ocfs2_fh_to_dentry(struct super_block *sb,
fs/ocfs2/export.c
266
static struct dentry *ocfs2_fh_to_parent(struct super_block *sb,
fs/ocfs2/export.c
34
static struct dentry *ocfs2_get_dentry(struct super_block *sb,
fs/ocfs2/export.c
41
struct dentry *result;
fs/ocfs2/file.c
1115
int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ocfs2/file.c
1120
struct inode *inode = d_inode(dentry);
fs/ocfs2/file.c
1130
trace_ocfs2_setattr(inode, dentry,
fs/ocfs2/file.c
1132
dentry->d_name.len, dentry->d_name.name,
fs/ocfs2/file.c
1155
status = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/ocfs2/file.c
1318
struct inode *inode = d_inode(path->dentry);
fs/ocfs2/file.c
1319
struct super_block *sb = path->dentry->d_sb;
fs/ocfs2/file.c
1323
err = ocfs2_inode_revalidate(path->dentry);
fs/ocfs2/file.c
142
trace_ocfs2_file_release(inode, file, file->f_path.dentry,
fs/ocfs2/file.c
144
file->f_path.dentry->d_name.len,
fs/ocfs2/file.c
145
file->f_path.dentry->d_name.name,
fs/ocfs2/file.c
177
trace_ocfs2_sync_file(inode, file, file->f_path.dentry,
fs/ocfs2/file.c
179
file->f_path.dentry->d_name.len,
fs/ocfs2/file.c
180
file->f_path.dentry->d_name.name,
fs/ocfs2/file.c
2262
struct dentry *dentry = file->f_path.dentry;
fs/ocfs2/file.c
2263
struct inode *inode = d_inode(dentry);
fs/ocfs2/file.c
2390
trace_ocfs2_file_write_iter(inode, file, file->f_path.dentry,
fs/ocfs2/file.c
2392
file->f_path.dentry->d_name.len,
fs/ocfs2/file.c
2393
file->f_path.dentry->d_name.name,
fs/ocfs2/file.c
2540
trace_ocfs2_file_read_iter(inode, filp, filp->f_path.dentry,
fs/ocfs2/file.c
2542
filp->f_path.dentry->d_name.len,
fs/ocfs2/file.c
2543
filp->f_path.dentry->d_name.name,
fs/ocfs2/file.c
2622
trace_ocfs2_file_splice_read(inode, in, in->f_path.dentry,
fs/ocfs2/file.c
2624
in->f_path.dentry->d_name.len,
fs/ocfs2/file.c
2625
in->f_path.dentry->d_name.name,
fs/ocfs2/file.c
88
trace_ocfs2_file_open(inode, file, file->f_path.dentry,
fs/ocfs2/file.c
90
file->f_path.dentry->d_name.len,
fs/ocfs2/file.c
91
file->f_path.dentry->d_name.name, mode);
fs/ocfs2/file.h
53
int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ocfs2/inode.c
1309
int ocfs2_inode_revalidate(struct dentry *dentry)
fs/ocfs2/inode.c
1311
struct inode *inode = d_inode(dentry);
fs/ocfs2/inode.h
129
int ocfs2_inode_revalidate(struct dentry *dentry);
fs/ocfs2/ioctl.c
65
int ocfs2_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/ocfs2/ioctl.c
67
struct inode *inode = d_inode(dentry);
fs/ocfs2/ioctl.c
86
struct dentry *dentry, struct file_kattr *fa)
fs/ocfs2/ioctl.c
88
struct inode *inode = d_inode(dentry);
fs/ocfs2/ioctl.h
14
int ocfs2_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/ocfs2/ioctl.h
16
struct dentry *dentry, struct file_kattr *fa);
fs/ocfs2/namei.c
103
struct dentry *ret;
fs/ocfs2/namei.c
106
trace_ocfs2_lookup(dir, dentry, dentry->d_name.len,
fs/ocfs2/namei.c
107
dentry->d_name.name,
fs/ocfs2/namei.c
110
if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) {
fs/ocfs2/namei.c
1207
struct dentry *old_dentry,
fs/ocfs2/namei.c
1209
struct dentry *new_dentry,
fs/ocfs2/namei.c
123
status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name,
fs/ocfs2/namei.c
124
dentry->d_name.len, &blkno);
fs/ocfs2/namei.c
145
ret = d_splice_alias(inode, dentry);
fs/ocfs2/namei.c
161
dentry = ret;
fs/ocfs2/namei.c
163
status = ocfs2_dentry_attach_lock(dentry, inode,
fs/ocfs2/namei.c
172
ocfs2_dentry_attach_gen(dentry);
fs/ocfs2/namei.c
1812
struct dentry *dentry,
fs/ocfs2/namei.c
1840
trace_ocfs2_symlink_begin(dir, dentry, symname,
fs/ocfs2/namei.c
1841
dentry->d_name.len, dentry->d_name.name);
fs/ocfs2/namei.c
1871
status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
fs/ocfs2/namei.c
1872
dentry->d_name.len);
fs/ocfs2/namei.c
1877
dentry->d_name.name,
fs/ocfs2/namei.c
1878
dentry->d_name.len, &lookup);
fs/ocfs2/namei.c
1900
status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si);
fs/ocfs2/namei.c
1948
trace_ocfs2_symlink_create(dir, dentry, dentry->d_name.len,
fs/ocfs2/namei.c
1949
dentry->d_name.name,
fs/ocfs2/namei.c
2027
status = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno);
fs/ocfs2/namei.c
2033
dl = dentry->d_fsdata;
fs/ocfs2/namei.c
2035
status = ocfs2_add_entry(handle, dentry, inode,
fs/ocfs2/namei.c
2044
d_instantiate(dentry, inode);
fs/ocfs2/namei.c
2073
ocfs2_cleanup_add_entry_failure(osb, dentry, inode);
fs/ocfs2/namei.c
216
struct dentry *dentry, struct inode *inode)
fs/ocfs2/namei.c
218
struct ocfs2_dentry_lock *dl = dentry->d_fsdata;
fs/ocfs2/namei.c
224
dentry->d_fsdata = NULL;
fs/ocfs2/namei.c
232
struct dentry *dentry,
fs/ocfs2/namei.c
260
trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name,
fs/ocfs2/namei.c
2790
struct dentry *dentry)
fs/ocfs2/namei.c
2802
trace_ocfs2_mv_orphaned_inode_to_new(dir, dentry,
fs/ocfs2/namei.c
2803
dentry->d_name.len, dentry->d_name.name,
fs/ocfs2/namei.c
2821
status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
fs/ocfs2/namei.c
2822
dentry->d_name.len);
fs/ocfs2/namei.c
2828
dentry->d_name.name,
fs/ocfs2/namei.c
2829
dentry->d_name.len, &lookup);
fs/ocfs2/namei.c
2890
status = ocfs2_add_entry(handle, dentry, inode,
fs/ocfs2/namei.c
2898
status = ocfs2_dentry_attach_lock(dentry, inode,
fs/ocfs2/namei.c
2905
d_instantiate(dentry, inode);
fs/ocfs2/namei.c
292
status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
fs/ocfs2/namei.c
293
dentry->d_name.len);
fs/ocfs2/namei.c
299
dentry->d_name.name,
fs/ocfs2/namei.c
300
dentry->d_name.len, &lookup);
fs/ocfs2/namei.c
323
status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si);
fs/ocfs2/namei.c
436
status = ocfs2_dentry_attach_lock(dentry, inode,
fs/ocfs2/namei.c
443
dl = dentry->d_fsdata;
fs/ocfs2/namei.c
445
status = ocfs2_add_entry(handle, dentry, inode,
fs/ocfs2/namei.c
454
d_instantiate(dentry, inode);
fs/ocfs2/namei.c
498
ocfs2_cleanup_add_entry_failure(osb, dentry, inode);
fs/ocfs2/namei.c
651
static struct dentry *ocfs2_mkdir(struct mnt_idmap *idmap,
fs/ocfs2/namei.c
653
struct dentry *dentry,
fs/ocfs2/namei.c
658
trace_ocfs2_mkdir(dir, dentry, dentry->d_name.len, dentry->d_name.name,
fs/ocfs2/namei.c
660
ret = ocfs2_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFDIR, 0);
fs/ocfs2/namei.c
669
struct dentry *dentry,
fs/ocfs2/namei.c
675
trace_ocfs2_create(dir, dentry, dentry->d_name.len, dentry->d_name.name,
fs/ocfs2/namei.c
677
ret = ocfs2_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFREG, 0);
fs/ocfs2/namei.c
684
static int ocfs2_link(struct dentry *old_dentry,
fs/ocfs2/namei.c
686
struct dentry *dentry)
fs/ocfs2/namei.c
703
dentry->d_name.len, dentry->d_name.name);
fs/ocfs2/namei.c
756
err = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
fs/ocfs2/namei.c
757
dentry->d_name.len);
fs/ocfs2/namei.c
762
dentry->d_name.name,
fs/ocfs2/namei.c
763
dentry->d_name.len, &lookup);
fs/ocfs2/namei.c
808
err = ocfs2_add_entry(handle, dentry, inode,
fs/ocfs2/namei.c
818
err = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno);
fs/ocfs2/namei.c
825
d_instantiate(dentry, inode);
fs/ocfs2/namei.c
852
static int ocfs2_remote_dentry_delete(struct dentry *dentry)
fs/ocfs2/namei.c
856
ret = ocfs2_dentry_lock(dentry, 1);
fs/ocfs2/namei.c
860
ocfs2_dentry_unlock(dentry, 1);
fs/ocfs2/namei.c
879
struct dentry *dentry)
fs/ocfs2/namei.c
884
struct inode *inode = d_inode(dentry);
fs/ocfs2/namei.c
896
trace_ocfs2_unlink(dir, dentry, dentry->d_name.len,
fs/ocfs2/namei.c
897
dentry->d_name.name,
fs/ocfs2/namei.c
907
BUG_ON(d_inode(dentry->d_parent) != dir);
fs/ocfs2/namei.c
920
status = ocfs2_find_files_on_disk(dentry->d_name.name,
fs/ocfs2/namei.c
921
dentry->d_name.len, &blkno, dir,
fs/ocfs2/namei.c
954
status = ocfs2_remote_dentry_delete(dentry);
fs/ocfs2/namei.c
97
static struct dentry *ocfs2_lookup(struct inode *dir, struct dentry *dentry,
fs/ocfs2/namei.h
18
struct dentry *ocfs2_get_parent(struct dentry *child);
fs/ocfs2/namei.h
36
struct dentry *new_dentry);
fs/ocfs2/ocfs2.h
442
struct dentry *osb_debug_root;
fs/ocfs2/ocfs2_trace.h
1272
TP_PROTO(void *inode, void *file, void *dentry,
fs/ocfs2/ocfs2_trace.h
1276
TP_ARGS(inode, file, dentry, ino, d_len, d_name, para),
fs/ocfs2/ocfs2_trace.h
1280
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
1289
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
1296
__entry->dentry, __entry->ino, __entry->para,
fs/ocfs2/ocfs2_trace.h
1302
TP_PROTO(void *inode, void *file, void *dentry, \
fs/ocfs2/ocfs2_trace.h
1306
TP_ARGS(inode, file, dentry, ino, d_len, d_name, mode))
fs/ocfs2/ocfs2_trace.h
1405
TP_PROTO(void *inode, void *dentry,
fs/ocfs2/ocfs2_trace.h
1410
TP_ARGS(inode, dentry, ino, d_len, d_name,
fs/ocfs2/ocfs2_trace.h
1414
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
1425
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
1435
__entry->dentry, __entry->ino, __entry->d_len,
fs/ocfs2/ocfs2_trace.h
2157
TP_PROTO(void *dir, void *dentry, int name_len, const char *name,
fs/ocfs2/ocfs2_trace.h
2159
TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra),
fs/ocfs2/ocfs2_trace.h
2162
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
2170
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
2176
TP_printk("%p %p %.*s %llu %llu", __entry->dir, __entry->dentry,
fs/ocfs2/ocfs2_trace.h
2183
TP_PROTO(void *dir, void *dentry, int name_len, const char *name, \
fs/ocfs2/ocfs2_trace.h
2185
TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra))
fs/ocfs2/ocfs2_trace.h
2202
TP_PROTO(void *dir, void *dentry, int name_len, const char *name,
fs/ocfs2/ocfs2_trace.h
2204
TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode),
fs/ocfs2/ocfs2_trace.h
2207
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
2216
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
2223
TP_printk("%p %p %.*s %llu %lu %d", __entry->dir, __entry->dentry,
fs/ocfs2/ocfs2_trace.h
2330
TP_PROTO(void *dir, void *dentry, const char *symname,
fs/ocfs2/ocfs2_trace.h
2332
TP_ARGS(dir, dentry, symname, len, name),
fs/ocfs2/ocfs2_trace.h
2335
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
2342
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
2347
TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry,
fs/ocfs2/ocfs2_trace.h
2394
TP_PROTO(void *dentry, int len, const char *name),
fs/ocfs2/ocfs2_trace.h
2395
TP_ARGS(dentry, len, name),
fs/ocfs2/ocfs2_trace.h
2397
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
2402
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
2406
TP_printk("%p %.*s", __entry->dentry, __entry->len, __get_str(name))
fs/ocfs2/ocfs2_trace.h
2538
TP_PROTO(void *dentry, int name_len, const char *name,
fs/ocfs2/ocfs2_trace.h
2540
TP_ARGS(dentry, name_len, name, fh, len, connectable),
fs/ocfs2/ocfs2_trace.h
2542
__field(void *, dentry)
fs/ocfs2/ocfs2_trace.h
2550
__entry->dentry = dentry;
fs/ocfs2/ocfs2_trace.h
2557
TP_printk("%p %.*s %p %d %d", __entry->dentry, __entry->name_len,
fs/ocfs2/refcounttree.c
4142
static int __ocfs2_reflink(struct dentry *old_dentry,
fs/ocfs2/refcounttree.c
4234
static int ocfs2_reflink(struct dentry *old_dentry, struct inode *dir,
fs/ocfs2/refcounttree.c
4235
struct dentry *new_dentry, bool preserve)
fs/ocfs2/refcounttree.c
4327
static inline int ocfs2_may_create(struct inode *dir, struct dentry *child)
fs/ocfs2/refcounttree.c
4344
static int ocfs2_vfs_reflink(struct dentry *old_dentry, struct inode *dir,
fs/ocfs2/refcounttree.c
4345
struct dentry *new_dentry, bool preserve)
fs/ocfs2/refcounttree.c
4409
struct dentry *new_dentry;
fs/ocfs2/refcounttree.c
4435
error = ocfs2_vfs_reflink(old_path.dentry,
fs/ocfs2/refcounttree.c
4436
d_inode(new_path.dentry),
fs/ocfs2/super.c
1417
static int ocfs2_show_options(struct seq_file *s, struct dentry *root)
fs/ocfs2/super.c
1556
static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ocfs2/super.c
1565
trace_ocfs2_statfs(dentry->d_sb, buf);
fs/ocfs2/super.c
1567
osb = OCFS2_SB(dentry->d_sb);
fs/ocfs2/super.c
1590
buf->f_bsize = dentry->d_sb->s_blocksize;
fs/ocfs2/super.c
67
static struct dentry *ocfs2_debugfs_root;
fs/ocfs2/super.c
89
static int ocfs2_show_options(struct seq_file *s, struct dentry *root);
fs/ocfs2/super.c
97
static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/ocfs2/super.c
975
struct dentry *root;
fs/ocfs2/xattr.c
1050
ssize_t ocfs2_listxattr(struct dentry *dentry,
fs/ocfs2/xattr.c
1057
struct ocfs2_inode_info *oi = OCFS2_I(d_inode(dentry));
fs/ocfs2/xattr.c
1059
if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb)))
fs/ocfs2/xattr.c
1065
ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0);
fs/ocfs2/xattr.c
1074
i_ret = ocfs2_xattr_ibody_list(d_inode(dentry), di, buffer, size);
fs/ocfs2/xattr.c
1082
b_ret = ocfs2_xattr_block_list(d_inode(dentry), di,
fs/ocfs2/xattr.c
1088
ocfs2_inode_unlock(d_inode(dentry), 0);
fs/ocfs2/xattr.c
7263
struct dentry *unused, struct inode *inode,
fs/ocfs2/xattr.c
7272
struct dentry *unused, struct inode *inode,
fs/ocfs2/xattr.c
7358
struct dentry *unused, struct inode *inode,
fs/ocfs2/xattr.c
7367
struct dentry *unused, struct inode *inode,
fs/ocfs2/xattr.c
7385
struct dentry *unused, struct inode *inode,
fs/ocfs2/xattr.c
7398
struct dentry *unused, struct inode *inode,
fs/ocfs2/xattr.h
35
ssize_t ocfs2_listxattr(struct dentry *, char *, size_t);
fs/omfs/dir.c
111
static int omfs_add_link(struct dentry *dentry, struct inode *inode)
fs/omfs/dir.c
113
struct inode *dir = d_inode(dentry->d_parent);
fs/omfs/dir.c
114
const char *name = dentry->d_name.name;
fs/omfs/dir.c
115
int namelen = dentry->d_name.len;
fs/omfs/dir.c
156
static int omfs_delete_entry(struct dentry *dentry)
fs/omfs/dir.c
158
struct inode *dir = d_inode(dentry->d_parent);
fs/omfs/dir.c
160
const char *name = dentry->d_name.name;
fs/omfs/dir.c
161
int namelen = dentry->d_name.len;
fs/omfs/dir.c
238
static int omfs_remove(struct inode *dir, struct dentry *dentry)
fs/omfs/dir.c
240
struct inode *inode = d_inode(dentry);
fs/omfs/dir.c
248
ret = omfs_delete_entry(dentry);
fs/omfs/dir.c
258
static int omfs_add_node(struct inode *dir, struct dentry *dentry, umode_t mode)
fs/omfs/dir.c
270
err = omfs_add_link(dentry, inode);
fs/omfs/dir.c
274
d_instantiate(dentry, inode);
fs/omfs/dir.c
282
static struct dentry *omfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/omfs/dir.c
283
struct dentry *dentry, umode_t mode)
fs/omfs/dir.c
285
return ERR_PTR(omfs_add_node(dir, dentry, mode | S_IFDIR));
fs/omfs/dir.c
289
struct dentry *dentry, umode_t mode, bool excl)
fs/omfs/dir.c
291
return omfs_add_node(dir, dentry, mode | S_IFREG);
fs/omfs/dir.c
294
static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry,
fs/omfs/dir.c
300
if (dentry->d_name.len > OMFS_NAMELEN)
fs/omfs/dir.c
303
bh = omfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len);
fs/omfs/dir.c
312
return d_splice_alias(inode, dentry);
fs/omfs/dir.c
374
struct dentry *old_dentry, struct inode *new_dir,
fs/omfs/dir.c
375
struct dentry *new_dentry, unsigned int flags)
fs/omfs/file.c
342
struct dentry *dentry, struct iattr *attr)
fs/omfs/file.c
344
struct inode *inode = d_inode(dentry);
fs/omfs/file.c
347
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/omfs/inode.c
273
static int omfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/omfs/inode.c
275
struct super_block *s = dentry->d_sb;
fs/omfs/inode.c
295
static int omfs_show_options(struct seq_file *m, struct dentry *root)
fs/open.c
1010
f->__f_path.dentry = NULL;
fs/open.c
1032
int finish_open(struct file *file, struct dentry *dentry,
fs/open.c
1037
file->__f_path.dentry = dentry;
fs/open.c
1056
int finish_no_open(struct file *file, struct dentry *dentry)
fs/open.c
1058
if (IS_ERR(dentry))
fs/open.c
1059
return PTR_ERR(dentry);
fs/open.c
1060
file->__f_path.dentry = dentry;
fs/open.c
118
error = do_truncate(idmap, path->dentry, length, 0, NULL);
fs/open.c
167
struct dentry *dentry;
fs/open.c
174
dentry = file->f_path.dentry;
fs/open.c
175
inode = dentry->d_inode;
fs/open.c
196
return do_truncate(file_mnt_idmap(file), dentry, length,
fs/open.c
39
int do_truncate(struct mnt_idmap *idmap, struct dentry *dentry,
fs/open.c
494
inode = d_backing_inode(path.dentry);
fs/open.c
57
ret = dentry_needs_remove_privs(idmap, dentry);
fs/open.c
581
if (!d_can_lookup(fd_file(f)->f_path.dentry))
fs/open.c
622
struct inode *inode = path->dentry->d_inode;
fs/open.c
63
ret = inode_lock_killable(dentry->d_inode);
fs/open.c
639
error = notify_change(mnt_idmap(path->mnt), path->dentry,
fs/open.c
68
ret = notify_change(idmap, dentry, &newattrs, NULL);
fs/open.c
69
inode_unlock(dentry->d_inode);
fs/open.c
745
struct inode *inode = path->dentry->d_inode;
fs/open.c
778
error = notify_change(idmap, path->dentry, &newattrs,
fs/open.c
79
inode = path->dentry->d_inode;
fs/open.c
891
struct inode *inode = f->f_path.dentry->d_inode;
fs/openpromfs/inode.c
175
static struct dentry *openpromfs_lookup(struct inode *, struct dentry *, unsigned int);
fs/openpromfs/inode.c
181
static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/openpromfs/inode.c
197
name = dentry->d_name.name;
fs/openpromfs/inode.c
198
len = dentry->d_name.len;
fs/openpromfs/inode.c
266
return d_splice_alias(inode, dentry);
fs/orangefs/acl.c
115
int orangefs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/orangefs/acl.c
121
struct inode *inode = d_inode(dentry);
fs/orangefs/acl.c
150
rc = __orangefs_setattr_mode(dentry, &iattr);
fs/orangefs/dcache.c
105
__func__, dentry);
fs/orangefs/dcache.c
108
if (dentry->d_inode && is_root_handle(dentry->d_inode))
fs/orangefs/dcache.c
115
if (!orangefs_revalidate_lookup(dir, name, dentry))
fs/orangefs/dcache.c
119
if (!dentry->d_inode) {
fs/orangefs/dcache.c
128
ret = orangefs_inode_check_changed(dentry->d_inode);
fs/orangefs/dcache.c
17
struct dentry *dentry)
fs/orangefs/dcache.c
20
struct inode *inode = dentry->d_inode;
fs/orangefs/dcache.c
76
orangefs_set_timeout(dentry);
fs/orangefs/dcache.c
93
struct dentry *dentry, unsigned int flags)
fs/orangefs/dcache.c
96
unsigned long time = (unsigned long) dentry->d_fsdata;
fs/orangefs/inode.c
798
int __orangefs_setattr_mode(struct dentry *dentry, struct iattr *iattr)
fs/orangefs/inode.c
801
struct inode *inode = d_inode(dentry);
fs/orangefs/inode.c
806
ret = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode);
fs/orangefs/inode.c
813
int orangefs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/orangefs/inode.c
818
dentry);
fs/orangefs/inode.c
819
ret = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/orangefs/inode.c
822
ret = __orangefs_setattr_mode(dentry, iattr);
fs/orangefs/inode.c
823
sync_inode_metadata(d_inode(dentry), 1);
fs/orangefs/inode.c
837
struct inode *inode = path->dentry->d_inode;
fs/orangefs/inode.c
841
path->dentry, request_mask);
fs/orangefs/inode.c
899
static int orangefs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/orangefs/inode.c
905
dentry);
fs/orangefs/inode.c
907
ret = orangefs_inode_getxattr(d_inode(dentry),
fs/orangefs/inode.c
920
struct dentry *dentry, struct file_kattr *fa)
fs/orangefs/inode.c
925
dentry);
fs/orangefs/inode.c
941
return orangefs_inode_setxattr(d_inode(dentry),
fs/orangefs/namei.c
103
static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
fs/orangefs/namei.c
120
__func__, dentry);
fs/orangefs/namei.c
122
if (dentry->d_name.len > (ORANGEFS_NAME_MAX - 1))
fs/orangefs/namei.c
138
strscpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name);
fs/orangefs/namei.c
156
orangefs_set_timeout(dentry);
fs/orangefs/namei.c
166
return d_splice_alias(inode, dentry);
fs/orangefs/namei.c
170
static int orangefs_unlink(struct inode *dir, struct dentry *dentry)
fs/orangefs/namei.c
172
struct inode *inode = dentry->d_inode;
fs/orangefs/namei.c
182
dentry,
fs/orangefs/namei.c
192
strscpy(new_op->upcall.req.remove.d_name, dentry->d_name.name);
fs/orangefs/namei.c
20
struct dentry *dentry,
fs/orangefs/namei.c
217
struct dentry *dentry,
fs/orangefs/namei.c
244
strscpy(new_op->upcall.req.sym.entry_name, dentry->d_name.name);
fs/orangefs/namei.c
282
d_instantiate_new(dentry, inode);
fs/orangefs/namei.c
283
orangefs_set_timeout(dentry);
fs/orangefs/namei.c
288
dentry);
fs/orangefs/namei.c
300
static struct dentry *orangefs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/orangefs/namei.c
301
struct dentry *dentry, umode_t mode)
fs/orangefs/namei.c
318
strscpy(new_op->upcall.req.mkdir.d_name, dentry->d_name.name);
fs/orangefs/namei.c
33
dentry);
fs/orangefs/namei.c
347
d_instantiate_new(dentry, inode);
fs/orangefs/namei.c
348
orangefs_set_timeout(dentry);
fs/orangefs/namei.c
353
dentry);
fs/orangefs/namei.c
370
struct dentry *old_dentry,
fs/orangefs/namei.c
372
struct dentry *new_dentry,
fs/orangefs/namei.c
43
strscpy(new_op->upcall.req.create.d_name, dentry->d_name.name);
fs/orangefs/namei.c
50
dentry,
fs/orangefs/namei.c
65
dentry);
fs/orangefs/namei.c
74
dentry);
fs/orangefs/namei.c
76
d_instantiate_new(dentry, inode);
fs/orangefs/namei.c
77
orangefs_set_timeout(dentry);
fs/orangefs/namei.c
82
dentry);
fs/orangefs/namei.c
94
dentry,
fs/orangefs/orangefs-debugfs.c
145
static struct dentry *client_debug_dentry;
fs/orangefs/orangefs-debugfs.c
146
static struct dentry *debug_dir;
fs/orangefs/orangefs-kernel.h
102
struct dentry *dentry, struct posix_acl *acl,
fs/orangefs/orangefs-kernel.h
354
int __orangefs_setattr_mode(struct dentry *dentry, struct iattr *iattr);
fs/orangefs/orangefs-kernel.h
355
int orangefs_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
fs/orangefs/orangefs-kernel.h
369
ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size);
fs/orangefs/orangefs-kernel.h
477
static inline void orangefs_set_timeout(struct dentry *dentry)
fs/orangefs/orangefs-kernel.h
481
dentry->d_fsdata = (void *) time;
fs/orangefs/super.c
143
static int orangefs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/orangefs/super.c
150
sb = dentry->d_sb;
fs/orangefs/super.c
314
static struct dentry *orangefs_fh_to_dentry(struct super_block *sb,
fs/orangefs/super.c
38
static int orangefs_show_options(struct seq_file *m, struct dentry *root)
fs/orangefs/super.c
406
struct dentry *root_dentry;
fs/orangefs/xattr.c
408
ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/orangefs/xattr.c
410
struct inode *inode = dentry->d_inode;
fs/orangefs/xattr.c
532
struct dentry *unused,
fs/orangefs/xattr.c
543
struct dentry *unused,
fs/overlayfs/copy_up.c
1007
ovl_dentry_set_upper_alias(c->dentry);
fs/overlayfs/copy_up.c
1008
ovl_dentry_update_reval(c->dentry, ovl_dentry_upper(c->dentry));
fs/overlayfs/copy_up.c
1010
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
1020
static bool ovl_need_meta_copy_up(struct dentry *dentry, umode_t mode,
fs/overlayfs/copy_up.c
1023
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/copy_up.c
1038
ovl_path_lowerdata(dentry, &lowerdata);
fs/overlayfs/copy_up.c
1040
if (WARN_ON_ONCE(lowerdata.dentry == NULL) ||
fs/overlayfs/copy_up.c
1042
!fsverity_active(d_inode(lowerdata.dentry))) {
fs/overlayfs/copy_up.c
1076
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
1082
ovl_path_upper(c->dentry, &upperpath);
fs/overlayfs/copy_up.c
1083
if (WARN_ON(upperpath.dentry == NULL))
fs/overlayfs/copy_up.c
1101
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
1103
err = ovl_do_setxattr(ofs, upperpath.dentry, XATTR_NAME_CAPS,
fs/overlayfs/copy_up.c
1107
err = ovl_removexattr(ofs, upperpath.dentry,
fs/overlayfs/copy_up.c
1110
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
1114
ovl_clear_flag(OVL_HAS_DIGEST, d_inode(c->dentry));
fs/overlayfs/copy_up.c
1115
ovl_clear_flag(OVL_VERIFIED_DIGEST, d_inode(c->dentry));
fs/overlayfs/copy_up.c
1116
ovl_set_upperdata(d_inode(c->dentry));
fs/overlayfs/copy_up.c
1123
static int ovl_copy_up_one(struct dentry *parent, struct dentry *dentry,
fs/overlayfs/copy_up.c
1131
.dentry = dentry,
fs/overlayfs/copy_up.c
1132
.workdir = ovl_workdir(dentry),
fs/overlayfs/copy_up.c
1138
ovl_path_lower(dentry, &ctx.lowerpath);
fs/overlayfs/copy_up.c
1157
ctx.metadata_fsync = ovl_should_sync_metadata(OVL_FS(dentry->d_sb)) &&
fs/overlayfs/copy_up.c
1159
ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags);
fs/overlayfs/copy_up.c
1163
ctx.destdir = parentpath.dentry;
fs/overlayfs/copy_up.c
1177
ctx.link = vfs_get_link(ctx.lowerpath.dentry, &done);
fs/overlayfs/copy_up.c
1182
err = ovl_copy_up_start(dentry, flags);
fs/overlayfs/copy_up.c
1188
if (!ovl_dentry_upper(dentry))
fs/overlayfs/copy_up.c
1190
if (!err && parent && !ovl_dentry_has_upper_alias(dentry))
fs/overlayfs/copy_up.c
1192
if (!err && ovl_dentry_needs_data_copy_up_locked(dentry, flags))
fs/overlayfs/copy_up.c
1194
ovl_copy_up_end(dentry);
fs/overlayfs/copy_up.c
1201
static int ovl_copy_up_flags(struct dentry *dentry, int flags)
fs/overlayfs/copy_up.c
1204
bool disconnected = (dentry->d_flags & DCACHE_DISCONNECTED);
fs/overlayfs/copy_up.c
1211
if (WARN_ON(disconnected && d_is_dir(dentry)))
fs/overlayfs/copy_up.c
1219
err = ovl_verify_lowerdata(dentry);
fs/overlayfs/copy_up.c
1224
struct dentry *next;
fs/overlayfs/copy_up.c
1225
struct dentry *parent = NULL;
fs/overlayfs/copy_up.c
1227
if (ovl_already_copied_up(dentry, flags))
fs/overlayfs/copy_up.c
1230
next = dget(dentry);
fs/overlayfs/copy_up.c
1242
with_ovl_creds(dentry->d_sb)
fs/overlayfs/copy_up.c
1252
static bool ovl_open_need_copy_up(struct dentry *dentry, int flags)
fs/overlayfs/copy_up.c
1255
if (ovl_already_copied_up(dentry, flags))
fs/overlayfs/copy_up.c
1258
if (special_file(d_inode(dentry)->i_mode))
fs/overlayfs/copy_up.c
1267
int ovl_maybe_copy_up(struct dentry *dentry, int flags)
fs/overlayfs/copy_up.c
1269
if (!ovl_open_need_copy_up(dentry, flags))
fs/overlayfs/copy_up.c
1272
return ovl_copy_up_flags(dentry, flags);
fs/overlayfs/copy_up.c
1275
int ovl_copy_up_with_data(struct dentry *dentry)
fs/overlayfs/copy_up.c
1277
return ovl_copy_up_flags(dentry, O_WRONLY);
fs/overlayfs/copy_up.c
1280
int ovl_copy_up(struct dentry *dentry)
fs/overlayfs/copy_up.c
1282
return ovl_copy_up_flags(dentry, 0);
fs/overlayfs/copy_up.c
184
old->dentry, err);
fs/overlayfs/copy_up.c
195
err = ovl_set_protattr(inode, new->dentry, &oldfa);
fs/overlayfs/copy_up.c
217
new->dentry, err);
fs/overlayfs/copy_up.c
260
static int ovl_copy_up_file(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/copy_up.c
274
ovl_path_lowerdata(dentry, &datapath);
fs/overlayfs/copy_up.c
275
if (WARN_ON_ONCE(datapath.dentry == NULL) ||
fs/overlayfs/copy_up.c
369
struct dentry *upperdentry, struct kstat *stat)
fs/overlayfs/copy_up.c
379
static int ovl_set_timestamps(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/copy_up.c
392
int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/copy_up.c
47
struct dentry *dentry, const char *acl_name)
fs/overlayfs/copy_up.c
473
struct ovl_fh *ovl_get_origin_fh(struct ovl_fs *ofs, struct dentry *origin)
fs/overlayfs/copy_up.c
487
struct dentry *upper)
fs/overlayfs/copy_up.c
502
static int ovl_set_upper_fh(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/copy_up.c
503
struct dentry *index)
fs/overlayfs/copy_up.c
521
static int ovl_create_index(struct dentry *dentry, const struct ovl_fh *fh,
fs/overlayfs/copy_up.c
522
struct dentry *upper)
fs/overlayfs/copy_up.c
524
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/copy_up.c
525
struct dentry *indexdir = ovl_indexdir(dentry->d_sb);
fs/overlayfs/copy_up.c
526
struct dentry *temp = NULL;
fs/overlayfs/copy_up.c
539
if (WARN_ON(!d_is_dir(dentry)))
fs/overlayfs/copy_up.c
543
if (WARN_ON(ovl_test_flag(OVL_INDEX, d_inode(dentry))))
fs/overlayfs/copy_up.c
578
struct dentry *parent;
fs/overlayfs/copy_up.c
579
struct dentry *dentry;
fs/overlayfs/copy_up.c
584
struct dentry *destdir;
fs/overlayfs/copy_up.c
586
struct dentry *workdir;
fs/overlayfs/copy_up.c
598
struct dentry *upper;
fs/overlayfs/copy_up.c
599
struct dentry *upperdir = ovl_dentry_upper(c->parent);
fs/overlayfs/copy_up.c
600
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
603
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
610
err = ovl_set_nlink_lower(c->dentry);
fs/overlayfs/copy_up.c
615
&QSTR_LEN(c->dentry->d_name.name,
fs/overlayfs/copy_up.c
616
c->dentry->d_name.len));
fs/overlayfs/copy_up.c
619
err = ovl_do_link(ofs, ovl_dentry_upper(c->dentry), udir, upper);
fs/overlayfs/copy_up.c
624
ovl_dentry_set_upper_alias(c->dentry);
fs/overlayfs/copy_up.c
625
ovl_dentry_update_reval(c->dentry, upper);
fs/overlayfs/copy_up.c
632
err = ovl_set_nlink_upper(c->dentry);
fs/overlayfs/copy_up.c
635
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
641
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
652
err = ovl_copy_up_file(ofs, c->dentry, new_file, c->stat.size,
fs/overlayfs/copy_up.c
659
static int ovl_copy_up_metadata(struct ovl_copy_up_ctx *c, struct dentry *temp)
fs/overlayfs/copy_up.c
661
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
662
struct inode *inode = d_inode(c->dentry);
fs/overlayfs/copy_up.c
663
struct path upperpath = { .mnt = ovl_upper_mnt(ofs), .dentry = temp };
fs/overlayfs/copy_up.c
666
err = ovl_copy_xattr(c->dentry->d_sb, &c->lowerpath, temp);
fs/overlayfs/copy_up.c
68
err = ovl_do_set_acl(ofs, dentry, acl_name, clone);
fs/overlayfs/copy_up.c
698
ovl_path_lowerdata(c->dentry, &lowerdatapath);
fs/overlayfs/copy_up.c
699
if (WARN_ON_ONCE(lowerdatapath.dentry == NULL))
fs/overlayfs/copy_up.c
727
static const struct cred *ovl_prepare_copy_up_creds(struct dentry *dentry)
fs/overlayfs/copy_up.c
732
err = security_inode_copy_up(dentry, ©_up_cred);
fs/overlayfs/copy_up.c
75
int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct dentry *new)
fs/overlayfs/copy_up.c
752
ovl_prepare_copy_up_creds(dentry), struct dentry *dentry)
fs/overlayfs/copy_up.c
760
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
764
struct dentry *temp;
fs/overlayfs/copy_up.c
77
struct dentry *old = oldpath->dentry;
fs/overlayfs/copy_up.c
773
scoped_class(copy_up_creds, copy_up_creds, c->dentry) {
fs/overlayfs/copy_up.c
777
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
779
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
789
path.dentry = temp;
fs/overlayfs/copy_up.c
791
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
796
err = ovl_create_index(c->dentry, c->origin_fh, temp);
fs/overlayfs/copy_up.c
828
inode = d_inode(c->dentry);
fs/overlayfs/copy_up.c
841
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
854
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
856
struct dentry *temp, *upper;
fs/overlayfs/copy_up.c
860
scoped_class(copy_up_creds, copy_up_creds, c->dentry) {
fs/overlayfs/copy_up.c
864
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
866
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
872
temp = tmpfile->f_path.dentry;
fs/overlayfs/copy_up.c
874
err = ovl_copy_up_file(ofs, c->dentry, tmpfile, c->stat.size,
fs/overlayfs/copy_up.c
880
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
899
ovl_set_flag(OVL_HAS_DIGEST, d_inode(c->dentry));
fs/overlayfs/copy_up.c
901
ovl_clear_flag(OVL_HAS_DIGEST, d_inode(c->dentry));
fs/overlayfs/copy_up.c
902
ovl_clear_flag(OVL_VERIFIED_DIGEST, d_inode(c->dentry));
fs/overlayfs/copy_up.c
905
ovl_set_upperdata(d_inode(c->dentry));
fs/overlayfs/copy_up.c
906
ovl_inode_update(d_inode(c->dentry), dget(temp));
fs/overlayfs/copy_up.c
909
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
927
struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb);
fs/overlayfs/copy_up.c
928
struct dentry *origin = c->lowerpath.dentry;
fs/overlayfs/copy_up.c
938
if (ovl_need_index(c->dentry)) {
fs/overlayfs/copy_up.c
941
c->workdir = ovl_indexdir(c->dentry->d_sb);
fs/overlayfs/copy_up.c
957
c->destdir = ovl_indexdir(c->dentry->d_sb);
fs/overlayfs/copy_up.c
972
c->destname = c->dentry->d_name;
fs/overlayfs/copy_up.c
977
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
979
ovl_end_write(c->dentry);
fs/overlayfs/copy_up.c
993
ovl_set_flag(OVL_INDEX, d_inode(c->dentry));
fs/overlayfs/copy_up.c
995
ovl_start_write(c->dentry);
fs/overlayfs/copy_up.c
998
err = ovl_set_nlink_upper(c->dentry);
fs/overlayfs/dir.c
1001
ret = kstrndup(dentry->d_name.name, dentry->d_name.len,
fs/overlayfs/dir.c
1012
for (d = dget(dentry); !IS_ROOT(d);) {
fs/overlayfs/dir.c
1054
static bool ovl_need_absolute_redirect(struct dentry *dentry, bool samedir)
fs/overlayfs/dir.c
1056
struct dentry *lowerdentry;
fs/overlayfs/dir.c
1061
if (d_is_dir(dentry))
fs/overlayfs/dir.c
1077
lowerdentry = ovl_dentry_lower(dentry);
fs/overlayfs/dir.c
1081
static int ovl_set_redirect(struct dentry *dentry, bool samedir)
fs/overlayfs/dir.c
1084
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
1085
const char *redirect = ovl_dentry_get_redirect(dentry);
fs/overlayfs/dir.c
1086
bool absolute_redirect = ovl_need_absolute_redirect(dentry, samedir);
fs/overlayfs/dir.c
1091
redirect = ovl_get_redirect(dentry, absolute_redirect);
fs/overlayfs/dir.c
1095
err = ovl_check_setxattr(ofs, ovl_dentry_upper(dentry),
fs/overlayfs/dir.c
1099
spin_lock(&dentry->d_lock);
fs/overlayfs/dir.c
1100
ovl_dentry_set_redirect(dentry, redirect);
fs/overlayfs/dir.c
1101
spin_unlock(&dentry->d_lock);
fs/overlayfs/dir.c
1114
struct dentry *opaquedir;
fs/overlayfs/dir.c
1122
struct dentry *old = ovlrd->old_dentry;
fs/overlayfs/dir.c
1123
struct dentry *new = ovlrd->new_dentry;
fs/overlayfs/dir.c
1193
struct dentry *old = ovlrd->old_dentry;
fs/overlayfs/dir.c
1194
struct dentry *new = ovlrd->new_dentry;
fs/overlayfs/dir.c
1196
struct dentry *old_upperdir = ovl_dentry_upper(old->d_parent);
fs/overlayfs/dir.c
1197
struct dentry *new_upperdir = ovl_dentry_upper(new->d_parent);
fs/overlayfs/dir.c
1202
struct dentry *de;
fs/overlayfs/dir.c
1203
struct dentry *whiteout = NULL;
fs/overlayfs/dir.c
122
int ovl_cleanup_and_whiteout(struct ovl_fs *ofs, struct dentry *dir,
fs/overlayfs/dir.c
123
struct dentry *dentry)
fs/overlayfs/dir.c
125
struct dentry *whiteout;
fs/overlayfs/dir.c
1334
struct dentry *old, struct inode *newdir,
fs/overlayfs/dir.c
1335
struct dentry *new, unsigned int flags)
fs/overlayfs/dir.c
135
if (d_is_dir(dentry))
fs/overlayfs/dir.c
1360
static int ovl_create_tmpfile(struct file *file, struct dentry *dentry,
fs/overlayfs/dir.c
1366
struct dentry *newdentry;
fs/overlayfs/dir.c
1371
scoped_class(override_creds_ovl, original_creds, dentry->d_sb) {
fs/overlayfs/dir.c
1372
scoped_class(ovl_override_creator_creds, cred, original_creds, dentry, inode, mode) {
fs/overlayfs/dir.c
1376
ovl_path_upper(dentry->d_parent, &realparentpath);
fs/overlayfs/dir.c
1380
pr_debug("tmpfile/open(%pd2, 0%o) = %i\n", realparentpath.dentry, mode, err);
fs/overlayfs/dir.c
1391
newdentry = dget(realfile->f_path.dentry);
fs/overlayfs/dir.c
1392
err = ovl_instantiate(dentry, inode, newdentry, false, file);
fs/overlayfs/dir.c
1413
struct dentry *dentry = file->f_path.dentry;
fs/overlayfs/dir.c
1416
if (!OVL_FS(dentry->d_sb)->tmpfile)
fs/overlayfs/dir.c
1419
err = ovl_copy_up(dentry->d_parent);
fs/overlayfs/dir.c
142
err = start_renaming_two_dentries(&rd, whiteout, dentry);
fs/overlayfs/dir.c
1423
err = ovl_want_write(dentry);
fs/overlayfs/dir.c
1428
inode = ovl_new_inode(dentry->d_sb, mode, 0);
fs/overlayfs/dir.c
1433
err = ovl_create_tmpfile(file, dentry, inode, inode->i_mode);
fs/overlayfs/dir.c
1443
if (WARN_ON(inode != d_inode(dentry)))
fs/overlayfs/dir.c
1448
err = finish_open(file, dentry, ovl_dummy_open);
fs/overlayfs/dir.c
1456
ovl_drop_write(dentry);
fs/overlayfs/dir.c
150
ovl_cleanup(ofs, ofs->workdir, dentry);
fs/overlayfs/dir.c
161
struct dentry *ovl_create_real(struct ovl_fs *ofs, struct dentry *parent,
fs/overlayfs/dir.c
162
struct dentry *newdentry, struct ovl_cattr *attr)
fs/overlayfs/dir.c
221
struct dentry *d;
fs/overlayfs/dir.c
246
struct dentry *ovl_create_temp(struct ovl_fs *ofs, struct dentry *workdir,
fs/overlayfs/dir.c
249
struct dentry *ret;
fs/overlayfs/dir.c
25
static int ovl_set_redirect(struct dentry *dentry, bool samedir);
fs/overlayfs/dir.c
257
static int ovl_set_opaque_xerr(struct dentry *dentry, struct dentry *upper,
fs/overlayfs/dir.c
260
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
265
ovl_dentry_set_opaque(dentry);
fs/overlayfs/dir.c
270
static int ovl_set_opaque(struct dentry *dentry, struct dentry *upperdentry)
fs/overlayfs/dir.c
277
return ovl_set_opaque_xerr(dentry, upperdentry, -EIO);
fs/overlayfs/dir.c
28
struct dentry *wdentry)
fs/overlayfs/dir.c
285
static int ovl_instantiate(struct dentry *dentry, struct inode *inode,
fs/overlayfs/dir.c
286
struct dentry *newdentry, bool hardlink, struct file *tmpfile)
fs/overlayfs/dir.c
293
ovl_dentry_set_upper_alias(dentry);
fs/overlayfs/dir.c
294
ovl_dentry_init_reval(dentry, newdentry, NULL);
fs/overlayfs/dir.c
310
inode = ovl_get_inode(dentry->d_sb, &oip);
fs/overlayfs/dir.c
324
d_instantiate(dentry, inode);
fs/overlayfs/dir.c
327
dentry);
fs/overlayfs/dir.c
332
d_drop(dentry);
fs/overlayfs/dir.c
337
static bool ovl_type_merge(struct dentry *dentry)
fs/overlayfs/dir.c
339
return OVL_TYPE_MERGE(ovl_path_type(dentry));
fs/overlayfs/dir.c
342
static bool ovl_type_origin(struct dentry *dentry)
fs/overlayfs/dir.c
344
return OVL_TYPE_ORIGIN(ovl_path_type(dentry));
fs/overlayfs/dir.c
347
static int ovl_create_upper(struct dentry *dentry, struct inode *inode,
fs/overlayfs/dir.c
350
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
351
struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent);
fs/overlayfs/dir.c
352
struct dentry *newdentry;
fs/overlayfs/dir.c
356
&QSTR_LEN(dentry->d_name.name,
fs/overlayfs/dir.c
357
dentry->d_name.len));
fs/overlayfs/dir.c
366
if (ovl_type_merge(dentry->d_parent) && d_is_dir(newdentry) &&
fs/overlayfs/dir.c
369
ovl_set_opaque(dentry, newdentry);
fs/overlayfs/dir.c
372
ovl_dir_modified(dentry->d_parent, false);
fs/overlayfs/dir.c
373
err = ovl_instantiate(dentry, inode, newdentry, !!attr->hardlink, NULL);
fs/overlayfs/dir.c
384
static struct dentry *ovl_clear_empty(struct dentry *dentry,
fs/overlayfs/dir.c
387
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
388
struct dentry *workdir = ovl_workdir(dentry);
fs/overlayfs/dir.c
389
struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent);
fs/overlayfs/dir.c
392
struct dentry *upper;
fs/overlayfs/dir.c
393
struct dentry *opaquedir;
fs/overlayfs/dir.c
400
ovl_path_upper(dentry, &upperpath);
fs/overlayfs/dir.c
409
upper = upperpath.dentry;
fs/overlayfs/dir.c
424
err = ovl_copy_xattr(dentry->d_sb, &upperpath, opaquedir);
fs/overlayfs/dir.c
428
err = ovl_set_opaque(dentry, opaquedir);
fs/overlayfs/dir.c
447
d_drop(dentry);
fs/overlayfs/dir.c
460
static int ovl_set_upper_acl(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/dir.c
469
static int ovl_create_over_whiteout(struct dentry *dentry, struct inode *inode,
fs/overlayfs/dir.c
47
int ovl_cleanup(struct ovl_fs *ofs, struct dentry *workdir,
fs/overlayfs/dir.c
472
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
473
struct dentry *workdir = ovl_workdir(dentry);
fs/overlayfs/dir.c
474
struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent);
fs/overlayfs/dir.c
476
struct dentry *upper;
fs/overlayfs/dir.c
477
struct dentry *newdentry;
fs/overlayfs/dir.c
48
struct dentry *wdentry)
fs/overlayfs/dir.c
486
err = posix_acl_create(dentry->d_parent->d_inode,
fs/overlayfs/dir.c
492
upper = ovl_lookup_upper_unlocked(ofs, dentry->d_name.name, upperdir,
fs/overlayfs/dir.c
493
dentry->d_name.len);
fs/overlayfs/dir.c
544
err = ovl_set_opaque(dentry, newdentry);
fs/overlayfs/dir.c
561
ovl_dir_modified(dentry->d_parent, false);
fs/overlayfs/dir.c
562
err = ovl_instantiate(dentry, inode, newdentry, hardlink, NULL);
fs/overlayfs/dir.c
585
struct dentry *dentry, struct inode *inode, umode_t mode)
fs/overlayfs/dir.c
589
if (WARN_ON_ONCE(current->cred != ovl_creds(dentry->d_sb)))
fs/overlayfs/dir.c
599
err = security_dentry_create_files_as(dentry, mode, &dentry->d_name,
fs/overlayfs/dir.c
618
ovl_override_creator_creds(original_creds, dentry, inode, mode),
fs/overlayfs/dir.c
620
struct dentry *dentry,
fs/overlayfs/dir.c
624
static int ovl_create_handle_whiteouts(struct dentry *dentry,
fs/overlayfs/dir.c
628
if (!ovl_dentry_is_whiteout(dentry))
fs/overlayfs/dir.c
629
return ovl_create_upper(dentry, inode, attr);
fs/overlayfs/dir.c
631
return ovl_create_over_whiteout(dentry, inode, attr);
fs/overlayfs/dir.c
634
static int ovl_create_or_link(struct dentry *dentry, struct inode *inode,
fs/overlayfs/dir.c
638
struct dentry *parent = dentry->d_parent;
fs/overlayfs/dir.c
640
scoped_class(override_creds_ovl, original_creds, dentry->d_sb) {
fs/overlayfs/dir.c
666
return ovl_create_handle_whiteouts(dentry, inode, attr);
fs/overlayfs/dir.c
668
scoped_class(ovl_override_creator_creds, cred, original_creds, dentry, inode, attr->mode) {
fs/overlayfs/dir.c
671
return ovl_create_handle_whiteouts(dentry, inode, attr);
fs/overlayfs/dir.c
677
static int ovl_create_object(struct dentry *dentry, int mode, dev_t rdev,
fs/overlayfs/dir.c
68
static struct dentry *ovl_start_creating_temp(struct ovl_fs *ofs,
fs/overlayfs/dir.c
687
err = ovl_copy_up(dentry->d_parent);
fs/overlayfs/dir.c
69
struct dentry *workdir)
fs/overlayfs/dir.c
691
err = ovl_want_write(dentry);
fs/overlayfs/dir.c
697
inode = ovl_new_inode(dentry->d_sb, mode, rdev);
fs/overlayfs/dir.c
705
inode_init_owner(&nop_mnt_idmap, inode, dentry->d_parent->d_inode, mode);
fs/overlayfs/dir.c
708
err = ovl_create_or_link(dentry, inode, &attr, false);
fs/overlayfs/dir.c
710
if (inode != d_inode(dentry))
fs/overlayfs/dir.c
714
ovl_drop_write(dentry);
fs/overlayfs/dir.c
720
struct dentry *dentry, umode_t mode, bool excl)
fs/overlayfs/dir.c
722
return ovl_create_object(dentry, (mode & 07777) | S_IFREG, 0, NULL);
fs/overlayfs/dir.c
725
static struct dentry *ovl_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/overlayfs/dir.c
726
struct dentry *dentry, umode_t mode)
fs/overlayfs/dir.c
728
return ERR_PTR(ovl_create_object(dentry, (mode & 07777) | S_IFDIR, 0, NULL));
fs/overlayfs/dir.c
732
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/overlayfs/dir.c
738
return ovl_create_object(dentry, mode, rdev, NULL);
fs/overlayfs/dir.c
742
struct dentry *dentry, const char *link)
fs/overlayfs/dir.c
744
return ovl_create_object(dentry, S_IFLNK, 0, link);
fs/overlayfs/dir.c
747
static int ovl_set_link_redirect(struct dentry *dentry)
fs/overlayfs/dir.c
749
with_ovl_creds(dentry->d_sb)
fs/overlayfs/dir.c
750
return ovl_set_redirect(dentry, false);
fs/overlayfs/dir.c
753
static int ovl_link(struct dentry *old, struct inode *newdir,
fs/overlayfs/dir.c
754
struct dentry *new)
fs/overlayfs/dir.c
78
static struct dentry *ovl_whiteout(struct ovl_fs *ofs)
fs/overlayfs/dir.c
792
static bool ovl_matches_upper(struct dentry *dentry, struct dentry *upper)
fs/overlayfs/dir.c
794
return d_inode(ovl_dentry_upper(dentry)) == d_inode(upper);
fs/overlayfs/dir.c
797
static int ovl_remove_and_whiteout(struct dentry *dentry,
fs/overlayfs/dir.c
800
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
801
struct dentry *workdir = ovl_workdir(dentry);
fs/overlayfs/dir.c
802
struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent);
fs/overlayfs/dir.c
803
struct dentry *upper;
fs/overlayfs/dir.c
804
struct dentry *opaquedir = NULL;
fs/overlayfs/dir.c
81
struct dentry *whiteout, *link;
fs/overlayfs/dir.c
811
opaquedir = ovl_clear_empty(dentry, list);
fs/overlayfs/dir.c
817
upper = ovl_lookup_upper_unlocked(ofs, dentry->d_name.name, upperdir,
fs/overlayfs/dir.c
818
dentry->d_name.len);
fs/overlayfs/dir.c
82
struct dentry *workdir = ofs->workdir;
fs/overlayfs/dir.c
825
(!opaquedir && ovl_dentry_upper(dentry) &&
fs/overlayfs/dir.c
826
!ovl_matches_upper(dentry, upper))) {
fs/overlayfs/dir.c
832
ovl_dir_modified(dentry->d_parent, true);
fs/overlayfs/dir.c
834
d_drop(dentry);
fs/overlayfs/dir.c
843
static int ovl_remove_upper(struct dentry *dentry, bool is_dir,
fs/overlayfs/dir.c
846
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/dir.c
847
struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent);
fs/overlayfs/dir.c
849
struct dentry *upper;
fs/overlayfs/dir.c
850
struct dentry *opaquedir = NULL;
fs/overlayfs/dir.c
854
opaquedir = ovl_clear_empty(dentry, list);
fs/overlayfs/dir.c
861
&QSTR_LEN(dentry->d_name.name,
fs/overlayfs/dir.c
862
dentry->d_name.len));
fs/overlayfs/dir.c
869
(!opaquedir && !ovl_matches_upper(dentry, upper)))
fs/overlayfs/dir.c
876
ovl_dir_modified(dentry->d_parent, ovl_type_origin(dentry));
fs/overlayfs/dir.c
885
d_drop(dentry);
fs/overlayfs/dir.c
894
static bool ovl_pure_upper(struct dentry *dentry)
fs/overlayfs/dir.c
896
return !ovl_dentry_lower(dentry) &&
fs/overlayfs/dir.c
897
!ovl_test_flag(OVL_WHITEOUTS, d_inode(dentry));
fs/overlayfs/dir.c
900
static void ovl_drop_nlink(struct dentry *dentry)
fs/overlayfs/dir.c
902
struct inode *inode = d_inode(dentry);
fs/overlayfs/dir.c
903
struct dentry *alias;
fs/overlayfs/dir.c
908
if (alias != dentry && !d_unhashed(alias))
fs/overlayfs/dir.c
922
static int ovl_do_remove(struct dentry *dentry, bool is_dir)
fs/overlayfs/dir.c
925
bool lower_positive = ovl_lower_positive(dentry);
fs/overlayfs/dir.c
929
if (is_dir && (lower_positive || !ovl_pure_upper(dentry))) {
fs/overlayfs/dir.c
930
err = ovl_check_empty_dir(dentry, &list);
fs/overlayfs/dir.c
935
err = ovl_copy_up(dentry->d_parent);
fs/overlayfs/dir.c
939
err = ovl_nlink_start(dentry);
fs/overlayfs/dir.c
943
with_ovl_creds(dentry->d_sb) {
fs/overlayfs/dir.c
945
err = ovl_remove_upper(dentry, is_dir, &list);
fs/overlayfs/dir.c
947
err = ovl_remove_and_whiteout(dentry, &list);
fs/overlayfs/dir.c
951
clear_nlink(dentry->d_inode);
fs/overlayfs/dir.c
953
ovl_drop_nlink(dentry);
fs/overlayfs/dir.c
955
ovl_nlink_end(dentry);
fs/overlayfs/dir.c
963
if (ovl_dentry_upper(dentry))
fs/overlayfs/dir.c
964
ovl_copyattr(d_inode(dentry));
fs/overlayfs/dir.c
971
static int ovl_unlink(struct inode *dir, struct dentry *dentry)
fs/overlayfs/dir.c
973
return ovl_do_remove(dentry, false);
fs/overlayfs/dir.c
976
static int ovl_rmdir(struct inode *dir, struct dentry *dentry)
fs/overlayfs/dir.c
978
return ovl_do_remove(dentry, true);
fs/overlayfs/dir.c
981
static bool ovl_type_merge_or_lower(struct dentry *dentry)
fs/overlayfs/dir.c
983
enum ovl_path_type type = ovl_path_type(dentry);
fs/overlayfs/dir.c
988
static bool ovl_can_move(struct dentry *dentry)
fs/overlayfs/dir.c
990
return ovl_redirect_dir(OVL_FS(dentry->d_sb)) ||
fs/overlayfs/dir.c
991
!d_is_dir(dentry) || !ovl_type_merge_or_lower(dentry);
fs/overlayfs/dir.c
994
static char *ovl_get_redirect(struct dentry *dentry, bool abs_redirect)
fs/overlayfs/dir.c
997
struct dentry *d, *tmp;
fs/overlayfs/export.c
100
static int ovl_connect_layer(struct dentry *dentry)
fs/overlayfs/export.c
102
struct dentry *next, *parent = NULL;
fs/overlayfs/export.c
103
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/export.c
107
if (WARN_ON(dentry == dentry->d_sb->s_root) ||
fs/overlayfs/export.c
108
WARN_ON(!ovl_dentry_lower(dentry)))
fs/overlayfs/export.c
112
if (ovl_dentry_test_flag(OVL_E_CONNECTED, dentry))
fs/overlayfs/export.c
116
next = dget(dentry);
fs/overlayfs/export.c
146
ovl_dentry_set_flag(OVL_E_CONNECTED, dentry);
fs/overlayfs/export.c
183
struct dentry *dentry;
fs/overlayfs/export.c
19
static int ovl_encode_maybe_copy_up(struct dentry *dentry)
fs/overlayfs/export.c
221
dentry = d_find_any_alias(inode);
fs/overlayfs/export.c
222
if (!dentry)
fs/overlayfs/export.c
225
err = ovl_connect_layer(dentry);
fs/overlayfs/export.c
226
dput(dentry);
fs/overlayfs/export.c
23
if (ovl_dentry_upper(dentry))
fs/overlayfs/export.c
26
err = ovl_copy_up(dentry);
fs/overlayfs/export.c
29
dentry, err);
fs/overlayfs/export.c
294
static struct dentry *ovl_obtain_alias(struct super_block *sb,
fs/overlayfs/export.c
295
struct dentry *upper_alias,
fs/overlayfs/export.c
297
struct dentry *index)
fs/overlayfs/export.c
299
struct dentry *lower = lowerpath ? lowerpath->dentry : NULL;
fs/overlayfs/export.c
300
struct dentry *upper = upper_alias ?: index;
fs/overlayfs/export.c
317
ovl_lowerstack(oe)->dentry = dget(lower);
fs/overlayfs/export.c
335
static struct dentry *ovl_dentry_real_at(struct dentry *dentry, int idx)
fs/overlayfs/export.c
337
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/export.c
342
return ovl_dentry_upper(dentry);
fs/overlayfs/export.c
346
return lowerstack[i].dentry;
fs/overlayfs/export.c
358
static struct dentry *ovl_lookup_real_one(struct dentry *connected,
fs/overlayfs/export.c
359
struct dentry *real,
fs/overlayfs/export.c
363
struct dentry *this, *parent = NULL;
fs/overlayfs/export.c
417
static struct dentry *ovl_lookup_real(struct super_block *sb,
fs/overlayfs/export.c
418
struct dentry *real,
fs/overlayfs/export.c
424
static struct dentry *ovl_lookup_real_inode(struct super_block *sb,
fs/overlayfs/export.c
425
struct dentry *real,
fs/overlayfs/export.c
429
struct dentry *index = NULL;
fs/overlayfs/export.c
430
struct dentry *this = NULL;
fs/overlayfs/export.c
457
struct dentry *upper = ovl_index_upper(ofs, index, true);
fs/overlayfs/export.c
489
static struct dentry *ovl_lookup_real_ancestor(struct super_block *sb,
fs/overlayfs/export.c
490
struct dentry *real,
fs/overlayfs/export.c
493
struct dentry *next, *parent = NULL;
fs/overlayfs/export.c
494
struct dentry *ancestor = ERR_PTR(-EIO);
fs/overlayfs/export.c
542
static struct dentry *ovl_lookup_real(struct super_block *sb,
fs/overlayfs/export.c
543
struct dentry *real,
fs/overlayfs/export.c
546
struct dentry *connected;
fs/overlayfs/export.c
554
struct dentry *next, *this;
fs/overlayfs/export.c
555
struct dentry *parent = NULL;
fs/overlayfs/export.c
556
struct dentry *real_connected = ovl_dentry_real_at(connected,
fs/overlayfs/export.c
644
static struct dentry *ovl_get_dentry(struct super_block *sb,
fs/overlayfs/export.c
645
struct dentry *upper,
fs/overlayfs/export.c
647
struct dentry *index)
fs/overlayfs/export.c
651
struct dentry *real = upper ?: (index ?: lowerpath->dentry);
fs/overlayfs/export.c
671
static struct dentry *ovl_upper_fh_to_d(struct super_block *sb,
fs/overlayfs/export.c
675
struct dentry *dentry;
fs/overlayfs/export.c
676
struct dentry *upper;
fs/overlayfs/export.c
685
dentry = ovl_get_dentry(sb, upper, NULL, NULL);
fs/overlayfs/export.c
688
return dentry;
fs/overlayfs/export.c
691
static struct dentry *ovl_lower_fh_to_d(struct super_block *sb,
fs/overlayfs/export.c
697
struct dentry *dentry = NULL;
fs/overlayfs/export.c
698
struct dentry *index = NULL;
fs/overlayfs/export.c
707
if (!d_is_dir(origin.dentry) ||
fs/overlayfs/export.c
708
!(origin.dentry->d_flags & DCACHE_DISCONNECTED)) {
fs/overlayfs/export.c
709
inode = ovl_lookup_inode(sb, origin.dentry, false);
fs/overlayfs/export.c
714
dentry = d_find_any_alias(inode);
fs/overlayfs/export.c
716
if (dentry)
fs/overlayfs/export.c
72
static int ovl_connectable_layer(struct dentry *dentry)
fs/overlayfs/export.c
733
struct dentry *upper = ovl_index_upper(ofs, index, true);
fs/overlayfs/export.c
739
dentry = ovl_get_dentry(sb, upper, NULL, NULL);
fs/overlayfs/export.c
74
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/export.c
745
if (d_is_dir(origin.dentry)) {
fs/overlayfs/export.c
746
dput(origin.dentry);
fs/overlayfs/export.c
747
origin.dentry = NULL;
fs/overlayfs/export.c
753
err = ovl_verify_origin(ofs, index, origin.dentry, false);
fs/overlayfs/export.c
759
dentry = ovl_get_dentry(sb, NULL, &origin, index);
fs/overlayfs/export.c
762
dput(origin.dentry);
fs/overlayfs/export.c
764
return dentry;
fs/overlayfs/export.c
767
dentry = ERR_PTR(err);
fs/overlayfs/export.c
77
if (dentry == dentry->d_sb->s_root)
fs/overlayfs/export.c
794
static struct dentry *ovl_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/overlayfs/export.c
797
struct dentry *dentry = NULL;
fs/overlayfs/export.c
813
dentry = (flags & OVL_FH_FLAG_PATH_UPPER) ?
fs/overlayfs/export.c
816
err = PTR_ERR(dentry);
fs/overlayfs/export.c
817
if (IS_ERR(dentry) && err != -ESTALE)
fs/overlayfs/export.c
825
return dentry;
fs/overlayfs/export.c
830
dentry = ERR_PTR(err);
fs/overlayfs/export.c
834
static struct dentry *ovl_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/overlayfs/export.c
84
if (ovl_dentry_upper(dentry) &&
fs/overlayfs/export.c
841
static int ovl_get_name(struct dentry *parent, char *name,
fs/overlayfs/export.c
842
struct dentry *child)
fs/overlayfs/export.c
85
!ovl_test_flag(OVL_INDEX, d_inode(dentry)))
fs/overlayfs/export.c
852
static struct dentry *ovl_get_parent(struct dentry *dentry)
fs/overlayfs/file.c
119
return file_inode(realfile) == d_inode(realpath->dentry);
fs/overlayfs/file.c
128
if (WARN_ON_ONCE(!realpath->dentry))
fs/overlayfs/file.c
176
struct dentry *dentry = file_dentry(file);
fs/overlayfs/file.c
180
if (d_is_dir(dentry)) {
fs/overlayfs/file.c
189
err = ovl_verify_lowerdata(dentry);
fs/overlayfs/file.c
193
ovl_path_realdata(dentry, &realpath);
fs/overlayfs/file.c
200
struct dentry *dentry = file_dentry(file);
fs/overlayfs/file.c
207
err = ovl_verify_lowerdata(dentry);
fs/overlayfs/file.c
211
err = ovl_maybe_copy_up(dentry, file->f_flags);
fs/overlayfs/file.c
218
ovl_path_realdata(dentry, &realpath);
fs/overlayfs/file.c
219
if (!realpath.dentry)
fs/overlayfs/file.c
31
struct inode *realinode = d_inode(realpath->dentry);
fs/overlayfs/file.c
444
struct dentry *dentry = file_dentry(file);
fs/overlayfs/file.c
455
type = ovl_path_type(dentry);
fs/overlayfs/file.c
459
ovl_path_upper(dentry, &upperpath);
fs/overlayfs/inode.c
1047
static bool ovl_verify_inode(struct inode *inode, struct dentry *lowerdentry,
fs/overlayfs/inode.c
1048
struct dentry *upperdentry, bool strict)
fs/overlayfs/inode.c
108
stat->dev = dentry->d_sb->s_dev;
fs/overlayfs/inode.c
1085
struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
fs/overlayfs/inode.c
1103
bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir)
fs/overlayfs/inode.c
1125
struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir)
fs/overlayfs/inode.c
1154
static bool ovl_hash_bylower(struct super_block *sb, struct dentry *upper,
fs/overlayfs/inode.c
1155
struct dentry *lower, bool index)
fs/overlayfs/inode.c
1197
struct dentry *upperdentry = oip->upperdentry;
fs/overlayfs/inode.c
1201
struct dentry *lowerdentry = lowerpath ? lowerpath->dentry : NULL;
fs/overlayfs/inode.c
1203
.dentry = upperdentry ?: lowerdentry,
fs/overlayfs/inode.c
122
stat->dev = dentry->d_sb->s_dev;
fs/overlayfs/inode.c
126
dentry, stat->ino, xinobits);
fs/overlayfs/inode.c
131
if (S_ISDIR(dentry->d_inode->i_mode)) {
fs/overlayfs/inode.c
141
stat->dev = dentry->d_sb->s_dev;
fs/overlayfs/inode.c
142
stat->ino = dentry->d_inode->i_ino;
fs/overlayfs/inode.c
166
struct dentry *dentry = path->dentry;
fs/overlayfs/inode.c
167
struct super_block *sb = dentry->d_sb;
fs/overlayfs/inode.c
170
struct inode *inode = d_inode(dentry);
fs/overlayfs/inode.c
176
metacopy_blocks = ovl_is_metacopy_dentry(dentry);
fs/overlayfs/inode.c
178
type = ovl_path_real(dentry, &realpath);
fs/overlayfs/inode.c
195
if (!is_dir || ovl_same_dev(OVL_FS(dentry->d_sb))) {
fs/overlayfs/inode.c
197
fsid = ovl_layer_lower(dentry)->fsid;
fs/overlayfs/inode.c
203
ovl_path_lower(dentry, &realpath);
fs/overlayfs/inode.c
21
int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/overlayfs/inode.c
223
if (ovl_test_flag(OVL_INDEX, d_inode(dentry)) ||
fs/overlayfs/inode.c
224
(!ovl_verify_lower(dentry->d_sb) &&
fs/overlayfs/inode.c
226
fsid = ovl_layer_lower(dentry)->fsid;
fs/overlayfs/inode.c
238
realpath.dentry == ovl_dentry_lowerdata(dentry)) {
fs/overlayfs/inode.c
25
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/inode.c
254
ovl_path_lowerdata(dentry, &realpath);
fs/overlayfs/inode.c
255
if (realpath.dentry) {
fs/overlayfs/inode.c
268
ovl_map_dev_ino(dentry, stat, fsid);
fs/overlayfs/inode.c
27
struct dentry *upperdentry;
fs/overlayfs/inode.c
284
if (!is_dir && ovl_test_flag(OVL_INDEX, d_inode(dentry)))
fs/overlayfs/inode.c
285
stat->nlink = dentry->d_inode->i_nlink;
fs/overlayfs/inode.c
29
err = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/overlayfs/inode.c
324
static const char *ovl_get_link(struct dentry *dentry,
fs/overlayfs/inode.c
328
if (!dentry)
fs/overlayfs/inode.c
331
with_ovl_creds(dentry->d_sb)
fs/overlayfs/inode.c
332
return vfs_get_link(ovl_dentry_real(dentry), done);
fs/overlayfs/inode.c
39
err = ovl_copy_up(dentry);
fs/overlayfs/inode.c
394
struct inode *realinode = d_inode(path->dentry);
fs/overlayfs/inode.c
401
real_acl = vfs_get_acl(idmap, path->dentry, acl_name);
fs/overlayfs/inode.c
41
err = ovl_copy_up_with_data(dentry);
fs/overlayfs/inode.c
45
upperdentry = ovl_dentry_upper(dentry);
fs/overlayfs/inode.c
469
static int ovl_set_or_remove_acl(struct dentry *dentry, struct inode *inode,
fs/overlayfs/inode.c
475
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/inode.c
476
struct dentry *upperdentry = ovl_dentry_upper(dentry);
fs/overlayfs/inode.c
477
struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry);
fs/overlayfs/inode.c
487
ovl_path_lower(dentry, &realpath);
fs/overlayfs/inode.c
488
with_ovl_creds(dentry->d_sb)
fs/overlayfs/inode.c
498
err = ovl_copy_up(dentry);
fs/overlayfs/inode.c
502
realdentry = ovl_dentry_upper(dentry);
fs/overlayfs/inode.c
505
err = ovl_want_write(dentry);
fs/overlayfs/inode.c
509
with_ovl_creds(dentry->d_sb) {
fs/overlayfs/inode.c
515
ovl_drop_write(dentry);
fs/overlayfs/inode.c
523
int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/overlayfs/inode.c
527
struct inode *inode = d_inode(dentry);
fs/overlayfs/inode.c
528
struct dentry *workdir = ovl_workdir(dentry);
fs/overlayfs/inode.c
549
err = ovl_setattr(&nop_mnt_idmap, dentry, &iattr);
fs/overlayfs/inode.c
554
return ovl_set_or_remove_acl(dentry, inode, acl, type);
fs/overlayfs/inode.c
565
.dentry = ovl_upperdentry_dereference(OVL_I(inode)),
fs/overlayfs/inode.c
568
if (upperpath.dentry) {
fs/overlayfs/inode.c
573
inode_get_atime(d_inode(upperpath.dentry)));
fs/overlayfs/inode.c
634
return vfs_fileattr_set(mnt_idmap(realpath->mnt), realpath->dentry, fa);
fs/overlayfs/inode.c
638
struct dentry *dentry, struct file_kattr *fa)
fs/overlayfs/inode.c
640
struct inode *inode = d_inode(dentry);
fs/overlayfs/inode.c
645
err = ovl_copy_up(dentry);
fs/overlayfs/inode.c
647
ovl_path_real(dentry, &upperpath);
fs/overlayfs/inode.c
649
err = ovl_want_write(dentry);
fs/overlayfs/inode.c
661
err = ovl_set_protattr(inode, upperpath.dentry, fa);
fs/overlayfs/inode.c
665
ovl_drop_write(dentry);
fs/overlayfs/inode.c
708
err = vfs_fileattr_get(realpath->dentry, fa);
fs/overlayfs/inode.c
714
int ovl_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/overlayfs/inode.c
716
struct inode *inode = d_inode(dentry);
fs/overlayfs/inode.c
720
ovl_path_real(dentry, &realpath);
fs/overlayfs/inode.c
75
err = ovl_want_write(dentry);
fs/overlayfs/inode.c
80
with_ovl_creds(dentry->d_sb)
fs/overlayfs/inode.c
83
ovl_copyattr(dentry->d_inode);
fs/overlayfs/inode.c
85
ovl_drop_write(dentry);
fs/overlayfs/inode.c
95
static void ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid)
fs/overlayfs/inode.c
957
static int ovl_set_nlink_common(struct dentry *dentry,
fs/overlayfs/inode.c
958
struct dentry *realdentry, const char *format)
fs/overlayfs/inode.c
960
struct inode *inode = d_inode(dentry);
fs/overlayfs/inode.c
97
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/inode.c
971
return ovl_setxattr(OVL_FS(inode->i_sb), ovl_dentry_upper(dentry),
fs/overlayfs/inode.c
975
int ovl_set_nlink_upper(struct dentry *dentry)
fs/overlayfs/inode.c
977
return ovl_set_nlink_common(dentry, ovl_dentry_upper(dentry), "U%+i");
fs/overlayfs/inode.c
980
int ovl_set_nlink_lower(struct dentry *dentry)
fs/overlayfs/inode.c
982
return ovl_set_nlink_common(dentry, ovl_dentry_lower(dentry), "L%+i");
fs/overlayfs/inode.c
985
unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
fs/overlayfs/inode.c
986
struct dentry *upperdentry,
fs/overlayfs/namei.c
1000
static int ovl_maybe_lookup_lowerdata(struct dentry *dentry)
fs/overlayfs/namei.c
1002
struct inode *inode = d_inode(dentry);
fs/overlayfs/namei.c
1007
if (!redirect || ovl_dentry_lowerdata(dentry))
fs/overlayfs/namei.c
1019
if (ovl_dentry_lowerdata(dentry))
fs/overlayfs/namei.c
1022
with_ovl_creds(dentry->d_sb)
fs/overlayfs/namei.c
1023
err = ovl_lookup_data_layers(dentry, redirect, &datapath);
fs/overlayfs/namei.c
1027
err = ovl_dentry_set_lowerdata(dentry, &datapath);
fs/overlayfs/namei.c
1033
dput(datapath.dentry);
fs/overlayfs/namei.c
1039
dentry, err);
fs/overlayfs/namei.c
1043
int ovl_verify_lowerdata(struct dentry *dentry)
fs/overlayfs/namei.c
1047
err = ovl_maybe_lookup_lowerdata(dentry);
fs/overlayfs/namei.c
1051
return ovl_maybe_validate_verity(dentry);
fs/overlayfs/namei.c
1069
pr_warn_ratelimited("refusing to follow metacopy origin for (%pd2)\n", d->dentry);
fs/overlayfs/namei.c
1073
pr_warn_ratelimited("refusing to follow redirect for (%pd2)\n", d->dentry);
fs/overlayfs/namei.c
1080
struct dentry *dentry;
fs/overlayfs/namei.c
1084
struct dentry *upperdentry;
fs/overlayfs/namei.c
1085
struct dentry *index;
fs/overlayfs/namei.c
1092
struct dentry *dentry = ctx->dentry;
fs/overlayfs/namei.c
1093
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/namei.c
1094
struct ovl_entry *poe = OVL_E(dentry->d_parent);
fs/overlayfs/namei.c
1095
struct ovl_entry *roe = OVL_E(dentry->d_sb->s_root);
fs/overlayfs/namei.c
1097
struct dentry *upperdir;
fs/overlayfs/namei.c
1098
struct dentry *this;
fs/overlayfs/namei.c
1099
struct dentry *origin = NULL;
fs/overlayfs/namei.c
1106
upperdir = ovl_dentry_upper(dentry->d_parent);
fs/overlayfs/namei.c
1168
err = ovl_lookup_layer(lower.dentry, d, &this, false);
fs/overlayfs/namei.c
117
static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/namei.c
1180
err = ovl_fix_origin(ofs, dentry, this, ctx->upperdentry);
fs/overlayfs/namei.c
1197
((d->is_dir && ovl_verify_lower(dentry->d_sb)) ||
fs/overlayfs/namei.c
1222
ctx->stack[ctx->ctr].dentry = this;
fs/overlayfs/namei.c
1259
dentry);
fs/overlayfs/namei.c
1269
origin = ctx->origin_path->dentry;
fs/overlayfs/namei.c
1293
origin = ctx->stack[0].dentry;
fs/overlayfs/namei.c
1295
if (origin && ovl_indexdir(dentry->d_sb) &&
fs/overlayfs/namei.c
1296
(!d->is_dir || ovl_index_all(dentry->d_sb))) {
fs/overlayfs/namei.c
1315
ovl_dentry_set_opaque(dentry);
fs/overlayfs/namei.c
1317
ovl_dentry_set_xwhiteouts(dentry);
fs/overlayfs/namei.c
1320
ovl_dentry_set_upper_alias(dentry);
fs/overlayfs/namei.c
1324
.dentry = ctx->upperdentry = dget(ctx->index),
fs/overlayfs/namei.c
1360
if (ctx->ctr > 1 && !d->is_dir && !ctx->stack[ctx->ctr - 1].dentry) {
fs/overlayfs/namei.c
1365
inode = ovl_get_inode(dentry->d_sb, &oip);
fs/overlayfs/namei.c
1377
ovl_dentry_init_reval(dentry, ctx->upperdentry, OVL_I_E(ctx->inode));
fs/overlayfs/namei.c
1382
struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
fs/overlayfs/namei.c
1385
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/namei.c
1386
struct ovl_entry *poe = OVL_E(dentry->d_parent);
fs/overlayfs/namei.c
1390
.dentry = dentry,
fs/overlayfs/namei.c
1393
.sb = dentry->d_sb,
fs/overlayfs/namei.c
1394
.dentry = dentry,
fs/overlayfs/namei.c
1395
.name = dentry->d_name,
fs/overlayfs/namei.c
1399
if (dentry->d_name.len > ofs->namelen)
fs/overlayfs/namei.c
1402
with_ovl_creds(dentry->d_sb)
fs/overlayfs/namei.c
1406
dput(ctx.origin_path->dentry);
fs/overlayfs/namei.c
1420
return d_splice_alias(ctx.inode, dentry);
fs/overlayfs/namei.c
1423
bool ovl_lower_positive(struct dentry *dentry)
fs/overlayfs/namei.c
1425
struct ovl_entry *poe = OVL_E(dentry->d_parent);
fs/overlayfs/namei.c
1426
const struct qstr *name = &dentry->d_name;
fs/overlayfs/namei.c
1435
if (!dentry->d_inode)
fs/overlayfs/namei.c
1436
return ovl_dentry_is_opaque(dentry);
fs/overlayfs/namei.c
1439
if (!ovl_dentry_upper(dentry))
fs/overlayfs/namei.c
1442
with_ovl_creds(dentry->d_sb) {
fs/overlayfs/namei.c
1445
struct dentry *this;
fs/overlayfs/namei.c
1455
parentpath->dentry);
fs/overlayfs/namei.c
1472
.dentry = this,
fs/overlayfs/namei.c
1475
positive = !ovl_path_is_whiteout(OVL_FS(dentry->d_sb), &path);
fs/overlayfs/namei.c
174
struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh,
fs/overlayfs/namei.c
177
struct dentry *real;
fs/overlayfs/namei.c
20
struct dentry *dentry;
fs/overlayfs/namei.c
211
static struct dentry *ovl_lookup_positive_unlocked(struct ovl_lookup_data *d,
fs/overlayfs/namei.c
213
struct dentry *base, int len,
fs/overlayfs/namei.c
216
struct dentry *ret = lookup_one_unlocked(mnt_idmap(d->layer->mnt),
fs/overlayfs/namei.c
233
static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d,
fs/overlayfs/namei.c
236
struct dentry **ret, bool drop_negative)
fs/overlayfs/namei.c
239
struct dentry *this = NULL;
fs/overlayfs/namei.c
282
path.dentry = this;
fs/overlayfs/namei.c
356
static int ovl_lookup_layer(struct dentry *base, struct ovl_lookup_data *d,
fs/overlayfs/namei.c
357
struct dentry **ret, bool drop_negative)
fs/overlayfs/namei.c
361
struct dentry *dentry = NULL;
fs/overlayfs/namei.c
381
dput(dentry);
fs/overlayfs/namei.c
384
dentry = base;
fs/overlayfs/namei.c
393
*ret = dentry;
fs/overlayfs/namei.c
397
static int ovl_lookup_data_layer(struct dentry *dentry, const char *redirect,
fs/overlayfs/namei.c
407
dentry, redirect, layer->idx, err);
fs/overlayfs/namei.c
413
if (ovl_dentry_weird(datapath->dentry))
fs/overlayfs/namei.c
418
if (!d_is_reg(datapath->dentry))
fs/overlayfs/namei.c
430
static int ovl_lookup_data_layers(struct dentry *dentry, const char *redirect,
fs/overlayfs/namei.c
433
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/namei.c
441
err = ovl_lookup_data_layer(dentry, redirect, layer, &datapath);
fs/overlayfs/namei.c
444
lowerdata->dentry = datapath.dentry;
fs/overlayfs/namei.c
454
struct dentry *upperdentry, struct ovl_path **stackp)
fs/overlayfs/namei.c
456
struct dentry *origin = NULL;
fs/overlayfs/namei.c
490
.dentry = origin,
fs/overlayfs/namei.c
504
static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/namei.c
529
static int ovl_verify_fh(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/namei.c
532
struct ovl_fh *ofh = ovl_get_fh(ofs, dentry, ox);
fs/overlayfs/namei.c
548
int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/namei.c
554
err = ovl_verify_fh(ofs, dentry, ox, fh);
fs/overlayfs/namei.c
556
err = ovl_setxattr(ofs, dentry, ox, fh->buf, fh->fb.len);
fs/overlayfs/namei.c
569
int ovl_verify_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/namei.c
570
enum ovl_xattr ox, struct dentry *real,
fs/overlayfs/namei.c
584
err = ovl_verify_set_fh(ofs, dentry, ox, fh, is_upper, set);
fs/overlayfs/namei.c
602
struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index,
fs/overlayfs/namei.c
606
struct dentry *upper;
fs/overlayfs/namei.c
636
int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index)
fs/overlayfs/namei.c
642
struct dentry *upper = NULL;
fs/overlayfs/namei.c
715
if (ovl_get_nlink(ofs, origin.dentry, index, 0) == 0)
fs/overlayfs/namei.c
720
dput(origin.dentry);
fs/overlayfs/namei.c
73
static int ovl_acceptable(void *ctx, struct dentry *dentry)
fs/overlayfs/namei.c
767
int ovl_get_index_name(struct ovl_fs *ofs, struct dentry *origin,
fs/overlayfs/namei.c
784
struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh)
fs/overlayfs/namei.c
786
struct dentry *index;
fs/overlayfs/namei.c
79
if (!d_is_dir(dentry))
fs/overlayfs/namei.c
813
struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/namei.c
814
struct dentry *origin, bool verify)
fs/overlayfs/namei.c
816
struct dentry *index;
fs/overlayfs/namei.c
83
if (d_unhashed(dentry))
fs/overlayfs/namei.c
87
return is_subdir(dentry, ((struct vfsmount *)ctx)->mnt_root);
fs/overlayfs/namei.c
903
int ovl_path_next(int idx, struct dentry *dentry, struct path *path,
fs/overlayfs/namei.c
906
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/namei.c
911
ovl_path_upper(dentry, path);
fs/overlayfs/namei.c
912
if (path->dentry) {
fs/overlayfs/namei.c
913
*layer = &OVL_FS(dentry->d_sb)->layers[0];
fs/overlayfs/namei.c
919
path->dentry = lowerstack[idx - 1].dentry;
fs/overlayfs/namei.c
927
static int ovl_fix_origin(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/namei.c
928
struct dentry *lower, struct dentry *upper)
fs/overlayfs/namei.c
940
err = ovl_want_write(dentry);
fs/overlayfs/namei.c
946
err = ovl_set_impure(dentry->d_parent, upper->d_parent);
fs/overlayfs/namei.c
948
ovl_drop_write(dentry);
fs/overlayfs/namei.c
954
static int ovl_maybe_validate_verity(struct dentry *dentry)
fs/overlayfs/namei.c
956
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/namei.c
957
struct inode *inode = d_inode(dentry);
fs/overlayfs/namei.c
962
!ovl_is_metacopy_dentry(dentry) ||
fs/overlayfs/namei.c
969
dentry);
fs/overlayfs/namei.c
975
ovl_path_lowerdata(dentry, &datapath);
fs/overlayfs/namei.c
976
if (!datapath.dentry)
fs/overlayfs/namei.c
979
ovl_path_real(dentry, &metapath);
fs/overlayfs/namei.c
980
if (!metapath.dentry)
fs/overlayfs/namei.c
988
with_ovl_creds(dentry->d_sb)
fs/overlayfs/overlayfs.h
206
struct dentry *upperdentry,
fs/overlayfs/overlayfs.h
213
struct inode *dir, struct dentry *dentry)
fs/overlayfs/overlayfs.h
215
int err = vfs_rmdir(ovl_upper_mnt_idmap(ofs), dir, dentry, NULL);
fs/overlayfs/overlayfs.h
217
pr_debug("rmdir(%pd2) = %i\n", dentry, err);
fs/overlayfs/overlayfs.h
222
struct dentry *dentry)
fs/overlayfs/overlayfs.h
224
int err = vfs_unlink(ovl_upper_mnt_idmap(ofs), dir, dentry, NULL);
fs/overlayfs/overlayfs.h
226
pr_debug("unlink(%pd2) = %i\n", dentry, err);
fs/overlayfs/overlayfs.h
230
static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry,
fs/overlayfs/overlayfs.h
231
struct inode *dir, struct dentry *new_dentry)
fs/overlayfs/overlayfs.h
241
struct inode *dir, struct dentry *dentry,
fs/overlayfs/overlayfs.h
244
int err = vfs_create(ovl_upper_mnt_idmap(ofs), dentry, mode, NULL);
fs/overlayfs/overlayfs.h
246
pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err);
fs/overlayfs/overlayfs.h
250
static inline struct dentry *ovl_do_mkdir(struct ovl_fs *ofs,
fs/overlayfs/overlayfs.h
252
struct dentry *dentry,
fs/overlayfs/overlayfs.h
255
struct dentry *ret;
fs/overlayfs/overlayfs.h
257
ret = vfs_mkdir(ovl_upper_mnt_idmap(ofs), dir, dentry, mode, NULL);
fs/overlayfs/overlayfs.h
258
pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, PTR_ERR_OR_ZERO(ret));
fs/overlayfs/overlayfs.h
263
struct inode *dir, struct dentry *dentry,
fs/overlayfs/overlayfs.h
266
int err = vfs_mknod(ovl_upper_mnt_idmap(ofs), dir, dentry, mode, dev, NULL);
fs/overlayfs/overlayfs.h
268
pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err);
fs/overlayfs/overlayfs.h
273
struct inode *dir, struct dentry *dentry,
fs/overlayfs/overlayfs.h
276
int err = vfs_symlink(ovl_upper_mnt_idmap(ofs), dir, dentry, oldname, NULL);
fs/overlayfs/overlayfs.h
278
pr_debug("symlink(\"%s\", %pd2) = %i\n", oldname, dentry, err);
fs/overlayfs/overlayfs.h
287
WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb);
fs/overlayfs/overlayfs.h
289
err = vfs_getxattr(mnt_idmap(path->mnt), path->dentry,
fs/overlayfs/overlayfs.h
294
path->dentry, name, min(len, 48), value, size, err);
fs/overlayfs/overlayfs.h
299
struct dentry *upperdentry,
fs/overlayfs/overlayfs.h
304
.dentry = upperdentry,
fs/overlayfs/overlayfs.h
319
static inline int ovl_do_setxattr(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
323
int err = vfs_setxattr(ovl_upper_mnt_idmap(ofs), dentry, name,
fs/overlayfs/overlayfs.h
327
dentry, name, min((int)size, 48), value, size, flags, err);
fs/overlayfs/overlayfs.h
331
static inline int ovl_setxattr(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
335
return ovl_do_setxattr(ofs, dentry, ovl_xattr(ofs, ox), value, size, 0);
fs/overlayfs/overlayfs.h
338
static inline int ovl_do_removexattr(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
341
int err = vfs_removexattr(ovl_upper_mnt_idmap(ofs), dentry, name);
fs/overlayfs/overlayfs.h
342
pr_debug("removexattr(%pd2, \"%s\") = %i\n", dentry, name, err);
fs/overlayfs/overlayfs.h
346
static inline int ovl_removexattr(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
349
return ovl_do_removexattr(ofs, dentry, ovl_xattr(ofs, ox));
fs/overlayfs/overlayfs.h
352
static inline int ovl_do_set_acl(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
355
return vfs_set_acl(ovl_upper_mnt_idmap(ofs), dentry, acl_name, acl);
fs/overlayfs/overlayfs.h
358
static inline int ovl_do_remove_acl(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
361
return vfs_remove_acl(ovl_upper_mnt_idmap(ofs), dentry, acl_name);
fs/overlayfs/overlayfs.h
378
static inline int ovl_do_rename(struct ovl_fs *ofs, struct dentry *olddir,
fs/overlayfs/overlayfs.h
379
struct dentry *olddentry, struct dentry *newdir,
fs/overlayfs/overlayfs.h
380
struct dentry *newdentry, unsigned int flags)
fs/overlayfs/overlayfs.h
395
struct inode *dir, struct dentry *dentry)
fs/overlayfs/overlayfs.h
397
int err = vfs_whiteout(ovl_upper_mnt_idmap(ofs), dir, dentry);
fs/overlayfs/overlayfs.h
398
pr_debug("whiteout(%pd2) = %i\n", dentry, err);
fs/overlayfs/overlayfs.h
403
struct dentry *dentry, umode_t mode)
fs/overlayfs/overlayfs.h
405
struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = dentry };
fs/overlayfs/overlayfs.h
411
pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err);
fs/overlayfs/overlayfs.h
415
static inline struct dentry *ovl_lookup_upper(struct ovl_fs *ofs,
fs/overlayfs/overlayfs.h
417
struct dentry *base, int len)
fs/overlayfs/overlayfs.h
422
static inline struct dentry *ovl_lookup_upper_unlocked(struct ovl_fs *ofs,
fs/overlayfs/overlayfs.h
424
struct dentry *base,
fs/overlayfs/overlayfs.h
431
static inline struct dentry *ovl_start_creating_upper(struct ovl_fs *ofs,
fs/overlayfs/overlayfs.h
432
struct dentry *parent,
fs/overlayfs/overlayfs.h
439
static inline struct dentry *ovl_start_removing_upper(struct ovl_fs *ofs,
fs/overlayfs/overlayfs.h
440
struct dentry *parent,
fs/overlayfs/overlayfs.h
456
int ovl_get_write_access(struct dentry *dentry);
fs/overlayfs/overlayfs.h
457
void ovl_put_write_access(struct dentry *dentry);
fs/overlayfs/overlayfs.h
458
void ovl_start_write(struct dentry *dentry);
fs/overlayfs/overlayfs.h
459
void ovl_end_write(struct dentry *dentry);
fs/overlayfs/overlayfs.h
460
int ovl_want_write(struct dentry *dentry);
fs/overlayfs/overlayfs.h
461
void ovl_drop_write(struct dentry *dentry);
fs/overlayfs/overlayfs.h
462
struct dentry *ovl_workdir(struct dentry *dentry);
fs/overlayfs/overlayfs.h
476
struct dentry *ovl_indexdir(struct super_block *sb);
fs/overlayfs/overlayfs.h
485
bool ovl_dentry_remote(struct dentry *dentry);
fs/overlayfs/overlayfs.h
486
void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry);
fs/overlayfs/overlayfs.h
487
void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry,
fs/overlayfs/overlayfs.h
489
void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
fs/overlayfs/overlayfs.h
491
bool ovl_dentry_weird(struct dentry *dentry);
fs/overlayfs/overlayfs.h
493
static inline bool ovl_dentry_casefolded(struct dentry *dentry)
fs/overlayfs/overlayfs.h
495
return sb_has_encoding(dentry->d_sb) && IS_CASEFOLDED(d_inode(dentry));
fs/overlayfs/overlayfs.h
498
enum ovl_path_type ovl_path_type(struct dentry *dentry);
fs/overlayfs/overlayfs.h
499
void ovl_path_upper(struct dentry *dentry, struct path *path);
fs/overlayfs/overlayfs.h
500
void ovl_path_lower(struct dentry *dentry, struct path *path);
fs/overlayfs/overlayfs.h
501
void ovl_path_lowerdata(struct dentry *dentry, struct path *path);
fs/overlayfs/overlayfs.h
503
enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path);
fs/overlayfs/overlayfs.h
504
enum ovl_path_type ovl_path_realdata(struct dentry *dentry, struct path *path);
fs/overlayfs/overlayfs.h
505
struct dentry *ovl_dentry_upper(struct dentry *dentry);
fs/overlayfs/overlayfs.h
506
struct dentry *ovl_dentry_lower(struct dentry *dentry);
fs/overlayfs/overlayfs.h
507
struct dentry *ovl_dentry_lowerdata(struct dentry *dentry);
fs/overlayfs/overlayfs.h
508
int ovl_dentry_set_lowerdata(struct dentry *dentry, struct ovl_path *datapath);
fs/overlayfs/overlayfs.h
510
const struct ovl_layer *ovl_layer_lower(struct dentry *dentry);
fs/overlayfs/overlayfs.h
511
struct dentry *ovl_dentry_real(struct dentry *dentry);
fs/overlayfs/overlayfs.h
512
struct dentry *ovl_i_dentry_upper(struct inode *inode);
fs/overlayfs/overlayfs.h
521
void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry);
fs/overlayfs/overlayfs.h
522
void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry);
fs/overlayfs/overlayfs.h
523
bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry);
fs/overlayfs/overlayfs.h
524
bool ovl_dentry_is_opaque(struct dentry *dentry);
fs/overlayfs/overlayfs.h
525
bool ovl_dentry_is_whiteout(struct dentry *dentry);
fs/overlayfs/overlayfs.h
526
void ovl_dentry_set_opaque(struct dentry *dentry);
fs/overlayfs/overlayfs.h
527
bool ovl_dentry_has_xwhiteouts(struct dentry *dentry);
fs/overlayfs/overlayfs.h
528
void ovl_dentry_set_xwhiteouts(struct dentry *dentry);
fs/overlayfs/overlayfs.h
531
bool ovl_dentry_has_upper_alias(struct dentry *dentry);
fs/overlayfs/overlayfs.h
532
void ovl_dentry_set_upper_alias(struct dentry *dentry);
fs/overlayfs/overlayfs.h
533
bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags);
fs/overlayfs/overlayfs.h
534
bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags);
fs/overlayfs/overlayfs.h
537
const char *ovl_dentry_get_redirect(struct dentry *dentry);
fs/overlayfs/overlayfs.h
538
void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect);
fs/overlayfs/overlayfs.h
539
void ovl_inode_update(struct inode *inode, struct dentry *upperdentry);
fs/overlayfs/overlayfs.h
540
void ovl_dir_modified(struct dentry *dentry, bool impurity);
fs/overlayfs/overlayfs.h
542
bool ovl_is_whiteout(struct dentry *dentry);
fs/overlayfs/overlayfs.h
545
int ovl_copy_up_start(struct dentry *dentry, int flags);
fs/overlayfs/overlayfs.h
546
void ovl_copy_up_end(struct dentry *dentry);
fs/overlayfs/overlayfs.h
547
bool ovl_already_copied_up(struct dentry *dentry, int flags);
fs/overlayfs/overlayfs.h
556
struct dentry *upperdentry)
fs/overlayfs/overlayfs.h
559
.dentry = upperdentry,
fs/overlayfs/overlayfs.h
566
struct dentry *upperdentry)
fs/overlayfs/overlayfs.h
569
.dentry = upperdentry,
fs/overlayfs/overlayfs.h
575
int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/overlayfs.h
578
int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry);
fs/overlayfs/overlayfs.h
579
bool ovl_inuse_trylock(struct dentry *dentry);
fs/overlayfs/overlayfs.h
580
void ovl_inuse_unlock(struct dentry *dentry);
fs/overlayfs/overlayfs.h
581
bool ovl_is_inuse(struct dentry *dentry);
fs/overlayfs/overlayfs.h
582
bool ovl_need_index(struct dentry *dentry);
fs/overlayfs/overlayfs.h
583
int ovl_nlink_start(struct dentry *dentry);
fs/overlayfs/overlayfs.h
584
void ovl_nlink_end(struct dentry *dentry);
fs/overlayfs/overlayfs.h
585
int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *work,
fs/overlayfs/overlayfs.h
586
struct dentry *upperdir, struct dentry *upper);
fs/overlayfs/overlayfs.h
589
int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d,
fs/overlayfs/overlayfs.h
591
bool ovl_is_metacopy_dentry(struct dentry *dentry);
fs/overlayfs/overlayfs.h
617
struct dentry *upperdentry)
fs/overlayfs/overlayfs.h
621
.dentry = upperdentry,
fs/overlayfs/overlayfs.h
736
struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh,
fs/overlayfs/overlayfs.h
739
struct dentry *upperdentry, struct ovl_path **stackp);
fs/overlayfs/overlayfs.h
740
int ovl_verify_set_fh(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
743
int ovl_verify_origin_xattr(struct ovl_fs *ofs, struct dentry *dentry,
fs/overlayfs/overlayfs.h
744
enum ovl_xattr ox, struct dentry *real,
fs/overlayfs/overlayfs.h
746
struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index,
fs/overlayfs/overlayfs.h
748
int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index);
fs/overlayfs/overlayfs.h
750
int ovl_get_index_name(struct ovl_fs *ofs, struct dentry *origin,
fs/overlayfs/overlayfs.h
752
struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh);
fs/overlayfs/overlayfs.h
753
struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/overlayfs.h
754
struct dentry *origin, bool verify);
fs/overlayfs/overlayfs.h
755
int ovl_path_next(int idx, struct dentry *dentry, struct path *path,
fs/overlayfs/overlayfs.h
757
int ovl_verify_lowerdata(struct dentry *dentry);
fs/overlayfs/overlayfs.h
758
struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
fs/overlayfs/overlayfs.h
760
bool ovl_lower_positive(struct dentry *dentry);
fs/overlayfs/overlayfs.h
762
static inline int ovl_verify_origin_fh(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/overlayfs.h
768
static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/overlayfs.h
769
struct dentry *origin, bool set)
fs/overlayfs/overlayfs.h
775
static inline int ovl_verify_upper(struct ovl_fs *ofs, struct dentry *index,
fs/overlayfs/overlayfs.h
776
struct dentry *upper, bool set)
fs/overlayfs/overlayfs.h
785
int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list);
fs/overlayfs/overlayfs.h
786
void ovl_cleanup_whiteouts(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/overlayfs.h
791
int ovl_workdir_cleanup(struct ovl_fs *ofs, struct dentry *parent,
fs/overlayfs/overlayfs.h
792
struct vfsmount *mnt, struct dentry *dentry, int level);
fs/overlayfs/overlayfs.h
808
int ovl_set_nlink_upper(struct dentry *dentry);
fs/overlayfs/overlayfs.h
809
int ovl_set_nlink_lower(struct dentry *dentry);
fs/overlayfs/overlayfs.h
810
unsigned int ovl_get_nlink(struct ovl_fs *ofs, struct dentry *lowerdentry,
fs/overlayfs/overlayfs.h
811
struct dentry *upperdentry,
fs/overlayfs/overlayfs.h
826
struct dentry *dentry, int type)
fs/overlayfs/overlayfs.h
828
return do_ovl_get_acl(idmap, d_inode(dentry), type, false, false);
fs/overlayfs/overlayfs.h
830
int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/overlayfs/overlayfs.h
852
struct dentry *upperdentry;
fs/overlayfs/overlayfs.h
861
struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
fs/overlayfs/overlayfs.h
863
bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
fs/overlayfs/overlayfs.h
864
struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
fs/overlayfs/overlayfs.h
886
void ovl_check_protattr(struct inode *inode, struct dentry *upper);
fs/overlayfs/overlayfs.h
887
int ovl_set_protattr(struct inode *inode, struct dentry *upper,
fs/overlayfs/overlayfs.h
899
int ovl_cleanup_and_whiteout(struct ovl_fs *ofs, struct dentry *dir,
fs/overlayfs/overlayfs.h
900
struct dentry *dentry);
fs/overlayfs/overlayfs.h
905
struct dentry *hardlink;
fs/overlayfs/overlayfs.h
910
struct dentry *ovl_create_real(struct ovl_fs *ofs,
fs/overlayfs/overlayfs.h
911
struct dentry *parent, struct dentry *newdentry,
fs/overlayfs/overlayfs.h
913
int ovl_cleanup(struct ovl_fs *ofs, struct dentry *workdir, struct dentry *dentry);
fs/overlayfs/overlayfs.h
916
struct dentry *ovl_create_temp(struct ovl_fs *ofs, struct dentry *workdir,
fs/overlayfs/overlayfs.h
923
int ovl_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/overlayfs/overlayfs.h
925
struct dentry *dentry, struct file_kattr *fa);
fs/overlayfs/overlayfs.h
931
int ovl_copy_up(struct dentry *dentry);
fs/overlayfs/overlayfs.h
932
int ovl_copy_up_with_data(struct dentry *dentry);
fs/overlayfs/overlayfs.h
933
int ovl_maybe_copy_up(struct dentry *dentry, int flags);
fs/overlayfs/overlayfs.h
934
int ovl_copy_xattr(struct super_block *sb, const struct path *path, struct dentry *new);
fs/overlayfs/overlayfs.h
935
int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upper, struct kstat *stat);
fs/overlayfs/overlayfs.h
938
struct ovl_fh *ovl_get_origin_fh(struct ovl_fs *ofs, struct dentry *origin);
fs/overlayfs/overlayfs.h
940
struct dentry *upper);
fs/overlayfs/overlayfs.h
958
int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/overlayfs/overlayfs.h
962
ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size);
fs/overlayfs/ovl_entry.h
146
static inline struct dentry *ovl_lowerdata_dentry(struct ovl_entry *oe)
fs/overlayfs/ovl_entry.h
150
return lowerdata ? READ_ONCE(lowerdata->dentry) : NULL;
fs/overlayfs/ovl_entry.h
154
static inline unsigned long *OVL_E_FLAGS(struct dentry *dentry)
fs/overlayfs/ovl_entry.h
156
return (unsigned long *) &dentry->d_fsdata;
fs/overlayfs/ovl_entry.h
168
struct dentry *__upperdentry;
fs/overlayfs/ovl_entry.h
185
static inline struct ovl_entry *OVL_E(struct dentry *dentry)
fs/overlayfs/ovl_entry.h
187
return OVL_I_E(d_inode(dentry));
fs/overlayfs/ovl_entry.h
190
static inline struct dentry *ovl_upperdentry_dereference(struct ovl_inode *oi)
fs/overlayfs/ovl_entry.h
49
struct dentry *dentry;
fs/overlayfs/ovl_entry.h
67
struct dentry *workbasedir;
fs/overlayfs/ovl_entry.h
69
struct dentry *workdir;
fs/overlayfs/ovl_entry.h
89
struct dentry *whiteout;
fs/overlayfs/params.c
1049
int ovl_show_options(struct seq_file *m, struct dentry *dentry)
fs/overlayfs/params.c
1051
struct super_block *sb = dentry->d_sb;
fs/overlayfs/params.c
298
bool is_casefolded = ovl_dentry_casefolded(path->dentry);
fs/overlayfs/params.c
302
if (!d_is_dir(path->dentry))
fs/overlayfs/params.c
319
if (ovl_dentry_weird(path->dentry))
fs/overlayfs/params.c
328
if (path->dentry->d_flags & DCACHE_OP_REAL)
fs/overlayfs/params.h
43
int ovl_show_options(struct seq_file *m, struct dentry *dentry);
fs/overlayfs/readdir.c
1052
type = ovl_path_real(file->f_path.dentry, &realpath);
fs/overlayfs/readdir.c
1077
int ovl_check_empty_dir(struct dentry *dentry, struct list_head *list)
fs/overlayfs/readdir.c
1083
with_ovl_creds(dentry->d_sb)
fs/overlayfs/readdir.c
1084
err = ovl_dir_read_merged(dentry, list, &root);
fs/overlayfs/readdir.c
1114
void ovl_cleanup_whiteouts(struct ovl_fs *ofs, struct dentry *upper,
fs/overlayfs/readdir.c
1120
struct dentry *dentry;
fs/overlayfs/readdir.c
1125
dentry = ovl_lookup_upper_unlocked(ofs, p->name, upper, p->len);
fs/overlayfs/readdir.c
1126
if (IS_ERR(dentry)) {
fs/overlayfs/readdir.c
1129
(int) PTR_ERR(dentry));
fs/overlayfs/readdir.c
1132
if (dentry->d_inode)
fs/overlayfs/readdir.c
1133
ovl_cleanup(ofs, upper, dentry);
fs/overlayfs/readdir.c
1134
dput(dentry);
fs/overlayfs/readdir.c
1199
!strcmp(path->dentry->d_name.name, OVL_INCOMPATDIR_NAME))
fs/overlayfs/readdir.c
1207
struct dentry *dentry;
fs/overlayfs/readdir.c
1217
dentry = ovl_lookup_upper_unlocked(ofs, p->name, path->dentry, p->len);
fs/overlayfs/readdir.c
1218
if (IS_ERR(dentry))
fs/overlayfs/readdir.c
1220
if (dentry->d_inode)
fs/overlayfs/readdir.c
1221
err = ovl_workdir_cleanup(ofs, path->dentry, path->mnt,
fs/overlayfs/readdir.c
1222
dentry, level);
fs/overlayfs/readdir.c
1223
dput(dentry);
fs/overlayfs/readdir.c
1232
int ovl_workdir_cleanup(struct ovl_fs *ofs, struct dentry *parent,
fs/overlayfs/readdir.c
1233
struct vfsmount *mnt, struct dentry *dentry, int level)
fs/overlayfs/readdir.c
1237
if (!d_is_dir(dentry) || level > 1)
fs/overlayfs/readdir.c
1238
return ovl_cleanup(ofs, parent, dentry);
fs/overlayfs/readdir.c
1240
dentry = start_removing_dentry(parent, dentry);
fs/overlayfs/readdir.c
1241
if (IS_ERR(dentry))
fs/overlayfs/readdir.c
1242
return PTR_ERR(dentry);
fs/overlayfs/readdir.c
1243
err = ovl_do_rmdir(ofs, parent->d_inode, dentry);
fs/overlayfs/readdir.c
1244
end_removing(dentry);
fs/overlayfs/readdir.c
1246
struct path path = { .mnt = mnt, .dentry = dentry };
fs/overlayfs/readdir.c
1250
err = ovl_cleanup(ofs, parent, dentry);
fs/overlayfs/readdir.c
1259
struct dentry *indexdir = ofs->workdir;
fs/overlayfs/readdir.c
1260
struct dentry *index = NULL;
fs/overlayfs/readdir.c
1261
struct path path = { .mnt = ovl_upper_mnt(ofs), .dentry = indexdir };
fs/overlayfs/readdir.c
150
if (!rdd->dentry)
fs/overlayfs/readdir.c
154
if (ovl_xino_bits(OVL_FS(rdd->dentry->d_sb)))
fs/overlayfs/readdir.c
170
ovl_test_flag(OVL_IMPURE, d_inode(rdd->dentry)))
fs/overlayfs/readdir.c
316
struct ovl_fs *ofs = OVL_FS(rdd->dentry->d_sb);
fs/overlayfs/readdir.c
353
struct dentry *dentry, *dir = path->dentry;
fs/overlayfs/readdir.c
359
dentry = lookup_one_positive_killable(mnt_idmap(path->mnt),
fs/overlayfs/readdir.c
362
if (!IS_ERR(dentry)) {
fs/overlayfs/readdir.c
363
p->is_whiteout = ovl_is_whiteout(dentry);
fs/overlayfs/readdir.c
364
dput(dentry);
fs/overlayfs/readdir.c
365
} else if (PTR_ERR(dentry) == -EINTR) {
fs/overlayfs/readdir.c
393
if (!err && rdd->first_maybe_whiteout && rdd->dentry)
fs/overlayfs/readdir.c
422
static int ovl_dir_read_merged(struct dentry *dentry, struct list_head *list,
fs/overlayfs/readdir.c
430
.dentry = dentry,
fs/overlayfs/readdir.c
438
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/readdir.c
441
next = ovl_path_next(idx, dentry, &realpath, &layer);
fs/overlayfs/readdir.c
444
rdd.map = sb_encoding(realpath.dentry->d_sb);
fs/overlayfs/readdir.c
446
rdd.is_upper = ovl_dentry_upper(dentry) == realpath.dentry;
fs/overlayfs/readdir.c
448
ovl_dentry_has_xwhiteouts(dentry);
fs/overlayfs/readdir.c
45
struct dentry *dentry;
fs/overlayfs/readdir.c
482
static struct ovl_dir_cache *ovl_cache_get(struct dentry *dentry)
fs/overlayfs/readdir.c
486
struct inode *inode = d_inode(dentry);
fs/overlayfs/readdir.c
494
ovl_set_dir_cache(d_inode(dentry), NULL);
fs/overlayfs/readdir.c
504
res = ovl_dir_read_merged(dentry, &cache->entries, &cache->root);
fs/overlayfs/readdir.c
554
struct dentry *dir = path->dentry;
fs/overlayfs/readdir.c
556
struct dentry *this = NULL;
fs/overlayfs/readdir.c
598
statpath.dentry = this;
fs/overlayfs/readdir.c
663
ovl_path_upper(path->dentry, &realpath);
fs/overlayfs/readdir.c
696
struct dentry *dentry = path->dentry;
fs/overlayfs/readdir.c
697
struct inode *inode = d_inode(dentry);
fs/overlayfs/readdir.c
698
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/readdir.c
724
if (!ovl_want_write(dentry)) {
fs/overlayfs/readdir.c
725
ovl_removexattr(ofs, ovl_dentry_upper(dentry),
fs/overlayfs/readdir.c
727
ovl_drop_write(dentry);
fs/overlayfs/readdir.c
797
struct dentry *dir = file->f_path.dentry;
fs/overlayfs/readdir.c
815
statpath.dentry = dir->d_parent;
fs/overlayfs/readdir.c
839
struct dentry *dentry = file->f_path.dentry;
fs/overlayfs/readdir.c
846
cache = ovl_cache_get(dentry);
fs/overlayfs/readdir.c
877
struct dentry *dentry = file->f_path.dentry;
fs/overlayfs/readdir.c
878
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/readdir.c
890
OVL_TYPE_MERGE(ovl_path_type(dentry->d_parent)))
fs/overlayfs/readdir.c
974
struct dentry *dentry = file->f_path.dentry;
fs/overlayfs/readdir.c
977
if (!OVL_TYPE_UPPER(ovl_path_type(dentry)))
fs/overlayfs/readdir.c
988
ovl_path_upper(dentry, &upperpath);
fs/overlayfs/super.c
1088
err = ovl_setup_trap(sb, l->path.dentry, &trap, "lowerdir");
fs/overlayfs/super.c
1092
if (ovl_is_inuse(l->path.dentry)) {
fs/overlayfs/super.c
121
static int ovl_dentry_revalidate_common(struct dentry *dentry,
fs/overlayfs/super.c
1227
lowerstack[i].dentry = dget(l->path.dentry);
fs/overlayfs/super.c
1241
struct dentry *dentry, const char *name,
fs/overlayfs/super.c
1244
struct dentry *next = dentry, *parent;
fs/overlayfs/super.c
1247
if (!dentry)
fs/overlayfs/super.c
126
struct inode *inode = d_inode_rcu(dentry);
fs/overlayfs/super.c
127
struct dentry *upper;
fs/overlayfs/super.c
1308
static struct dentry *ovl_get_root(struct super_block *sb,
fs/overlayfs/super.c
1309
struct dentry *upperdentry,
fs/overlayfs/super.c
1312
struct dentry *root;
fs/overlayfs/super.c
1315
unsigned long ino = d_inode(lowerpath->dentry)->i_ino;
fs/overlayfs/super.c
1339
.dentry = lowerpath->dentry,
fs/overlayfs/super.c
150
ret = ovl_revalidate_real(lowerstack[i].dentry, flags, weak);
fs/overlayfs/super.c
1534
sb->s_root = ovl_get_root(sb, ctx->upper.dentry, oe);
fs/overlayfs/super.c
156
struct dentry *dentry, unsigned int flags)
fs/overlayfs/super.c
158
return ovl_dentry_revalidate_common(dentry, flags, false);
fs/overlayfs/super.c
161
static int ovl_dentry_weak_revalidate(struct dentry *dentry, unsigned int flags)
fs/overlayfs/super.c
163
return ovl_dentry_revalidate_common(dentry, flags, true);
fs/overlayfs/super.c
276
static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/overlayfs/super.c
278
struct super_block *sb = dentry->d_sb;
fs/overlayfs/super.c
280
struct dentry *root_dentry = sb->s_root;
fs/overlayfs/super.c
31
static struct dentry *ovl_d_real(struct dentry *dentry, enum d_real_type type)
fs/overlayfs/super.c
311
static struct dentry *ovl_workdir_create(struct ovl_fs *ofs,
fs/overlayfs/super.c
316
struct dentry *work;
fs/overlayfs/super.c
33
struct dentry *upper, *lower;
fs/overlayfs/super.c
427
fh_type = ovl_can_decode_fh(path->dentry->d_sb);
fs/overlayfs/super.c
44
if (!d_is_reg(dentry)) {
fs/overlayfs/super.c
455
static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir)
fs/overlayfs/super.c
46
return dentry;
fs/overlayfs/super.c
460
struct dentry *trap = lock_rename(workdir, upperdir);
fs/overlayfs/super.c
468
static int ovl_setup_trap(struct super_block *sb, struct dentry *dir,
fs/overlayfs/super.c
49
upper = ovl_dentry_upper(dentry);
fs/overlayfs/super.c
51
ovl_has_upperdata(d_inode(dentry))))
fs/overlayfs/super.c
523
err = ovl_setup_trap(sb, upperpath->dentry, &upper_layer->trap,
fs/overlayfs/super.c
55
lower = ovl_dentry_lower(dentry);
fs/overlayfs/super.c
572
struct dentry *workdir = ofs->workdir;
fs/overlayfs/super.c
573
struct dentry *temp;
fs/overlayfs/super.c
574
struct dentry *whiteout;
fs/overlayfs/super.c
627
static struct dentry *ovl_lookup_or_create(struct ovl_fs *ofs,
fs/overlayfs/super.c
628
struct dentry *parent,
fs/overlayfs/super.c
631
struct dentry *child;
fs/overlayfs/super.c
652
struct dentry *d = dget(ofs->workbasedir);
fs/overlayfs/super.c
67
err = ovl_verify_lowerdata(dentry);
fs/overlayfs/super.c
671
struct dentry *workdir;
fs/overlayfs/super.c
70
lower = ovl_dentry_lowerdata(dentry);
fs/overlayfs/super.c
79
WARN(1, "%s(%pd4, %d): real dentry not found\n", __func__, dentry, type);
fs/overlayfs/super.c
80
return dentry;
fs/overlayfs/super.c
820
if (!ovl_workdir_ok(workpath->dentry, upperpath->dentry)) {
fs/overlayfs/super.c
825
ofs->workbasedir = dget(workpath->dentry);
fs/overlayfs/super.c
83
static int ovl_revalidate_real(struct dentry *d, unsigned int flags, bool weak)
fs/overlayfs/super.c
847
struct dentry *indexdir;
fs/overlayfs/super.c
848
struct dentry *origin = ovl_lowerstack(oe)->dentry;
fs/overlayfs/super.c
861
err = ovl_verify_origin_fh(ofs, upperpath->dentry, fh, true);
fs/overlayfs/super.c
893
upperpath->dentry, true,
fs/overlayfs/super.c
898
err = ovl_verify_upper(ofs, indexdir, upperpath->dentry, true);
fs/overlayfs/super.c
94
struct dentry *parent;
fs/overlayfs/super.c
981
path->dentry, ovl_xino_mode(&ofs->config));
fs/overlayfs/util.c
1014
bool ovl_inuse_trylock(struct dentry *dentry)
fs/overlayfs/util.c
1016
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
1029
void ovl_inuse_unlock(struct dentry *dentry)
fs/overlayfs/util.c
1031
if (dentry) {
fs/overlayfs/util.c
1032
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
1041
bool ovl_is_inuse(struct dentry *dentry)
fs/overlayfs/util.c
1043
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
1056
bool ovl_need_index(struct dentry *dentry)
fs/overlayfs/util.c
1058
struct dentry *lower = ovl_dentry_lower(dentry);
fs/overlayfs/util.c
1060
if (!lower || !ovl_indexdir(dentry->d_sb))
fs/overlayfs/util.c
1064
if (ovl_index_all(dentry->d_sb))
fs/overlayfs/util.c
1075
static void ovl_cleanup_index(struct dentry *dentry)
fs/overlayfs/util.c
1077
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
1078
struct dentry *indexdir = ovl_indexdir(dentry->d_sb);
fs/overlayfs/util.c
1079
struct dentry *lowerdentry = ovl_dentry_lower(dentry);
fs/overlayfs/util.c
1080
struct dentry *upperdentry = ovl_dentry_upper(dentry);
fs/overlayfs/util.c
1081
struct dentry *index = NULL;
fs/overlayfs/util.c
1091
err = ovl_want_write(dentry);
fs/overlayfs/util.c
1109
set_nlink(d_inode(dentry), inode->i_nlink - 1);
fs/overlayfs/util.c
1110
ovl_set_nlink_upper(dentry);
fs/overlayfs/util.c
1118
} else if (ovl_index_all(dentry->d_sb)) {
fs/overlayfs/util.c
1120
err = ovl_cleanup_and_whiteout(OVL_FS(dentry->d_sb),
fs/overlayfs/util.c
1131
ovl_drop_write(dentry);
fs/overlayfs/util.c
1137
pr_err("cleanup index of '%pd2' failed (%i)\n", dentry, err);
fs/overlayfs/util.c
1145
int ovl_nlink_start(struct dentry *dentry)
fs/overlayfs/util.c
1147
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
1167
if (ovl_need_index(dentry) && !ovl_dentry_has_upper_alias(dentry)) {
fs/overlayfs/util.c
1168
err = ovl_copy_up(dentry);
fs/overlayfs/util.c
1177
err = ovl_want_write(dentry);
fs/overlayfs/util.c
1181
if (d_is_dir(dentry) || !ovl_test_flag(OVL_INDEX, inode))
fs/overlayfs/util.c
1190
with_ovl_creds(dentry->d_sb)
fs/overlayfs/util.c
1191
err = ovl_set_nlink_upper(dentry);
fs/overlayfs/util.c
1198
ovl_drop_write(dentry);
fs/overlayfs/util.c
1205
void ovl_nlink_end(struct dentry *dentry)
fs/overlayfs/util.c
1207
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
1209
ovl_drop_write(dentry);
fs/overlayfs/util.c
1212
with_ovl_creds(dentry->d_sb)
fs/overlayfs/util.c
1213
ovl_cleanup_index(dentry);
fs/overlayfs/util.c
1219
int ovl_lock_rename_workdir(struct dentry *workdir, struct dentry *work,
fs/overlayfs/util.c
1220
struct dentry *upperdir, struct dentry *upper)
fs/overlayfs/util.c
1222
struct dentry *trap;
fs/overlayfs/util.c
1254
if (!S_ISREG(d_inode(path->dentry)->i_mode))
fs/overlayfs/util.c
128
dget(src[i].dentry);
fs/overlayfs/util.c
1281
path->dentry);
fs/overlayfs/util.c
1286
path->dentry);
fs/overlayfs/util.c
1291
path->dentry);
fs/overlayfs/util.c
1302
int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d, struct ovl_metacopy *metacopy)
fs/overlayfs/util.c
1314
bool ovl_is_metacopy_dentry(struct dentry *dentry)
fs/overlayfs/util.c
1316
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
1318
if (!d_is_reg(dentry))
fs/overlayfs/util.c
1321
if (ovl_dentry_upper(dentry)) {
fs/overlayfs/util.c
1322
if (!ovl_has_upperdata(d_inode(dentry)))
fs/overlayfs/util.c
136
dput(stack[i].dentry);
fs/overlayfs/util.c
1379
struct inode *inode = d_inode(datapath->dentry);
fs/overlayfs/util.c
1408
!S_ISREG(d_inode(metapath->dentry)->i_mode))
fs/overlayfs/util.c
1418
metapath->dentry);
fs/overlayfs/util.c
1429
datapath->dentry);
fs/overlayfs/util.c
1433
digest_size = fsverity_get_digest(d_inode(datapath->dentry), actual_digest,
fs/overlayfs/util.c
1436
pr_warn_ratelimited("lower file '%pd' has no fs-verity digest\n", datapath->dentry);
fs/overlayfs/util.c
1444
datapath->dentry);
fs/overlayfs/util.c
1456
if (!ofs->config.verity_mode || !S_ISREG(d_inode(src->dentry)->i_mode))
fs/overlayfs/util.c
1462
src->dentry);
fs/overlayfs/util.c
1466
digest_size = fsverity_get_digest(d_inode(src->dentry),
fs/overlayfs/util.c
1472
src->dentry);
fs/overlayfs/util.c
164
bool ovl_dentry_remote(struct dentry *dentry)
fs/overlayfs/util.c
166
return dentry->d_flags & OVL_D_REVALIDATE;
fs/overlayfs/util.c
169
void ovl_dentry_update_reval(struct dentry *dentry, struct dentry *realdentry)
fs/overlayfs/util.c
174
spin_lock(&dentry->d_lock);
fs/overlayfs/util.c
175
dentry->d_flags |= realdentry->d_flags & OVL_D_REVALIDATE;
fs/overlayfs/util.c
176
spin_unlock(&dentry->d_lock);
fs/overlayfs/util.c
179
void ovl_dentry_init_reval(struct dentry *dentry, struct dentry *upperdentry,
fs/overlayfs/util.c
182
return ovl_dentry_init_flags(dentry, upperdentry, oe, OVL_D_REVALIDATE);
fs/overlayfs/util.c
185
void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
fs/overlayfs/util.c
193
for (i = 0; i < ovl_numlower(oe) && lowerstack[i].dentry; i++)
fs/overlayfs/util.c
194
flags |= lowerstack[i].dentry->d_flags;
fs/overlayfs/util.c
196
spin_lock(&dentry->d_lock);
fs/overlayfs/util.c
197
dentry->d_flags &= ~mask;
fs/overlayfs/util.c
198
dentry->d_flags |= flags & mask;
fs/overlayfs/util.c
199
spin_unlock(&dentry->d_lock);
fs/overlayfs/util.c
202
bool ovl_dentry_weird(struct dentry *dentry)
fs/overlayfs/util.c
204
if (!d_can_lookup(dentry) && !d_is_file(dentry) && !d_is_symlink(dentry))
fs/overlayfs/util.c
207
if (dentry->d_flags & (DCACHE_NEED_AUTOMOUNT | DCACHE_MANAGE_TRANSIT))
fs/overlayfs/util.c
214
if (sb_has_encoding(dentry->d_sb))
fs/overlayfs/util.c
217
return dentry->d_flags & (DCACHE_OP_HASH | DCACHE_OP_COMPARE);
fs/overlayfs/util.c
22
int ovl_get_write_access(struct dentry *dentry)
fs/overlayfs/util.c
220
enum ovl_path_type ovl_path_type(struct dentry *dentry)
fs/overlayfs/util.c
222
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
225
if (ovl_dentry_upper(dentry)) {
fs/overlayfs/util.c
232
if (ovl_test_flag(OVL_CONST_INO, d_inode(dentry)))
fs/overlayfs/util.c
234
if (d_is_dir(dentry) ||
fs/overlayfs/util.c
235
!ovl_has_upperdata(d_inode(dentry)))
fs/overlayfs/util.c
24
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
245
void ovl_path_upper(struct dentry *dentry, struct path *path)
fs/overlayfs/util.c
247
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
250
path->dentry = ovl_dentry_upper(dentry);
fs/overlayfs/util.c
253
void ovl_path_lower(struct dentry *dentry, struct path *path)
fs/overlayfs/util.c
255
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
260
path->dentry = lowerpath->dentry;
fs/overlayfs/util.c
266
void ovl_path_lowerdata(struct dentry *dentry, struct path *path)
fs/overlayfs/util.c
268
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
270
struct dentry *lowerdata_dentry = ovl_lowerdata_dentry(oe);
fs/overlayfs/util.c
273
path->dentry = lowerdata_dentry;
fs/overlayfs/util.c
286
enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path)
fs/overlayfs/util.c
288
enum ovl_path_type type = ovl_path_type(dentry);
fs/overlayfs/util.c
29
void ovl_start_write(struct dentry *dentry)
fs/overlayfs/util.c
291
ovl_path_lower(dentry, path);
fs/overlayfs/util.c
293
ovl_path_upper(dentry, path);
fs/overlayfs/util.c
298
enum ovl_path_type ovl_path_realdata(struct dentry *dentry, struct path *path)
fs/overlayfs/util.c
300
enum ovl_path_type type = ovl_path_type(dentry);
fs/overlayfs/util.c
302
WARN_ON_ONCE(d_is_dir(dentry));
fs/overlayfs/util.c
305
ovl_path_lowerdata(dentry, path);
fs/overlayfs/util.c
307
ovl_path_upper(dentry, path);
fs/overlayfs/util.c
31
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
312
struct dentry *ovl_dentry_upper(struct dentry *dentry)
fs/overlayfs/util.c
314
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
319
struct dentry *ovl_dentry_lower(struct dentry *dentry)
fs/overlayfs/util.c
321
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
323
return ovl_numlower(oe) ? ovl_lowerstack(oe)->dentry : NULL;
fs/overlayfs/util.c
326
const struct ovl_layer *ovl_layer_lower(struct dentry *dentry)
fs/overlayfs/util.c
328
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
339
struct dentry *ovl_dentry_lowerdata(struct dentry *dentry)
fs/overlayfs/util.c
341
return ovl_lowerdata_dentry(OVL_E(dentry));
fs/overlayfs/util.c
344
int ovl_dentry_set_lowerdata(struct dentry *dentry, struct ovl_path *datapath)
fs/overlayfs/util.c
346
struct ovl_entry *oe = OVL_E(dentry);
fs/overlayfs/util.c
348
struct dentry *datadentry = datapath->dentry;
fs/overlayfs/util.c
35
int ovl_want_write(struct dentry *dentry)
fs/overlayfs/util.c
360
WRITE_ONCE(lowerdata->dentry, dget(datadentry));
fs/overlayfs/util.c
362
ovl_dentry_update_reval(dentry, datadentry);
fs/overlayfs/util.c
367
struct dentry *ovl_dentry_real(struct dentry *dentry)
fs/overlayfs/util.c
369
return ovl_dentry_upper(dentry) ?: ovl_dentry_lower(dentry);
fs/overlayfs/util.c
37
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
372
struct dentry *ovl_i_dentry_upper(struct inode *inode)
fs/overlayfs/util.c
381
path->dentry = ovl_i_dentry_upper(inode);
fs/overlayfs/util.c
382
if (!path->dentry) {
fs/overlayfs/util.c
383
path->dentry = lowerpath->dentry;
fs/overlayfs/util.c
389
return path->dentry ? d_inode_rcu(path->dentry) : NULL;
fs/overlayfs/util.c
394
struct dentry *upperdentry = ovl_i_dentry_upper(inode);
fs/overlayfs/util.c
403
return lowerpath ? d_inode(lowerpath->dentry) : NULL;
fs/overlayfs/util.c
41
void ovl_put_write_access(struct dentry *dentry)
fs/overlayfs/util.c
414
struct dentry *lowerdata = ovl_lowerdata_dentry(OVL_I_E(inode));
fs/overlayfs/util.c
43
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
450
void ovl_dentry_set_flag(unsigned long flag, struct dentry *dentry)
fs/overlayfs/util.c
452
set_bit(flag, OVL_E_FLAGS(dentry));
fs/overlayfs/util.c
455
void ovl_dentry_clear_flag(unsigned long flag, struct dentry *dentry)
fs/overlayfs/util.c
457
clear_bit(flag, OVL_E_FLAGS(dentry));
fs/overlayfs/util.c
460
bool ovl_dentry_test_flag(unsigned long flag, struct dentry *dentry)
fs/overlayfs/util.c
462
return test_bit(flag, OVL_E_FLAGS(dentry));
fs/overlayfs/util.c
465
bool ovl_dentry_is_opaque(struct dentry *dentry)
fs/overlayfs/util.c
467
return ovl_dentry_test_flag(OVL_E_OPAQUE, dentry);
fs/overlayfs/util.c
47
void ovl_end_write(struct dentry *dentry)
fs/overlayfs/util.c
470
bool ovl_dentry_is_whiteout(struct dentry *dentry)
fs/overlayfs/util.c
472
return !dentry->d_inode && ovl_dentry_is_opaque(dentry);
fs/overlayfs/util.c
475
void ovl_dentry_set_opaque(struct dentry *dentry)
fs/overlayfs/util.c
477
ovl_dentry_set_flag(OVL_E_OPAQUE, dentry);
fs/overlayfs/util.c
480
bool ovl_dentry_has_xwhiteouts(struct dentry *dentry)
fs/overlayfs/util.c
482
return ovl_dentry_test_flag(OVL_E_XWHITEOUTS, dentry);
fs/overlayfs/util.c
485
void ovl_dentry_set_xwhiteouts(struct dentry *dentry)
fs/overlayfs/util.c
487
ovl_dentry_set_flag(OVL_E_XWHITEOUTS, dentry);
fs/overlayfs/util.c
49
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
513
bool ovl_dentry_has_upper_alias(struct dentry *dentry)
fs/overlayfs/util.c
515
return ovl_dentry_test_flag(OVL_E_UPPER_ALIAS, dentry);
fs/overlayfs/util.c
518
void ovl_dentry_set_upper_alias(struct dentry *dentry)
fs/overlayfs/util.c
520
ovl_dentry_set_flag(OVL_E_UPPER_ALIAS, dentry);
fs/overlayfs/util.c
53
void ovl_drop_write(struct dentry *dentry)
fs/overlayfs/util.c
55
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
563
bool ovl_dentry_needs_data_copy_up_locked(struct dentry *dentry, int flags)
fs/overlayfs/util.c
568
return !ovl_test_flag(OVL_UPPERDATA, d_inode(dentry));
fs/overlayfs/util.c
571
bool ovl_dentry_needs_data_copy_up(struct dentry *dentry, int flags)
fs/overlayfs/util.c
576
return !ovl_has_upperdata(d_inode(dentry));
fs/overlayfs/util.c
579
const char *ovl_dentry_get_redirect(struct dentry *dentry)
fs/overlayfs/util.c
581
return OVL_I(d_inode(dentry))->redirect;
fs/overlayfs/util.c
584
void ovl_dentry_set_redirect(struct dentry *dentry, const char *redirect)
fs/overlayfs/util.c
586
struct ovl_inode *oi = OVL_I(d_inode(dentry));
fs/overlayfs/util.c
59
struct dentry *ovl_workdir(struct dentry *dentry)
fs/overlayfs/util.c
592
void ovl_inode_update(struct inode *inode, struct dentry *upperdentry)
fs/overlayfs/util.c
609
static void ovl_dir_version_inc(struct dentry *dentry, bool impurity)
fs/overlayfs/util.c
61
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
611
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
614
WARN_ON(!d_is_dir(dentry));
fs/overlayfs/util.c
626
void ovl_dir_modified(struct dentry *dentry, bool impurity)
fs/overlayfs/util.c
629
ovl_copyattr(d_inode(dentry));
fs/overlayfs/util.c
631
ovl_dir_version_inc(dentry, impurity);
fs/overlayfs/util.c
640
bool ovl_is_whiteout(struct dentry *dentry)
fs/overlayfs/util.c
642
struct inode *inode = dentry->d_inode;
fs/overlayfs/util.c
653
return ovl_is_whiteout(path->dentry) ||
fs/overlayfs/util.c
659
struct inode *inode = d_inode(path->dentry);
fs/overlayfs/util.c
689
static bool ovl_already_copied_up_locked(struct dentry *dentry, int flags)
fs/overlayfs/util.c
691
bool disconnected = dentry->d_flags & DCACHE_DISCONNECTED;
fs/overlayfs/util.c
693
if (ovl_dentry_upper(dentry) &&
fs/overlayfs/util.c
694
(ovl_dentry_has_upper_alias(dentry) || disconnected) &&
fs/overlayfs/util.c
695
!ovl_dentry_needs_data_copy_up_locked(dentry, flags))
fs/overlayfs/util.c
701
bool ovl_already_copied_up(struct dentry *dentry, int flags)
fs/overlayfs/util.c
703
bool disconnected = dentry->d_flags & DCACHE_DISCONNECTED;
fs/overlayfs/util.c
718
if (ovl_dentry_upper(dentry) &&
fs/overlayfs/util.c
719
(ovl_dentry_has_upper_alias(dentry) || disconnected) &&
fs/overlayfs/util.c
720
!ovl_dentry_needs_data_copy_up(dentry, flags))
fs/overlayfs/util.c
730
int ovl_copy_up_start(struct dentry *dentry, int flags)
fs/overlayfs/util.c
732
struct inode *inode = d_inode(dentry);
fs/overlayfs/util.c
739
if (ovl_already_copied_up_locked(dentry, flags))
fs/overlayfs/util.c
742
err = ovl_get_write_access(dentry);
fs/overlayfs/util.c
753
void ovl_copy_up_end(struct dentry *dentry)
fs/overlayfs/util.c
755
ovl_put_write_access(dentry);
fs/overlayfs/util.c
756
ovl_inode_unlock(d_inode(dentry));
fs/overlayfs/util.c
774
struct dentry *dentry = path->dentry;
fs/overlayfs/util.c
778
if (!d_is_reg(dentry) || i_size_read(d_inode(dentry)) != 0)
fs/overlayfs/util.c
832
res = ovl_setxattr(ofs, upperpath->dentry, OVL_XATTR_UUID, uuid.b,
fs/overlayfs/util.c
844
set ? "set" : "get", upperpath->dentry, res);
fs/overlayfs/util.c
854
if (!d_is_dir(path->dentry))
fs/overlayfs/util.c
889
int ovl_check_setxattr(struct ovl_fs *ofs, struct dentry *upperdentry,
fs/overlayfs/util.c
909
int ovl_set_impure(struct dentry *dentry, struct dentry *upperdentry)
fs/overlayfs/util.c
911
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/util.c
914
if (ovl_test_flag(OVL_IMPURE, d_inode(dentry)))
fs/overlayfs/util.c
923
ovl_set_flag(OVL_IMPURE, d_inode(dentry));
fs/overlayfs/util.c
931
void ovl_check_protattr(struct inode *inode, struct dentry *upper)
fs/overlayfs/util.c
94
struct dentry *ovl_indexdir(struct super_block *sb)
fs/overlayfs/util.c
966
int ovl_set_protattr(struct inode *inode, struct dentry *upper,
fs/overlayfs/xattrs.c
105
ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size)
fs/overlayfs/xattrs.c
107
struct dentry *realdentry = ovl_dentry_real(dentry);
fs/overlayfs/xattrs.c
108
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/xattrs.c
114
with_ovl_creds(dentry->d_sb)
fs/overlayfs/xattrs.c
131
if (!ovl_can_list(dentry->d_sb, s)) {
fs/overlayfs/xattrs.c
134
} else if (ovl_is_escaped_xattr(dentry->d_sb, s)) {
fs/overlayfs/xattrs.c
174
struct dentry *dentry, struct inode *inode,
fs/overlayfs/xattrs.c
184
r = ovl_xattr_get(dentry, inode, escaped, buffer, size);
fs/overlayfs/xattrs.c
193
struct dentry *dentry, struct inode *inode,
fs/overlayfs/xattrs.c
204
r = ovl_xattr_set(dentry, inode, escaped, value, size, flags);
fs/overlayfs/xattrs.c
212
struct dentry *dentry, struct inode *inode,
fs/overlayfs/xattrs.c
215
return ovl_xattr_get(dentry, inode, name, buffer, size);
fs/overlayfs/xattrs.c
220
struct dentry *dentry, struct inode *inode,
fs/overlayfs/xattrs.c
224
return ovl_xattr_set(dentry, inode, name, value, size, flags);
fs/overlayfs/xattrs.c
36
static int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name,
fs/overlayfs/xattrs.c
40
struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
fs/overlayfs/xattrs.c
41
struct dentry *upperdentry = ovl_i_dentry_upper(inode);
fs/overlayfs/xattrs.c
42
struct dentry *realdentry = upperdentry ?: ovl_dentry_lower(dentry);
fs/overlayfs/xattrs.c
46
ovl_path_lower(dentry, &realpath);
fs/overlayfs/xattrs.c
47
with_ovl_creds(dentry->d_sb)
fs/overlayfs/xattrs.c
54
err = ovl_copy_up(dentry);
fs/overlayfs/xattrs.c
58
realdentry = ovl_dentry_upper(dentry);
fs/overlayfs/xattrs.c
61
err = ovl_want_write(dentry);
fs/overlayfs/xattrs.c
65
with_ovl_creds(dentry->d_sb) {
fs/overlayfs/xattrs.c
73
ovl_drop_write(dentry);
fs/overlayfs/xattrs.c
81
static int ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name,
fs/overlayfs/xattrs.c
87
with_ovl_creds(dentry->d_sb)
fs/overlayfs/xattrs.c
88
return vfs_getxattr(mnt_idmap(realpath.mnt), realpath.dentry, name, value, size);
fs/pidfs.c
1002
struct dentry *unused, struct inode *inode,
fs/pidfs.c
1019
struct mnt_idmap *idmap, struct dentry *unused,
fs/pidfs.c
1135
pidfs_root_path.dentry = pidfs_mnt->mnt_root;
fs/pidfs.c
747
static int pidfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/pidfs.c
750
return anon_inode_setattr(idmap, dentry, attr);
fs/pidfs.c
760
static ssize_t pidfs_listxattr(struct dentry *dentry, char *buf, size_t size)
fs/pidfs.c
762
struct inode *inode = d_inode(dentry);
fs/pidfs.c
798
static char *pidfs_dname(struct dentry *dentry, char *buffer, int buflen)
fs/pidfs.c
844
static struct dentry *pidfs_fh_to_dentry(struct super_block *sb,
fs/pidfs.c
875
return path.dentry;
fs/pidfs.c
980
static struct dentry *pidfs_stash_dentry(struct dentry **stashed,
fs/pidfs.c
981
struct dentry *dentry)
fs/pidfs.c
984
struct pid *pid = d_inode(dentry)->i_private;
fs/pidfs.c
992
return stash_dentry(stashed, dentry);
fs/pipe.c
874
static char *pipefs_dname(struct dentry *dentry, char *buffer, int buflen)
fs/pipe.c
877
d_inode(dentry)->i_ino);
fs/pnode.h
58
struct mount *copy_tree(struct mount *, struct dentry *, int);
fs/pnode.h
59
bool is_path_reachable(struct mount *, struct dentry *,
fs/posix_acl.c
1016
int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
1020
struct inode *inode = d_inode(dentry);
fs/posix_acl.c
1089
int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
1094
struct inode *inode = d_inode(dentry);
fs/posix_acl.c
1125
error = security_inode_set_acl(idmap, dentry, acl_name, kacl);
fs/posix_acl.c
1134
error = set_posix_acl(idmap, dentry, acl_type, kacl);
fs/posix_acl.c
1138
fsnotify_xattr(dentry);
fs/posix_acl.c
1139
security_inode_post_set_acl(dentry, acl_name, kacl);
fs/posix_acl.c
115
struct dentry *dentry, struct inode *inode,
fs/posix_acl.c
1167
struct dentry *dentry, const char *acl_name)
fs/posix_acl.c
1169
struct inode *inode = d_inode(dentry);
fs/posix_acl.c
1181
error = security_inode_get_acl(idmap, dentry, acl_name);
fs/posix_acl.c
1190
acl = __get_acl(idmap, dentry, inode, acl_type);
fs/posix_acl.c
1210
int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
1215
struct inode *inode = d_inode(dentry);
fs/posix_acl.c
1233
error = security_inode_remove_acl(idmap, dentry, acl_name);
fs/posix_acl.c
1242
error = set_posix_acl(idmap, dentry, acl_type, NULL);
fs/posix_acl.c
1246
fsnotify_xattr(dentry);
fs/posix_acl.c
1247
security_inode_post_remove_acl(idmap, dentry, acl_name);
fs/posix_acl.c
1263
int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
1279
error = vfs_set_acl(idmap, dentry, acl_name, acl);
fs/posix_acl.c
1284
ssize_t do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
1290
acl = vfs_get_acl(idmap, dentry, acl_name);
fs/posix_acl.c
1294
error = vfs_posix_acl_to_xattr(idmap, d_inode(dentry),
fs/posix_acl.c
156
if (dentry && inode->i_op->get_acl) {
fs/posix_acl.c
157
acl = inode->i_op->get_acl(idmap, dentry, type);
fs/posix_acl.c
604
posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
607
struct inode *inode = d_inode(dentry);
fs/posix_acl.c
626
ret = inode->i_op->set_acl(idmap, dentry, acl, ACL_TYPE_ACCESS);
fs/posix_acl.c
935
set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/posix_acl.c
938
struct inode *inode = d_inode(dentry);
fs/posix_acl.c
955
return inode->i_op->set_acl(idmap, dentry, acl, type);
fs/posix_acl.c
985
posix_acl_xattr_list(struct dentry *dentry)
fs/posix_acl.c
987
return IS_POSIXACL(d_backing_inode(dentry));
fs/proc/base.c
1780
static int proc_exe_link(struct dentry *dentry, struct path *exe_path)
fs/proc/base.c
1785
task = get_proc_task(d_inode(dentry));
fs/proc/base.c
1799
static const char *proc_pid_get_link(struct dentry *dentry,
fs/proc/base.c
1806
if (!dentry)
fs/proc/base.c
1813
error = PROC_I(inode)->op.proc_get_link(dentry, &path);
fs/proc/base.c
1846
static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int buflen)
fs/proc/base.c
1849
struct inode *inode = d_inode(dentry);
fs/proc/base.c
1856
error = PROC_I(inode)->op.proc_get_link(dentry, &path);
fs/proc/base.c
2021
struct inode *inode = d_inode(path->dentry);
fs/proc/base.c
2065
struct dentry *dentry, unsigned int flags)
fs/proc/base.c
2072
inode = d_inode_rcu(dentry);
fs/proc/base.c
2091
int pid_delete_dentry(const struct dentry *dentry)
fs/proc/base.c
2097
return proc_inode_is_dead(d_inode(dentry));
fs/proc/base.c
2124
struct dentry *child, *dir = file->f_path.dentry;
fs/proc/base.c
2140
struct dentry *res;
fs/proc/base.c
2163
static int dname_to_vma_addr(struct dentry *dentry,
fs/proc/base.c
2166
const char *str = dentry->d_name.name;
fs/proc/base.c
2202
struct dentry *dentry, unsigned int flags)
fs/proc/base.c
221
static int proc_cwd_link(struct dentry *dentry, struct path *path)
fs/proc/base.c
2214
inode = d_inode(dentry);
fs/proc/base.c
2223
if (!dname_to_vma_addr(dentry, &vm_start, &vm_end)) {
fs/proc/base.c
223
struct task_struct *task = get_proc_task(d_inode(dentry));
fs/proc/base.c
2253
static int map_files_get_link(struct dentry *dentry, struct path *path)
fs/proc/base.c
2262
task = get_proc_task(d_inode(dentry));
fs/proc/base.c
2271
rc = dname_to_vma_addr(dentry, &vm_start, &vm_end);
fs/proc/base.c
2306
proc_map_files_get_link(struct dentry *dentry,
fs/proc/base.c
2313
return proc_pid_get_link(dentry, inode, done);
fs/proc/base.c
2325
static struct dentry *
fs/proc/base.c
2326
proc_map_files_instantiate(struct dentry *dentry,
fs/proc/base.c
2333
inode = proc_pid_make_inode(dentry->d_sb, task, S_IFLNK |
fs/proc/base.c
2345
return proc_splice_unmountable(inode, dentry,
fs/proc/base.c
2349
static struct dentry *proc_map_files_lookup(struct inode *dir,
fs/proc/base.c
2350
struct dentry *dentry, unsigned int flags)
fs/proc/base.c
2355
struct dentry *result;
fs/proc/base.c
2368
if (dname_to_vma_addr(dentry, &vm_start, &vm_end))
fs/proc/base.c
238
static int proc_root_link(struct dentry *dentry, struct path *path)
fs/proc/base.c
2385
result = proc_map_files_instantiate(dentry, task,
fs/proc/base.c
240
struct task_struct *task = get_proc_task(d_inode(dentry));
fs/proc/base.c
2690
static struct dentry *proc_pident_instantiate(struct dentry *dentry,
fs/proc/base.c
2697
inode = proc_pid_make_inode(dentry->d_sb, task, p->mode);
fs/proc/base.c
2710
return d_splice_alias_ops(inode, dentry, &pid_dentry_operations);
fs/proc/base.c
2713
static struct dentry *proc_pident_lookup(struct inode *dir,
fs/proc/base.c
2714
struct dentry *dentry,
fs/proc/base.c
2719
struct dentry *res = ERR_PTR(-ENOENT);
fs/proc/base.c
2729
if (p->len != dentry->d_name.len)
fs/proc/base.c
2731
if (!memcmp(dentry->d_name.name, p->name, p->len)) {
fs/proc/base.c
2732
res = proc_pident_instantiate(dentry, task, p);
fs/proc/base.c
2787
file->f_path.dentry->d_name.name,
fs/proc/base.c
2845
file->f_path.dentry->d_name.name, page,
fs/proc/base.c
2877
static struct dentry *proc_##LSM##_attr_dir_lookup(struct inode *dir, \
fs/proc/base.c
2878
struct dentry *dentry, unsigned int flags) \
fs/proc/base.c
2880
return proc_pident_lookup(dir, dentry, \
fs/proc/base.c
2936
static struct dentry *proc_attr_dir_lookup(struct inode *dir,
fs/proc/base.c
2937
struct dentry *dentry, unsigned int flags)
fs/proc/base.c
2939
return proc_pident_lookup(dir, dentry,
fs/proc/base.c
3446
static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/proc/base.c
3448
return proc_pident_lookup(dir, dentry,
fs/proc/base.c
3484
static struct dentry *proc_pid_instantiate(struct dentry * dentry,
fs/proc/base.c
3489
inode = proc_pid_make_base_inode(dentry->d_sb, task,
fs/proc/base.c
3501
return d_splice_alias_ops(inode, dentry, &pid_dentry_operations);
fs/proc/base.c
3504
struct dentry *proc_pid_lookup(struct dentry *dentry, unsigned int flags)
fs/proc/base.c
3510
struct dentry *result = ERR_PTR(-ENOENT);
fs/proc/base.c
3512
tgid = name_to_int(&dentry->d_name);
fs/proc/base.c
3516
fs_info = proc_sb_info(dentry->d_sb);
fs/proc/base.c
3532
result = proc_pid_instantiate(dentry, task, NULL);
fs/proc/base.c
3766
static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/proc/base.c
3768
return proc_pident_lookup(dir, dentry,
fs/proc/base.c
3785
static struct dentry *proc_task_instantiate(struct dentry *dentry,
fs/proc/base.c
3789
inode = proc_pid_make_base_inode(dentry->d_sb, task,
fs/proc/base.c
3801
return d_splice_alias_ops(inode, dentry, &pid_dentry_operations);
fs/proc/base.c
3804
static struct dentry *proc_task_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
fs/proc/base.c
3811
struct dentry *result = ERR_PTR(-ENOENT);
fs/proc/base.c
3816
tid = name_to_int(&dentry->d_name);
fs/proc/base.c
3820
fs_info = proc_sb_info(dentry->d_sb);
fs/proc/base.c
3832
result = proc_task_instantiate(dentry, task, NULL);
fs/proc/base.c
3962
struct inode *inode = d_inode(path->dentry);
fs/proc/base.c
724
int proc_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/proc/base.c
728
struct inode *inode = d_inode(dentry);
fs/proc/base.c
733
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/proc/fd.c
144
struct dentry *dentry, unsigned int flags)
fs/proc/fd.c
153
inode = d_inode(dentry);
fs/proc/fd.c
174
static int proc_fd_link(struct dentry *dentry, struct path *path)
fs/proc/fd.c
179
task = get_proc_task(d_inode(dentry));
fs/proc/fd.c
181
unsigned int fd = proc_fd(d_inode(dentry));
fs/proc/fd.c
202
static struct dentry *proc_fd_instantiate(struct dentry *dentry,
fs/proc/fd.c
209
inode = proc_pid_make_inode(dentry->d_sb, task, S_IFLNK);
fs/proc/fd.c
222
return proc_splice_unmountable(inode, dentry,
fs/proc/fd.c
226
static struct dentry *proc_lookupfd_common(struct inode *dir,
fs/proc/fd.c
227
struct dentry *dentry,
fs/proc/fd.c
231
struct fd_data data = {.fd = name_to_int(&dentry->d_name)};
fs/proc/fd.c
232
struct dentry *result = ERR_PTR(-ENOENT);
fs/proc/fd.c
241
result = instantiate(dentry, task, &data);
fs/proc/fd.c
321
static struct dentry *proc_lookupfd(struct inode *dir, struct dentry *dentry,
fs/proc/fd.c
324
return proc_lookupfd_common(dir, dentry, proc_fd_instantiate);
fs/proc/fd.c
354
struct inode *inode = d_inode(path->dentry);
fs/proc/fd.c
367
static struct dentry *proc_fdinfo_instantiate(struct dentry *dentry,
fs/proc/fd.c
374
inode = proc_pid_make_inode(dentry->d_sb, task, S_IFREG | S_IRUGO);
fs/proc/fd.c
386
return proc_splice_unmountable(inode, dentry,
fs/proc/fd.c
390
static struct dentry *
fs/proc/fd.c
391
proc_lookupfdinfo(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/proc/fd.c
393
return proc_lookupfd_common(dir, dentry, proc_fdinfo_instantiate);
fs/proc/generic.c
119
struct dentry *dentry, struct iattr *iattr)
fs/proc/generic.c
121
struct inode *inode = d_inode(dentry);
fs/proc/generic.c
125
error = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/proc/generic.c
140
struct inode *inode = d_inode(path->dentry);
fs/proc/generic.c
220
struct dentry *dentry, unsigned int flags)
fs/proc/generic.c
225
if (atomic_read(&PDE(d_inode(dentry))->in_use) < 0)
fs/proc/generic.c
230
static int proc_misc_d_delete(const struct dentry *dentry)
fs/proc/generic.c
232
return atomic_read(&PDE(d_inode(dentry))->in_use) < 0;
fs/proc/generic.c
244
struct dentry *proc_lookup_de(struct inode *dir, struct dentry *dentry,
fs/proc/generic.c
250
de = pde_subdir_find(de, dentry->d_name.name, dentry->d_name.len);
fs/proc/generic.c
258
return d_splice_alias_ops(inode, dentry,
fs/proc/generic.c
260
return d_splice_alias_ops(inode, dentry,
fs/proc/generic.c
267
struct dentry *proc_lookup(struct inode *dir, struct dentry *dentry,
fs/proc/generic.c
275
return proc_lookup_de(dir, dentry, PDE(dir));
fs/proc/generic.c
351
struct dentry *dentry, unsigned int flags)
fs/proc/inode.c
140
struct dentry *dir = d_find_any_alias(inode);
fs/proc/inode.c
146
struct dentry *dentry;
fs/proc/inode.c
147
while ((dentry = d_find_alias(inode))) {
fs/proc/inode.c
148
d_invalidate(dentry);
fs/proc/inode.c
149
dput(dentry);
fs/proc/inode.c
173
static int proc_show_options(struct seq_file *seq, struct dentry *root)
fs/proc/inode.c
613
static const char *proc_get_link(struct dentry *dentry,
fs/proc/internal.h
110
int (*proc_get_link)(struct dentry *, struct path *);
fs/proc/internal.h
260
extern int proc_setattr(struct mnt_idmap *, struct dentry *,
fs/proc/internal.h
265
extern int pid_delete_dentry(const struct dentry *);
fs/proc/internal.h
267
struct dentry *proc_pid_lookup(struct dentry *, unsigned int);
fs/proc/internal.h
271
typedef struct dentry *instantiate_t(struct dentry *,
fs/proc/internal.h
283
extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int);
fs/proc/internal.h
284
struct dentry *proc_lookup_de(struct inode *, struct dentry *, struct proc_dir_entry *);
fs/proc/internal.h
429
static inline struct dentry *proc_splice_unmountable(struct inode *inode,
fs/proc/internal.h
430
struct dentry *dentry, const struct dentry_operations *d_ops)
fs/proc/internal.h
432
dont_mount(dentry);
fs/proc/internal.h
433
return d_splice_alias_ops(inode, dentry, d_ops);
fs/proc/namespaces.c
105
inode = proc_pid_make_inode(dentry->d_sb, task, S_IFLNK | S_IRWXUGO);
fs/proc/namespaces.c
114
return d_splice_alias_ops(inode, dentry, &pid_dentry_operations);
fs/proc/namespaces.c
150
static struct dentry *proc_ns_dir_lookup(struct inode *dir,
fs/proc/namespaces.c
151
struct dentry *dentry, unsigned int flags)
fs/proc/namespaces.c
155
unsigned int len = dentry->d_name.len;
fs/proc/namespaces.c
156
struct dentry *res = ERR_PTR(-ENOENT);
fs/proc/namespaces.c
165
if (!memcmp(dentry->d_name.name, (*entry)->name, len))
fs/proc/namespaces.c
171
res = proc_ns_instantiate(dentry, task, *entry);
fs/proc/namespaces.c
42
static const char *proc_ns_get_link(struct dentry *dentry,
fs/proc/namespaces.c
51
if (!dentry)
fs/proc/namespaces.c
71
static int proc_ns_readlink(struct dentry *dentry, char __user *buffer, int buflen)
fs/proc/namespaces.c
73
struct inode *inode = d_inode(dentry);
fs/proc/namespaces.c
98
static struct dentry *proc_ns_instantiate(struct dentry *dentry,
fs/proc/proc_net.c
288
static struct dentry *proc_tgid_net_lookup(struct inode *dir,
fs/proc/proc_net.c
289
struct dentry *dentry, unsigned int flags)
fs/proc/proc_net.c
291
struct dentry *de;
fs/proc/proc_net.c
297
de = proc_lookup_de(dir, dentry, net->proc_net);
fs/proc/proc_net.c
307
struct inode *inode = d_inode(path->dentry);
fs/proc/proc_sysctl.c
515
static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
fs/proc/proc_sysctl.c
520
const struct qstr *name = &dentry->d_name;
fs/proc/proc_sysctl.c
523
struct dentry *err = ERR_PTR(-ENOENT);
fs/proc/proc_sysctl.c
544
err = d_splice_alias_ops(inode, dentry, &proc_sys_dentry_operations);
fs/proc/proc_sysctl.c
683
struct dentry *child, *dir = file->f_path.dentry;
fs/proc/proc_sysctl.c
700
struct dentry *res;
fs/proc/proc_sysctl.c
822
struct dentry *dentry, struct iattr *attr)
fs/proc/proc_sysctl.c
824
struct inode *inode = d_inode(dentry);
fs/proc/proc_sysctl.c
830
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/proc/proc_sysctl.c
842
struct inode *inode = d_inode(path->dentry);
fs/proc/proc_sysctl.c
887
struct dentry *dentry, unsigned int flags)
fs/proc/proc_sysctl.c
891
return !PROC_I(d_inode(dentry))->sysctl->unregistering;
fs/proc/proc_sysctl.c
894
static int proc_sys_delete(const struct dentry *dentry)
fs/proc/proc_sysctl.c
896
return !!PROC_I(d_inode(dentry))->sysctl->unregistering;
fs/proc/proc_sysctl.c
914
static int proc_sys_compare(const struct dentry *dentry,
fs/proc/proc_sysctl.c
926
if (d_in_lookup(dentry))
fs/proc/proc_sysctl.c
929
inode = d_inode_rcu(dentry);
fs/proc/root.c
397
generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(path->dentry),
fs/proc/root.c
403
static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
fs/proc/root.c
405
if (!proc_pid_lookup(dentry, flags))
fs/proc/root.c
408
return proc_lookup(dir, dentry, flags);
fs/proc/self.c
11
static const char *proc_self_get_link(struct dentry *dentry,
fs/proc/self.c
22
name = kmalloc(10 + 1, dentry ? GFP_KERNEL : GFP_ATOMIC);
fs/proc/self.c
24
return dentry ? ERR_PTR(-ENOMEM) : ERR_PTR(-ECHILD);
fs/proc/self.c
39
struct dentry *self;
fs/proc/thread_self.c
11
static const char *proc_thread_self_get_link(struct dentry *dentry,
fs/proc/thread_self.c
22
name = kmalloc(10 + 6 + 10 + 1, dentry ? GFP_KERNEL : GFP_ATOMIC);
fs/proc/thread_self.c
24
return dentry ? ERR_PTR(-ENOMEM) : ERR_PTR(-ECHILD);
fs/proc/thread_self.c
39
struct dentry *thread_self;
fs/proc_namespace.c
105
struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
fs/proc_namespace.c
106
struct super_block *sb = mnt_path.dentry->d_sb;
fs/proc_namespace.c
110
err = sb->s_op->show_devname(m, mnt_path.dentry);
fs/proc_namespace.c
129
err = sb->s_op->show_options(m, mnt_path.dentry);
fs/proc_namespace.c
140
struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
fs/proc_namespace.c
197
struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
fs/proc_namespace.c
198
struct super_block *sb = mnt_path.dentry->d_sb;
fs/proc_namespace.c
204
err = sb->s_op->show_devname(m, mnt_path.dentry);
fs/proc_namespace.c
226
err = sb->s_op->show_stats(m, mnt_path.dentry);
fs/pstore/ftrace.c
125
static struct dentry *pstore_ftrace_dir;
fs/pstore/inode.c
182
static int pstore_unlink(struct inode *dir, struct dentry *dentry)
fs/pstore/inode.c
184
struct pstore_private *p = d_inode(dentry)->i_private;
fs/pstore/inode.c
196
p->dentry = NULL;
fs/pstore/inode.c
202
return simple_unlink(dir, dentry);
fs/pstore/inode.c
266
static int pstore_show_options(struct seq_file *m, struct dentry *root)
fs/pstore/inode.c
290
static struct dentry *psinfo_lock_root(void)
fs/pstore/inode.c
292
struct dentry *root;
fs/pstore/inode.c
311
struct dentry *root;
fs/pstore/inode.c
321
locked_recursive_removal(pos->dentry, NULL);
fs/pstore/inode.c
322
pos->dentry = NULL;
fs/pstore/inode.c
337
int pstore_mkfile(struct dentry *root, struct pstore_record *record)
fs/pstore/inode.c
339
struct dentry *dentry;
fs/pstore/inode.c
372
dentry = d_alloc_name(root, name);
fs/pstore/inode.c
373
if (!dentry)
fs/pstore/inode.c
376
private->dentry = dentry; // borrowed
fs/pstore/inode.c
385
d_make_persistent(dentry, no_free_ptr(inode));
fs/pstore/inode.c
386
dput(dentry);
fs/pstore/inode.c
401
struct dentry *root;
fs/pstore/inode.c
42
struct dentry *dentry;
fs/pstore/internal.h
41
struct dentry *root, int quiet);
fs/pstore/internal.h
43
extern int pstore_mkfile(struct dentry *root,
fs/pstore/platform.c
658
struct dentry *root, int quiet)
fs/qnx4/inode.c
135
static int qnx4_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/qnx4/inode.c
137
struct super_block *sb = dentry->d_sb;
fs/qnx4/inode.c
34
static int qnx4_statfs(struct dentry *, struct kstatfs *);
fs/qnx4/namei.c
114
return d_splice_alias(foundinode, dentry);
fs/qnx4/namei.c
88
struct dentry * qnx4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
fs/qnx4/namei.c
94
const char *name = dentry->d_name.name;
fs/qnx4/namei.c
95
int len = dentry->d_name.len;
fs/qnx4/qnx4.h
25
extern struct dentry *qnx4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags);
fs/qnx6/inode.c
156
static int qnx6_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/qnx6/inode.c
158
struct super_block *sb = dentry->d_sb;
fs/qnx6/inode.c
35
static int qnx6_statfs(struct dentry *dentry, struct kstatfs *buf);
fs/qnx6/inode.c
36
static int qnx6_show_options(struct seq_file *seq, struct dentry *root);
fs/qnx6/inode.c
46
static int qnx6_show_options(struct seq_file *seq, struct dentry *root)
fs/qnx6/namei.c
16
struct dentry *qnx6_lookup(struct inode *dir, struct dentry *dentry,
fs/qnx6/namei.c
21
const char *name = dentry->d_name.name;
fs/qnx6/namei.c
22
int len = dentry->d_name.len;
fs/qnx6/namei.c
36
return d_splice_alias(foundinode, dentry);
fs/qnx6/qnx6.h
48
extern struct dentry *qnx6_lookup(struct inode *dir, struct dentry *dentry,
fs/quota/dquot.c
2542
int error = security_quota_on(path->dentry);
fs/quota/dquot.c
2546
if (path->dentry->d_sb != sb)
fs/quota/dquot.c
2549
error = dquot_load_quota_inode(d_inode(path->dentry), type,
fs/quota/dquot.c
2563
struct dentry *dentry;
fs/quota/dquot.c
2566
dentry = lookup_noperm_positive_unlocked(&QSTR(qf_name), sb->s_root);
fs/quota/dquot.c
2567
if (IS_ERR(dentry))
fs/quota/dquot.c
2568
return PTR_ERR(dentry);
fs/quota/dquot.c
2570
error = security_quota_on(dentry);
fs/quota/dquot.c
2572
error = dquot_load_quota_inode(d_inode(dentry), type, format_id,
fs/quota/dquot.c
2575
dput(dentry);
fs/ramfs/file-nommu.c
162
struct dentry *dentry, struct iattr *ia)
fs/ramfs/file-nommu.c
164
struct inode *inode = d_inode(dentry);
fs/ramfs/file-nommu.c
169
ret = setattr_prepare(&nop_mnt_idmap, dentry, ia);
fs/ramfs/file-nommu.c
25
static int ramfs_nommu_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
fs/ramfs/inode.c
106
&dentry->d_name, NULL,
fs/ramfs/inode.c
113
d_make_persistent(dentry, inode);
fs/ramfs/inode.c
121
static struct dentry *ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/ramfs/inode.c
122
struct dentry *dentry, umode_t mode)
fs/ramfs/inode.c
124
int retval = ramfs_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFDIR, 0);
fs/ramfs/inode.c
131
struct dentry *dentry, umode_t mode, bool excl)
fs/ramfs/inode.c
133
return ramfs_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFREG, 0);
fs/ramfs/inode.c
137
struct dentry *dentry, const char *symname)
fs/ramfs/inode.c
147
&dentry->d_name, NULL,
fs/ramfs/inode.c
156
d_make_persistent(dentry, inode);
fs/ramfs/inode.c
205
static int ramfs_show_options(struct seq_file *m, struct dentry *root)
fs/ramfs/inode.c
99
struct dentry *dentry, umode_t mode, dev_t dev)
fs/resctrl/internal.h
326
extern struct dentry *debugfs_resctrl;
fs/resctrl/rdtgroup.c
77
struct dentry *debugfs_resctrl;
fs/romfs/super.c
203
static struct dentry *romfs_lookup(struct inode *dir, struct dentry *dentry,
fs/romfs/super.c
222
name = dentry->d_name.name;
fs/romfs/super.c
223
len = dentry->d_name.len;
fs/romfs/super.c
250
return d_splice_alias(inode, dentry);
fs/romfs/super.c
384
static int romfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/romfs/super.c
386
struct super_block *sb = dentry->d_sb;
fs/romfs/super.c
409
(romfs_maxsize(dentry->d_sb) + ROMBSIZE - 1) >> ROMBSBITS;
fs/seq_file.c
538
int seq_dentry(struct seq_file *m, struct dentry *dentry, const char *esc)
fs/seq_file.c
545
char *p = dentry_path(dentry, buf, size);
fs/smb/client/cached_dir.c
106
dentry);
fs/smb/client/cached_dir.c
107
dput(dentry);
fs/smb/client/cached_dir.c
108
dentry = child;
fs/smb/client/cached_dir.c
109
} while (!IS_ERR(dentry));
fs/smb/client/cached_dir.c
110
return dentry;
fs/smb/client/cached_dir.c
153
struct dentry *dentry = NULL;
fs/smb/client/cached_dir.c
222
dentry = dget(cifs_sb->root);
fs/smb/client/cached_dir.c
224
dentry = path_to_dentry(cifs_sb, npath);
fs/smb/client/cached_dir.c
225
if (IS_ERR(dentry)) {
fs/smb/client/cached_dir.c
229
if (dentry->d_parent && server->dialect >= SMB30_PROT_ID) {
fs/smb/client/cached_dir.c
23
struct dentry *dentry;
fs/smb/client/cached_dir.c
234
if (parent_cfid->dentry == dentry->d_parent) {
fs/smb/client/cached_dir.c
249
cfid->dentry = dentry;
fs/smb/client/cached_dir.c
415
struct dentry *dentry,
fs/smb/client/cached_dir.c
424
if (!dentry)
fs/smb/client/cached_dir.c
429
if (cfid->dentry == dentry) {
fs/smb/client/cached_dir.c
461
dput(cfid->dentry);
fs/smb/client/cached_dir.c
462
cfid->dentry = NULL;
fs/smb/client/cached_dir.c
572
tmp_list->dentry = cfid->dentry;
fs/smb/client/cached_dir.c
573
cfid->dentry = NULL;
fs/smb/client/cached_dir.c
584
dput(tmp_list->dentry);
fs/smb/client/cached_dir.c
655
dput(cfid->dentry);
fs/smb/client/cached_dir.c
656
cfid->dentry = NULL;
fs/smb/client/cached_dir.c
726
dput(cfid->dentry);
fs/smb/client/cached_dir.c
727
cfid->dentry = NULL;
fs/smb/client/cached_dir.c
74
static struct dentry *
fs/smb/client/cached_dir.c
77
struct dentry *dentry;
fs/smb/client/cached_dir.c
791
dput(cfid->dentry);
fs/smb/client/cached_dir.c
792
cfid->dentry = NULL;
fs/smb/client/cached_dir.c
82
dentry = dget(cifs_sb->root);
fs/smb/client/cached_dir.c
86
struct inode *dir = d_inode(dentry);
fs/smb/client/cached_dir.c
87
struct dentry *child;
fs/smb/client/cached_dir.c
90
dput(dentry);
fs/smb/client/cached_dir.c
91
dentry = ERR_PTR(-ENOTDIR);
fs/smb/client/cached_dir.h
48
struct dentry *dentry;
fs/smb/client/cached_dir.h
87
int open_cached_dir_by_dentry(struct cifs_tcon *tcon, struct dentry *dentry,
fs/smb/client/cifs_debug.c
257
cfile->dentry);
fs/smb/client/cifs_debug.c
260
inode = d_inode(cfile->dentry);
fs/smb/client/cifs_fs_sb.h
73
struct dentry *root;
fs/smb/client/cifsacl.c
1708
struct dentry *dentry, int type)
fs/smb/client/cifsacl.c
1714
struct super_block *sb = dentry->d_sb;
fs/smb/client/cifsacl.c
1729
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/cifsacl.c
1771
int cifs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/smb/client/cifsacl.c
1777
struct super_block *sb = dentry->d_sb;
fs/smb/client/cifsacl.c
1792
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/cifsfs.c
1000
return dentry;
fs/smb/client/cifsfs.c
1010
struct dentry *
fs/smb/client/cifsfs.c
1017
struct dentry *root;
fs/smb/client/cifsfs.c
1228
const char *cifs_get_link(struct dentry *dentry, struct inode *inode,
fs/smb/client/cifsfs.c
1233
if (!dentry)
fs/smb/client/cifsfs.c
354
cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/smb/client/cifsfs.c
356
struct super_block *sb = dentry->d_sb;
fs/smb/client/cifsfs.c
368
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/cifsfs.c
594
static int cifs_show_devname(struct seq_file *m, struct dentry *root)
fs/smb/client/cifsfs.c
640
cifs_show_options(struct seq_file *s, struct dentry *root)
fs/smb/client/cifsfs.c
905
static int cifs_show_stats(struct seq_file *s, struct dentry *root)
fs/smb/client/cifsfs.c
951
static struct dentry *
fs/smb/client/cifsfs.c
954
struct dentry *dentry;
fs/smb/client/cifsfs.c
971
dentry = dget(sb->s_root);
fs/smb/client/cifsfs.c
975
struct inode *dir = d_inode(dentry);
fs/smb/client/cifsfs.c
976
struct dentry *child;
fs/smb/client/cifsfs.c
979
dput(dentry);
fs/smb/client/cifsfs.c
980
dentry = ERR_PTR(-ENOTDIR);
fs/smb/client/cifsfs.c
995
dentry);
fs/smb/client/cifsfs.c
996
dput(dentry);
fs/smb/client/cifsfs.c
997
dentry = child;
fs/smb/client/cifsfs.c
998
} while (!IS_ERR(dentry));
fs/smb/client/cifsfs.h
120
const char *cifs_get_link(struct dentry *dentry, struct inode *inode,
fs/smb/client/cifsfs.h
123
struct dentry *direntry, const char *symname);
fs/smb/client/cifsfs.h
127
ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size);
fs/smb/client/cifsfs.h
142
struct dentry *cifs_smb3_do_mount(struct file_system_type *fs_type, int flags,
fs/smb/client/cifsfs.h
31
static inline void cifs_set_time(struct dentry *dentry, unsigned long time)
fs/smb/client/cifsfs.h
33
dentry->d_fsdata = (void *) time;
fs/smb/client/cifsfs.h
36
static inline unsigned long cifs_get_time(struct dentry *dentry)
fs/smb/client/cifsfs.h
38
return (unsigned long) dentry->d_fsdata;
fs/smb/client/cifsfs.h
53
struct dentry *direntry, umode_t mode, bool excl);
fs/smb/client/cifsfs.h
54
int cifs_atomic_open(struct inode *inode, struct dentry *direntry,
fs/smb/client/cifsfs.h
56
struct dentry *cifs_lookup(struct inode *parent_dir_inode,
fs/smb/client/cifsfs.h
57
struct dentry *direntry, unsigned int flags);
fs/smb/client/cifsfs.h
58
int cifs_unlink(struct inode *dir, struct dentry *dentry);
fs/smb/client/cifsfs.h
59
int cifs_hardlink(struct dentry *old_file, struct inode *inode,
fs/smb/client/cifsfs.h
60
struct dentry *direntry);
fs/smb/client/cifsfs.h
62
struct dentry *direntry, umode_t mode, dev_t device_number);
fs/smb/client/cifsfs.h
63
struct dentry *cifs_mkdir(struct mnt_idmap *idmap, struct inode *inode,
fs/smb/client/cifsfs.h
64
struct dentry *direntry, umode_t mode);
fs/smb/client/cifsfs.h
65
int cifs_rmdir(struct inode *inode, struct dentry *direntry);
fs/smb/client/cifsfs.h
67
struct dentry *source_dentry, struct inode *target_dir,
fs/smb/client/cifsfs.h
68
struct dentry *target_dentry, unsigned int flags);
fs/smb/client/cifsfs.h
70
int cifs_revalidate_dentry_attr(struct dentry *dentry);
fs/smb/client/cifsfs.h
72
int cifs_revalidate_dentry(struct dentry *dentry);
fs/smb/client/cifsfs.h
77
int cifs_setattr(struct mnt_idmap *idmap, struct dentry *direntry,
fs/smb/client/cifsglob.h
1449
struct dentry *dentry;
fs/smb/client/cifsglob.h
1526
int cifs_file_set_size(const unsigned int xid, struct dentry *dentry,
fs/smb/client/cifsglob.h
1604
static inline void *dentry_to_fsinfo(struct dentry *dentry)
fs/smb/client/cifsglob.h
1606
return dentry->d_sb->s_fs_info;
fs/smb/client/cifsglob.h
1609
static inline void *const_dentry_to_fsinfo(const struct dentry *dentry)
fs/smb/client/cifsglob.h
1611
return dentry->d_sb->s_fs_info;
fs/smb/client/cifsglob.h
1618
const struct dentry * : const_dentry_to_fsinfo, \
fs/smb/client/cifsglob.h
1620
struct dentry * : dentry_to_fsinfo, \
fs/smb/client/cifsglob.h
423
struct dentry *);
fs/smb/client/cifsglob.h
453
struct cifs_sb_info *, struct dentry *);
fs/smb/client/cifsglob.h
455
int (*rename_pending_delete)(const char *, struct dentry *,
fs/smb/client/cifsglob.h
460
struct dentry *source_dentry,
fs/smb/client/cifsglob.h
466
struct dentry *source_dentry,
fs/smb/client/cifsglob.h
615
struct dentry *dentry,
fs/smb/client/cifsproto.h
199
int cifs_rename_pending_delete(const char *full_path, struct dentry *dentry,
fs/smb/client/cifsproto.h
214
struct posix_acl *cifs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/smb/client/cifsproto.h
216
int cifs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/smb/client/cifsproto.h
268
struct dentry *dentry);
fs/smb/client/cifsproto.h
398
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/cifsproto.h
402
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/cifsproto.h
62
const char *build_path_from_dentry(struct dentry *direntry, void *page);
fs/smb/client/cifsproto.h
63
char *__build_path_from_dentry_optional_prefix(struct dentry *direntry,
fs/smb/client/cifsproto.h
66
char *build_path_from_dentry_optional_prefix(struct dentry *direntry,
fs/smb/client/cifssmb.c
2463
struct dentry *source_dentry,
fs/smb/client/cifssmb.c
2787
struct dentry *source_dentry,
fs/smb/client/cifssmb.c
5478
bool set_allocation, struct dentry *dentry)
fs/smb/client/cifssmb.c
913
struct cifs_sb_info *cifs_sb, struct dentry *dentry)
fs/smb/client/dir.c
138
char *build_path_from_dentry_optional_prefix(struct dentry *direntry, void *page,
fs/smb/client/dir.c
154
check_name(struct dentry *direntry, struct cifs_tcon *tcon)
fs/smb/client/dir.c
178
static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
fs/smb/client/dir.c
28
renew_parental_timestamps(struct dentry *direntry)
fs/smb/client/dir.c
325
if (parent_cfid->dentry == direntry->d_parent) {
fs/smb/client/dir.c
461
cifs_atomic_open(struct inode *inode, struct dentry *direntry,
fs/smb/client/dir.c
573
struct dentry *direntry, umode_t mode, bool excl)
fs/smb/client/dir.c
623
struct dentry *direntry, umode_t mode, dev_t device_number)
fs/smb/client/dir.c
672
struct dentry *
fs/smb/client/dir.c
673
cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
fs/smb/client/dir.c
685
struct dentry *de;
fs/smb/client/dir.c
71
build_path_from_dentry(struct dentry *direntry, void *page)
fs/smb/client/dir.c
793
struct dentry *direntry, unsigned int flags)
fs/smb/client/dir.c
81
char *__build_path_from_dentry_optional_prefix(struct dentry *direntry, void *page,
fs/smb/client/dir.c
895
static int cifs_ci_hash(const struct dentry *dentry, struct qstr *q)
fs/smb/client/dir.c
897
struct nls_table *codepage = CIFS_SB(dentry->d_sb)->local_nls;
fs/smb/client/dir.c
902
hash = init_name_hash(dentry);
fs/smb/client/dir.c
915
static int cifs_ci_compare(const struct dentry *dentry,
fs/smb/client/dir.c
918
struct nls_table *codepage = CIFS_SB(dentry->d_sb)->local_nls;
fs/smb/client/export.c
36
static struct dentry *cifs_get_parent(struct dentry *dentry)
fs/smb/client/export.c
39
cifs_dbg(FYI, "get parent for %p\n", dentry);
fs/smb/client/file.c
1193
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
1247
inode = d_inode(cfile->dentry);
fs/smb/client/file.c
1259
full_path = build_path_from_dentry(cfile->dentry, page);
fs/smb/client/file.c
1409
spin_lock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock);
fs/smb/client/file.c
1412
spin_unlock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock);
fs/smb/client/file.c
1636
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
1662
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
1691
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
1708
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
1899
struct inode *inode = d_inode(cfile->dentry);
fs/smb/client/file.c
1990
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
2193
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
2302
struct inode *inode = d_inode(cfile->dentry);
fs/smb/client/file.c
2460
set_bit(CIFS_INO_CLOSE_ON_LOCK, &CIFS_I(d_inode(cfile->dentry))->flags);
fs/smb/client/file.c
2699
const char *full_path = build_path_from_dentry(cfile->dentry, page);
fs/smb/client/file.c
2708
cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
2731
const char *full_path = build_path_from_dentry(cfile->dentry, page);
fs/smb/client/file.c
2740
cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/file.c
3156
struct inode *inode = d_inode(cfile->dentry);
fs/smb/client/file.c
661
struct dentry *dentry = file_dentry(file);
fs/smb/client/file.c
662
struct inode *inode = d_inode(dentry);
fs/smb/client/file.c
695
cfile->dentry = dget(dentry);
fs/smb/client/file.c
758
struct inode *inode = d_inode(cifs_file->dentry);
fs/smb/client/file.c
777
dput(cifs_file->dentry);
fs/smb/client/file.c
855
struct inode *inode = d_inode(cifs_file->dentry);
fs/smb/client/file.c
892
d_inode(cifs_file->dentry));
fs/smb/client/file.c
970
static int cifs_do_truncate(const unsigned int xid, struct dentry *dentry)
fs/smb/client/file.c
972
struct cifsInodeInfo *cinode = CIFS_I(d_inode(dentry));
fs/smb/client/file.c
973
struct inode *inode = d_inode(dentry);
fs/smb/client/fs_context.c
1079
struct dentry *root = fc->root;
fs/smb/client/fs_context.c
914
struct dentry *root;
fs/smb/client/inode.c
1595
struct dentry *dentry;
fs/smb/client/inode.c
1598
hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) {
fs/smb/client/inode.c
1599
if (!d_unhashed(dentry) || IS_ROOT(dentry)) {
fs/smb/client/inode.c
1788
cifs_rename_pending_delete(const char *full_path, struct dentry *dentry,
fs/smb/client/inode.c
1795
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
1901
CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
fs/smb/client/inode.c
1932
static int __cifs_unlink(struct inode *dir, struct dentry *dentry, bool sillyrename)
fs/smb/client/inode.c
1938
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
1949
cifs_dbg(FYI, "cifs_unlink, dir=0x%p, dentry=0x%p\n", dir, dentry);
fs/smb/client/inode.c
1955
spin_lock(&dentry->d_lock);
fs/smb/client/inode.c
1956
if (!d_unhashed(dentry)) {
fs/smb/client/inode.c
1957
__d_drop(dentry);
fs/smb/client/inode.c
1960
spin_unlock(&dentry->d_lock);
fs/smb/client/inode.c
1978
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/inode.c
1985
cifs_close_deferred_file_under_dentry(tcon, dentry);
fs/smb/client/inode.c
2012
spin_lock(&dentry->d_lock);
fs/smb/client/inode.c
2013
if (d_count(dentry) > 1)
fs/smb/client/inode.c
2015
spin_unlock(&dentry->d_lock);
fs/smb/client/inode.c
2021
rc = server->ops->unlink(xid, tcon, full_path, cifs_sb, dentry);
fs/smb/client/inode.c
2030
if (simple_positive(dentry))
fs/smb/client/inode.c
2031
d_delete(dentry);
fs/smb/client/inode.c
2035
dentry, xid);
fs/smb/client/inode.c
2085
d_rehash(dentry);
fs/smb/client/inode.c
2089
int cifs_unlink(struct inode *dir, struct dentry *dentry)
fs/smb/client/inode.c
2091
return __cifs_unlink(dir, dentry, false);
fs/smb/client/inode.c
2095
cifs_mkdir_qinfo(struct inode *parent, struct dentry *dentry, umode_t mode,
fs/smb/client/inode.c
2126
d_drop(dentry);
fs/smb/client/inode.c
2184
d_instantiate(dentry, inode);
fs/smb/client/inode.c
2190
cifs_posix_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode,
fs/smb/client/inode.c
2214
d_drop(dentry);
fs/smb/client/inode.c
2232
d_instantiate(dentry, newinode);
fs/smb/client/inode.c
2236
dentry, dentry, newinode);
fs/smb/client/inode.c
2247
rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
fs/smb/client/inode.c
2253
struct dentry *cifs_mkdir(struct mnt_idmap *idmap, struct inode *inode,
fs/smb/client/inode.c
2254
struct dentry *direntry, umode_t mode)
fs/smb/client/inode.c
2332
int cifs_rmdir(struct inode *inode, struct dentry *direntry)
fs/smb/client/inode.c
2413
cifs_do_rename(const unsigned int xid, struct dentry *from_dentry,
fs/smb/client/inode.c
2414
const char *from_path, struct dentry *to_dentry,
fs/smb/client/inode.c
2495
struct dentry *source_dentry, struct inode *target_dir,
fs/smb/client/inode.c
2496
struct dentry *target_dentry, unsigned int flags)
fs/smb/client/inode.c
2685
cifs_dentry_needs_reval(struct dentry *dentry)
fs/smb/client/inode.c
2687
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
2704
if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
fs/smb/client/inode.c
2801
struct dentry *dentry = file_dentry(filp);
fs/smb/client/inode.c
2806
if (!cifs_dentry_needs_reval(dentry))
fs/smb/client/inode.c
2819
int cifs_revalidate_dentry_attr(struct dentry *dentry)
fs/smb/client/inode.c
2823
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
2824
struct super_block *sb = dentry->d_sb;
fs/smb/client/inode.c
2832
if (!cifs_dentry_needs_reval(dentry))
fs/smb/client/inode.c
2838
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/inode.c
2846
dentry, cifs_get_time(dentry), jiffies);
fs/smb/client/inode.c
2880
int cifs_revalidate_dentry(struct dentry *dentry)
fs/smb/client/inode.c
2883
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
2885
rc = cifs_revalidate_dentry_attr(dentry);
fs/smb/client/inode.c
2895
struct cifs_sb_info *cifs_sb = CIFS_SB(path->dentry);
fs/smb/client/inode.c
2897
struct dentry *dentry = path->dentry;
fs/smb/client/inode.c
2898
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
2929
rc = cifs_revalidate_dentry_attr(dentry);
fs/smb/client/inode.c
3023
int cifs_file_set_size(const unsigned int xid, struct dentry *dentry,
fs/smb/client/inode.c
3027
struct inode *inode = d_inode(dentry);
fs/smb/client/inode.c
3081
cifs_sb, false, dentry);
fs/smb/client/inode.c
3096
cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
fs/smb/client/inode.c
3266
cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
fs/smb/client/inode.c
3456
cifs_setattr(struct mnt_idmap *idmap, struct dentry *direntry,
fs/smb/client/inode.c
973
struct dentry *dentry = filp->f_path.dentry;
fs/smb/client/inode.c
992
path = build_path_from_dentry(dentry, page);
fs/smb/client/ioctl.c
31
struct dentry *dentry = filep->f_path.dentry;
fs/smb/client/ioctl.c
37
path = build_path_from_dentry(dentry, page);
fs/smb/client/link.c
441
cifs_hardlink(struct dentry *old_file, struct inode *inode,
fs/smb/client/link.c
442
struct dentry *direntry)
fs/smb/client/link.c
545
struct dentry *direntry, const char *symname)
fs/smb/client/misc.c
444
list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) {
fs/smb/client/misc.c
474
list_add_tail(&dclose->dlist, &CIFS_I(d_inode(cfile->dentry))->deferred_closes);
fs/smb/client/misc.c
540
spin_lock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock);
fs/smb/client/misc.c
542
spin_unlock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock);
fs/smb/client/misc.c
600
struct dentry *dentry)
fs/smb/client/misc.c
608
if ((cfile->dentry == dentry) &&
fs/smb/client/misc.c
611
spin_lock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock);
fs/smb/client/misc.c
613
spin_unlock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock);
fs/smb/client/misc.c
653
full_path = build_path_from_dentry(cfile->dentry, page);
fs/smb/client/namespace.c
120
static bool is_dfs_mount(struct dentry *dentry)
fs/smb/client/namespace.c
122
struct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb);
fs/smb/client/namespace.c
133
static char *automount_fullpath(struct dentry *dentry, void *page)
fs/smb/client/namespace.c
135
struct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb);
fs/smb/client/namespace.c
143
return build_path_from_dentry_optional_prefix(dentry,
fs/smb/client/namespace.c
152
s = dentry_path_raw(dentry, page, PATH_MAX);
fs/smb/client/namespace.c
195
struct dentry *mntpt = path->dentry;
fs/smb/client/namespace.c
281
cifs_dbg(FYI, "%s: %pd\n", __func__, path->dentry);
fs/smb/client/readdir.c
108
dentry = d_alloc_parallel(parent, name, &wq);
fs/smb/client/readdir.c
110
if (IS_ERR(dentry))
fs/smb/client/readdir.c
112
if (!d_in_lookup(dentry)) {
fs/smb/client/readdir.c
113
inode = d_inode(dentry);
fs/smb/client/readdir.c
115
if (d_mountpoint(dentry)) {
fs/smb/client/readdir.c
116
dput(dentry);
fs/smb/client/readdir.c
154
dput(dentry);
fs/smb/client/readdir.c
159
d_invalidate(dentry);
fs/smb/client/readdir.c
160
dput(dentry);
fs/smb/client/readdir.c
166
alias = d_splice_alias(inode, dentry);
fs/smb/client/readdir.c
167
d_lookup_done(dentry);
fs/smb/client/readdir.c
171
dput(dentry);
fs/smb/client/readdir.c
67
cifs_prime_dcache(struct dentry *parent, struct qstr *name,
fs/smb/client/readdir.c
70
struct dentry *dentry, *alias;
fs/smb/client/readdir.c
81
dentry = try_lookup_noperm(name, parent);
fs/smb/client/readdir.c
82
if (!dentry) {
fs/smb/client/reparse.c
18
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
23
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
236
d_instantiate(dentry, new);
fs/smb/client/reparse.c
28
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
38
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
386
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
408
d_instantiate(dentry, new);
fs/smb/client/reparse.c
43
return create_native_symlink(xid, inode, dentry, tcon, full_path, symname);
fs/smb/client/reparse.c
45
return mknod_nfs(xid, inode, dentry, tcon, full_path, S_IFLNK, 0, symname);
fs/smb/client/reparse.c
456
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
47
return mknod_wsl(xid, inode, dentry, tcon, full_path, S_IFLNK, 0, symname);
fs/smb/client/reparse.c
502
d_instantiate(dentry, new);
fs/smb/client/reparse.c
54
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
658
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
697
d_instantiate(dentry, new);
fs/smb/client/reparse.c
707
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.c
713
return create_native_socket(xid, inode, dentry, tcon, full_path);
fs/smb/client/reparse.c
717
return mknod_nfs(xid, inode, dentry, tcon, full_path, mode, dev, NULL);
fs/smb/client/reparse.c
719
return mknod_wsl(xid, inode, dentry, tcon, full_path, mode, dev, NULL);
fs/smb/client/reparse.h
134
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/reparse.h
136
int mknod_reparse(unsigned int xid, struct inode *inode, struct dentry *dentry,
fs/smb/client/smb1misc.c
154
pCifsInode = CIFS_I(d_inode(netfile->dentry));
fs/smb/client/smb1ops.c
1287
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/smb1ops.c
1324
d_instantiate(dentry, newinode);
fs/smb/client/smb1ops.c
1332
return cifs_sfu_make_node(xid, inode, dentry, tcon,
fs/smb/client/smb1ops.c
1341
return mknod_reparse(xid, inode, dentry, tcon,
fs/smb/client/smb1ops.c
902
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/smb1proto.h
102
struct dentry *source_dentry, const char *from_name,
fs/smb/client/smb1proto.h
183
struct dentry *dentry);
fs/smb/client/smb1proto.h
45
struct dentry *dentry);
fs/smb/client/smb1proto.h
90
struct dentry *source_dentry, const char *from_name,
fs/smb/client/smb2file.c
268
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/smb2file.c
409
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/smb2inode.c
1187
struct cifs_sb_info *cifs_sb, struct dentry *dentry)
fs/smb/client/smb2inode.c
1228
if (dentry) {
fs/smb/client/smb2inode.c
1229
inode = d_inode(dentry);
fs/smb/client/smb2inode.c
1275
if (rc == -EINVAL && dentry) {
fs/smb/client/smb2inode.c
1276
dentry = NULL;
fs/smb/client/smb2inode.c
1303
struct dentry *dentry)
fs/smb/client/smb2inode.c
1323
cfile, NULL, NULL, dentry);
fs/smb/client/smb2inode.c
1331
struct dentry *source_dentry,
fs/smb/client/smb2inode.c
1354
struct dentry *source_dentry,
fs/smb/client/smb2inode.c
1369
struct dentry *dentry)
fs/smb/client/smb2inode.c
1386
cfile, NULL, NULL, dentry);
fs/smb/client/smb2inode.c
1566
struct dentry *dentry,
fs/smb/client/smb2inode.c
1569
struct cifs_sb_info *cifs_sb = CIFS_SB(d_inode(dentry)->i_sb);
fs/smb/client/smb2inode.c
1570
struct cifsInodeInfo *cinode = CIFS_I(d_inode(dentry));
fs/smb/client/smb2inode.c
1572
__u32 co = file_create_options(dentry);
fs/smb/client/smb2inode.c
1599
ppath = build_path_from_dentry(dentry->d_parent, page);
fs/smb/client/smb2inode.c
1629
if (d_inode(dentry)->i_nlink <= 1)
fs/smb/client/smb2inode.c
1640
cmds, num_cmds, cfile, NULL, NULL, dentry);
fs/smb/client/smb2inode.c
179
struct kvec *out_iov, int *out_buftype, struct dentry *dentry)
fs/smb/client/smb2inode.c
249
if (dentry) {
fs/smb/client/smb2inode.c
250
inode = d_inode(dentry);
fs/smb/client/smb2inode.c
50
static inline __u32 file_create_options(struct dentry *dentry)
fs/smb/client/smb2inode.c
54
if (dentry) {
fs/smb/client/smb2inode.c
55
ci = CIFS_I(d_inode(dentry));
fs/smb/client/smb2misc.c
544
cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/smb2misc.c
720
cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/smb2ops.c
1470
struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));
fs/smb/client/smb2ops.c
1508
inode = d_inode(cfile->dentry);
fs/smb/client/smb2ops.c
2158
inode = d_inode(cfile->dentry);
fs/smb/client/smb2ops.c
2198
inode = d_inode(trgtfile->dentry);
fs/smb/client/smb2ops.c
2358
struct dentry *dentry = pfile->f_path.dentry;
fs/smb/client/smb2ops.c
2372
path = build_path_from_dentry(dentry, page);
fs/smb/client/smb2ops.c
3652
inode = d_inode(cfile->dentry);
fs/smb/client/smb2ops.c
3885
inode = d_inode(cfile->dentry);
fs/smb/client/smb2ops.c
3966
rc = fiemap_prep(d_inode(cfile->dentry), fei, start, &len, 0);
fs/smb/client/smb2ops.c
5181
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/smb2ops.c
5303
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/smb2ops.c
5309
rc = __cifs_sfu_make_node(xid, inode, dentry, tcon,
fs/smb/client/smb2ops.c
5325
d_instantiate(dentry, new);
fs/smb/client/smb2ops.c
5330
struct dentry *dentry, struct cifs_tcon *tcon,
fs/smb/client/smb2ops.c
5343
rc = cifs_sfu_make_node(xid, inode, dentry, tcon,
fs/smb/client/smb2ops.c
5346
rc = mknod_reparse(xid, inode, dentry, tcon,
fs/smb/client/smb2proto.h
267
int smb2_rename_pending_delete(const char *full_path, struct dentry *dentry,
fs/smb/client/smb2proto.h
66
struct dentry *dentry);
fs/smb/client/smb2proto.h
82
struct dentry *dentry);
fs/smb/client/smb2proto.h
84
struct dentry *source_dentry, const char *from_name,
fs/smb/client/smb2proto.h
87
struct dentry *source_dentry, const char *from_name,
fs/smb/client/xattr.c
101
struct super_block *sb = dentry->d_sb;
fs/smb/client/xattr.c
116
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/xattr.c
225
static int cifs_attrib_get(struct dentry *dentry,
fs/smb/client/xattr.c
232
rc = cifs_revalidate_dentry_attr(dentry);
fs/smb/client/xattr.c
249
static int cifs_creation_time_get(struct dentry *dentry, struct inode *inode,
fs/smb/client/xattr.c
255
rc = cifs_revalidate_dentry_attr(dentry);
fs/smb/client/xattr.c
272
struct dentry *dentry, struct inode *inode,
fs/smb/client/xattr.c
277
struct super_block *sb = dentry->d_sb;
fs/smb/client/xattr.c
292
full_path = build_path_from_dentry(dentry, page);
fs/smb/client/xattr.c
304
rc = cifs_attrib_get(dentry, inode, value, size);
fs/smb/client/xattr.c
308
rc = cifs_creation_time_get(dentry, inode, value, size);
fs/smb/client/xattr.c
388
ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size)
fs/smb/client/xattr.c
95
struct dentry *dentry, struct inode *inode,
fs/smb/server/oplock.c
1102
p_ci = ksmbd_inode_lookup_lock(fp->filp->f_path.dentry->d_parent);
fs/smb/server/oplock.c
1146
p_ci = ksmbd_inode_lookup_lock(fp->filp->f_path.dentry->d_parent);
fs/smb/server/smb2pdu.c
2422
path->dentry,
fs/smb/server/smb2pdu.c
2499
path->dentry,
fs/smb/server/smb2pdu.c
2523
xattr_list_len = ksmbd_vfs_listxattr(path->dentry, &xattr_list);
fs/smb/server/smb2pdu.c
2604
path->dentry, &da);
fs/smb/server/smb2pdu.c
3176
} else if (d_is_symlink(path.dentry)) {
fs/smb/server/smb2pdu.c
3197
if (file_present && S_ISDIR(d_inode(path.dentry)->i_mode) &&
fs/smb/server/smb2pdu.c
3215
S_ISDIR(d_inode(path.dentry)->i_mode) &&
fs/smb/server/smb2pdu.c
3226
!S_ISDIR(d_inode(path.dentry)->i_mode)) {
fs/smb/server/smb2pdu.c
3252
path.dentry,
fs/smb/server/smb2pdu.c
3263
file_present ? d_inode(path.dentry)->i_mode : 0);
fs/smb/server/smb2pdu.c
3311
d_inode(path.dentry),
fs/smb/server/smb2pdu.c
3319
d_inode(path.dentry->d_parent),
fs/smb/server/smb2pdu.c
3327
rc = ksmbd_query_inode_status(path.dentry->d_parent);
fs/smb/server/smb2pdu.c
3380
struct inode *inode = d_inode(path.dentry);
fs/smb/server/smb2pdu.c
3384
d_inode(path.dentry->d_parent));
fs/smb/server/smb2pdu.c
3686
path.dentry,
fs/smb/server/smb2pdu.c
4160
struct dentry *dent;
fs/smb/server/smb2pdu.c
4168
priv->dir_fp->filp->f_path.dentry);
fs/smb/server/smb2pdu.c
4734
rc = ksmbd_vfs_listxattr(path->dentry, &xattr_list);
fs/smb/server/smb2pdu.c
4784
value_len = ksmbd_vfs_getxattr(idmap, path->dentry,
fs/smb/server/smb2pdu.c
5030
struct dentry *dentry = fp->filp->f_path.dentry;
fs/smb/server/smb2pdu.c
5033
spin_lock(&dentry->d_lock);
fs/smb/server/smb2pdu.c
5036
dentry->d_name.name,
fs/smb/server/smb2pdu.c
5038
spin_unlock(&dentry->d_lock);
fs/smb/server/smb2pdu.c
5074
xattr_list_len = ksmbd_vfs_listxattr(path->dentry, &xattr_list);
fs/smb/server/smb2pdu.c
5783
fp->filp->f_path.dentry,
fs/smb/server/smb2pdu.c
6291
struct dentry *dentry = filp->f_path.dentry;
fs/smb/server/smb2pdu.c
6292
struct inode *inode = d_inode(dentry);
fs/smb/server/smb2pdu.c
6298
rc = notify_change(idmap, dentry, &attrs, NULL);
fs/smb/server/smb2pdu.c
8204
fp->filp->f_path.dentry, &da);
fs/smb/server/smb_common.c
468
struct dentry *dentry;
fs/smb/server/smb_common.c
474
dentry = dir->filp->f_path.dentry;
fs/smb/server/smb_common.c
478
dentry = dir->filp->f_path.dentry->d_parent;
fs/smb/server/smb_common.c
490
dentry,
fs/smb/server/smbacl.c
1074
struct dentry *parent = path->dentry->d_parent;
fs/smb/server/smbacl.c
1082
bool is_dir = S_ISDIR(d_inode(path->dentry)->i_mode);
fs/smb/server/smbacl.c
1311
path->dentry, &pntsd);
fs/smb/server/smbacl.c
1391
posix_acls = get_inode_acl(d_inode(path->dentry), ACL_TYPE_ACCESS);
fs/smb/server/smbacl.c
1461
struct inode *inode = d_inode(path->dentry);
fs/smb/server/smbacl.c
1488
rc = set_posix_acl(idmap, path->dentry,
fs/smb/server/smbacl.c
1495
rc = set_posix_acl(idmap, path->dentry,
fs/smb/server/smbacl.c
1505
rc = notify_change(idmap, path->dentry, &newattrs, NULL);
fs/smb/server/vfs.c
100
d = lookup_noperm_unlocked(&last, path->dentry);
fs/smb/server/vfs.c
1002
err = vfs_removexattr(idmap, path->dentry, attr_name);
fs/smb/server/vfs.c
1013
struct dentry *dir, *dentry = filp->f_path.dentry;
fs/smb/server/vfs.c
1020
dir = dget_parent(dentry);
fs/smb/server/vfs.c
1021
dentry = start_removing_dentry(dir, dentry);
fs/smb/server/vfs.c
1022
err = PTR_ERR(dentry);
fs/smb/server/vfs.c
1023
if (IS_ERR(dentry))
fs/smb/server/vfs.c
1026
if (S_ISDIR(d_inode(dentry)->i_mode))
fs/smb/server/vfs.c
1027
err = vfs_rmdir(idmap, d_inode(dir), dentry, NULL);
fs/smb/server/vfs.c
1029
err = vfs_unlink(idmap, d_inode(dir), dentry, NULL);
fs/smb/server/vfs.c
1031
end_removing(dentry);
fs/smb/server/vfs.c
109
dput(path->dentry);
fs/smb/server/vfs.c
110
path->dentry = d;
fs/smb/server/vfs.c
1161
while (d_can_lookup(parent_path.dentry)) {
fs/smb/server/vfs.c
1182
err = vfs_path_lookup(share_conf->vfs_path.dentry,
fs/smb/server/vfs.c
123
struct dentry *dentry, __le32 *daccess)
fs/smb/server/vfs.c
1244
end_removing(path->dentry);
fs/smb/server/vfs.c
1249
struct dentry *ksmbd_vfs_kern_path_create(struct ksmbd_work *work,
fs/smb/server/vfs.c
1255
struct dentry *dent;
fs/smb/server/vfs.c
127
if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_WRITE))
fs/smb/server/vfs.c
1273
xattr_list_len = ksmbd_vfs_listxattr(path->dentry, &xattr_list);
fs/smb/server/vfs.c
1293
err = vfs_remove_acl(idmap, path->dentry, name);
fs/smb/server/vfs.c
1312
xattr_list_len = ksmbd_vfs_listxattr(path->dentry, &xattr_list);
fs/smb/server/vfs.c
133
if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_READ))
fs/smb/server/vfs.c
136
if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_EXEC))
fs/smb/server/vfs.c
139
if (!inode_permission(idmap, d_inode(dentry->d_parent), MAY_EXEC | MAY_WRITE))
fs/smb/server/vfs.c
1410
struct dentry *dentry = path->dentry;
fs/smb/server/vfs.c
1411
struct inode *inode = d_inode(dentry);
fs/smb/server/vfs.c
1469
struct dentry *dentry,
fs/smb/server/vfs.c
1474
struct inode *inode = d_inode(dentry);
fs/smb/server/vfs.c
1480
rc = ksmbd_vfs_getxattr(idmap, dentry, XATTR_NAME_SD, &n.data);
fs/smb/server/vfs.c
154
struct dentry *dentry;
fs/smb/server/vfs.c
1560
struct dentry *dentry,
fs/smb/server/vfs.c
1566
err = ksmbd_vfs_getxattr(idmap, dentry, XATTR_NAME_DOS_ATTRIBUTE,
fs/smb/server/vfs.c
157
dentry = ksmbd_vfs_kern_path_create(work, name,
fs/smb/server/vfs.c
159
if (IS_ERR(dentry)) {
fs/smb/server/vfs.c
160
err = PTR_ERR(dentry);
fs/smb/server/vfs.c
1616
struct dentry *dentry,
fs/smb/server/vfs.c
1624
.dentry = dentry,
fs/smb/server/vfs.c
1649
rc = ksmbd_vfs_get_dos_attrib_xattr(idmap, dentry, &da);
fs/smb/server/vfs.c
1662
struct dentry *dentry, char *attr_name,
fs/smb/server/vfs.c
1668
xattr_list_len = ksmbd_vfs_listxattr(dentry, &xattr_list);
fs/smb/server/vfs.c
1678
value_len = ksmbd_vfs_xattr_len(idmap, dentry, name);
fs/smb/server/vfs.c
168
err = vfs_create(mnt_idmap(path.mnt), dentry, mode, NULL);
fs/smb/server/vfs.c
170
ksmbd_vfs_inherit_owner(work, d_inode(path.dentry),
fs/smb/server/vfs.c
171
d_inode(dentry));
fs/smb/server/vfs.c
176
end_creating_path(&path, dentry);
fs/smb/server/vfs.c
1806
struct dentry *dentry = path->dentry;
fs/smb/server/vfs.c
1807
struct inode *inode = d_inode(dentry);
fs/smb/server/vfs.c
1837
rc = set_posix_acl(idmap, dentry, ACL_TYPE_ACCESS, acls);
fs/smb/server/vfs.c
1843
rc = set_posix_acl(idmap, dentry, ACL_TYPE_DEFAULT, acls);
fs/smb/server/vfs.c
1859
struct dentry *dentry = path->dentry;
fs/smb/server/vfs.c
1860
struct inode *inode = d_inode(dentry);
fs/smb/server/vfs.c
1878
rc = set_posix_acl(idmap, dentry, ACL_TYPE_ACCESS, acls);
fs/smb/server/vfs.c
1883
rc = set_posix_acl(idmap, dentry, ACL_TYPE_DEFAULT,
fs/smb/server/vfs.c
192
struct dentry *dentry, *d;
fs/smb/server/vfs.c
195
dentry = ksmbd_vfs_kern_path_create(work, name,
fs/smb/server/vfs.c
198
if (IS_ERR(dentry)) {
fs/smb/server/vfs.c
199
err = PTR_ERR(dentry);
fs/smb/server/vfs.c
208
d = dentry;
fs/smb/server/vfs.c
209
dentry = vfs_mkdir(idmap, d_inode(path.dentry), dentry, mode, NULL);
fs/smb/server/vfs.c
210
if (IS_ERR(dentry))
fs/smb/server/vfs.c
211
err = PTR_ERR(dentry);
fs/smb/server/vfs.c
212
else if (d_is_negative(dentry))
fs/smb/server/vfs.c
214
if (!err && dentry != d)
fs/smb/server/vfs.c
215
ksmbd_vfs_inherit_owner(work, d_inode(path.dentry), d_inode(dentry));
fs/smb/server/vfs.c
217
end_creating_path(&path, dentry);
fs/smb/server/vfs.c
224
struct dentry *dentry, char *attr_name,
fs/smb/server/vfs.c
230
xattr_list_len = ksmbd_vfs_listxattr(dentry, &xattr_list);
fs/smb/server/vfs.c
241
dentry,
fs/smb/server/vfs.c
264
fp->filp->f_path.dentry,
fs/smb/server/vfs.c
412
fp->filp->f_path.dentry,
fs/smb/server/vfs.c
580
struct dentry *parent = path->dentry->d_parent;
fs/smb/server/vfs.c
586
if (!d_inode(path->dentry)->i_nlink) {
fs/smb/server/vfs.c
592
if (S_ISDIR(d_inode(path->dentry)->i_mode)) {
fs/smb/server/vfs.c
593
err = vfs_rmdir(idmap, d_inode(parent), path->dentry, NULL);
fs/smb/server/vfs.c
597
err = vfs_unlink(idmap, d_inode(parent), path->dentry, NULL);
fs/smb/server/vfs.c
60
struct dentry *d;
fs/smb/server/vfs.c
619
struct dentry *dentry;
fs/smb/server/vfs.c
632
dentry = ksmbd_vfs_kern_path_create(work, newname,
fs/smb/server/vfs.c
635
if (IS_ERR(dentry)) {
fs/smb/server/vfs.c
636
err = PTR_ERR(dentry);
fs/smb/server/vfs.c
647
err = vfs_link(oldpath.dentry, mnt_idmap(newpath.mnt),
fs/smb/server/vfs.c
648
d_inode(newpath.dentry),
fs/smb/server/vfs.c
649
dentry, NULL);
fs/smb/server/vfs.c
654
end_creating_path(&newpath, dentry);
fs/smb/server/vfs.c
665
struct dentry *old_child = old_path->dentry;
fs/smb/server/vfs.c
697
rd.new_parent = new_path.dentry;
fs/smb/server/vfs.c
789
ssize_t ksmbd_vfs_listxattr(struct dentry *dentry, char **list)
fs/smb/server/vfs.c
794
size = vfs_listxattr(dentry, NULL, 0);
fs/smb/server/vfs.c
803
size = vfs_listxattr(dentry, vlist, size);
fs/smb/server/vfs.c
814
struct dentry *dentry, char *xattr_name)
fs/smb/server/vfs.c
816
return vfs_getxattr(idmap, dentry, xattr_name, NULL, 0);
fs/smb/server/vfs.c
829
struct dentry *dentry,
fs/smb/server/vfs.c
836
xattr_len = ksmbd_vfs_xattr_len(idmap, dentry, xattr_name);
fs/smb/server/vfs.c
844
xattr_len = vfs_getxattr(idmap, dentry, xattr_name,
fs/smb/server/vfs.c
879
path->dentry,
fs/smb/server/vfs.c
88
d = start_removing_noperm(path->dentry, &last);
fs/smb/server/vfs.c
91
dput(path->dentry);
fs/smb/server/vfs.c
92
path->dentry = d;
fs/smb/server/vfs.h
103
ssize_t ksmbd_vfs_listxattr(struct dentry *dentry, char **list);
fs/smb/server/vfs.h
105
struct dentry *dentry,
fs/smb/server/vfs.h
109
struct dentry *dentry, char *attr_name,
fs/smb/server/vfs.h
127
struct dentry *ksmbd_vfs_kern_path_create(struct ksmbd_work *work,
fs/smb/server/vfs.h
143
struct dentry *dentry,
fs/smb/server/vfs.h
157
struct dentry *dentry,
fs/smb/server/vfs.h
164
struct dentry *dentry,
fs/smb/server/vfs.h
75
int ksmbd_vfs_lock_parent(struct dentry *parent, struct dentry *child);
fs/smb/server/vfs.h
77
struct dentry *dentry, __le32 *daccess);
fs/smb/server/vfs_cache.c
115
fp->filp->f_path.dentry->d_name.name);
fs/smb/server/vfs_cache.c
169
static struct ksmbd_inode *__ksmbd_inode_lookup(struct dentry *de)
fs/smb/server/vfs_cache.c
187
return __ksmbd_inode_lookup(fp->filp->f_path.dentry);
fs/smb/server/vfs_cache.c
190
struct ksmbd_inode *ksmbd_inode_lookup_lock(struct dentry *d)
fs/smb/server/vfs_cache.c
201
int ksmbd_query_inode_status(struct dentry *dentry)
fs/smb/server/vfs_cache.c
207
ci = __ksmbd_inode_lookup(dentry);
fs/smb/server/vfs_cache.c
291
ci->m_de = fp->filp->f_path.dentry;
fs/smb/server/vfs_cache.c
661
struct ksmbd_file *ksmbd_lookup_fd_inode(struct dentry *dentry)
fs/smb/server/vfs_cache.c
665
struct inode *inode = d_inode(dentry);
fs/smb/server/vfs_cache.c
668
ci = __ksmbd_inode_lookup(dentry);
fs/smb/server/vfs_cache.h
150
struct ksmbd_inode *ksmbd_inode_lookup_lock(struct dentry *d);
fs/smb/server/vfs_cache.h
156
struct ksmbd_file *ksmbd_lookup_fd_inode(struct dentry *dentry);
fs/smb/server/vfs_cache.h
182
int ksmbd_query_inode_status(struct dentry *dentry);
fs/smb/server/vfs_cache.h
56
struct dentry *m_de;
fs/squashfs/export.c
103
static struct dentry *squashfs_get_parent(struct dentry *child)
fs/squashfs/export.c
66
static struct dentry *squashfs_export_iget(struct super_block *sb,
fs/squashfs/export.c
70
struct dentry *dentry = ERR_PTR(-ENOENT);
fs/squashfs/export.c
76
dentry = d_obtain_alias(squashfs_iget(sb, ino, ino_num));
fs/squashfs/export.c
78
return dentry;
fs/squashfs/export.c
82
static struct dentry *squashfs_fh_to_dentry(struct super_block *sb,
fs/squashfs/export.c
93
static struct dentry *squashfs_fh_to_parent(struct super_block *sb,
fs/squashfs/namei.c
120
static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,
fs/squashfs/namei.c
123
const unsigned char *name = dentry->d_name.name;
fs/squashfs/namei.c
124
int len = dentry->d_name.len;
fs/squashfs/namei.c
214
return d_splice_alias(inode, dentry);
fs/squashfs/squashfs.h
93
extern ssize_t squashfs_listxattr(struct dentry *, char *, size_t);
fs/squashfs/super.c
522
static int squashfs_show_options(struct seq_file *s, struct dentry *root)
fs/squashfs/super.c
571
static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/squashfs/super.c
573
struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
fs/squashfs/super.c
574
u64 id = huge_encode_dev(dentry->d_sb->s_bdev->bd_dev);
fs/squashfs/xattr.c
204
struct dentry *unused,
fs/squashfs/xattr.c
225
static bool squashfs_trusted_xattr_handler_list(struct dentry *d)
fs/squashfs/xattr.c
26
ssize_t squashfs_listxattr(struct dentry *d, char *buffer,
fs/stat.c
185
struct inode *inode = d_backing_inode(path->dentry);
fs/stat.c
578
if (d_is_symlink(path.dentry) ||
fs/stat.c
579
d_backing_inode(path.dentry)->i_op->readlink) {
fs/stat.c
580
error = security_inode_readlink(path.dentry);
fs/stat.c
583
error = vfs_readlink(path.dentry, buf, bufsiz);
fs/statfs.c
55
static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf)
fs/statfs.c
59
if (!dentry->d_sb->s_op->statfs)
fs/statfs.c
63
retval = security_sb_statfs(dentry);
fs/statfs.c
66
retval = dentry->d_sb->s_op->statfs(dentry, buf);
fs/statfs.c
72
int vfs_get_fsid(struct dentry *dentry, __kernel_fsid_t *fsid)
fs/statfs.c
77
error = statfs_by_dentry(dentry, &st);
fs/statfs.c
90
error = statfs_by_dentry(path->dentry, buf);
fs/sync.c
156
sb = fd_file(f)->f_path.dentry->d_sb;
fs/tracefs/event_inode.c
151
static struct dentry *eventfs_root_lookup(struct inode *dir,
fs/tracefs/event_inode.c
152
struct dentry *dentry,
fs/tracefs/event_inode.c
175
static int eventfs_set_attr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/tracefs/event_inode.c
184
ei = dentry->d_fsdata;
fs/tracefs/event_inode.c
192
if (!(dentry->d_inode->i_mode & S_IFDIR)) {
fs/tracefs/event_inode.c
203
ret = simple_setattr(idmap, dentry, iattr);
fs/tracefs/event_inode.c
212
if (dentry->d_inode->i_mode & S_IFDIR) {
fs/tracefs/event_inode.c
218
name = dentry->d_name.name;
fs/tracefs/event_inode.c
323
static struct inode *eventfs_get_inode(struct dentry *dentry, struct eventfs_attr *attr,
fs/tracefs/event_inode.c
331
inode = tracefs_get_inode(dentry->d_sb);
fs/tracefs/event_inode.c
341
dentry = dentry->d_parent;
fs/tracefs/event_inode.c
343
pei = dentry->d_fsdata;
fs/tracefs/event_inode.c
366
static struct dentry *lookup_file(struct eventfs_inode *parent_ei,
fs/tracefs/event_inode.c
367
struct dentry *dentry,
fs/tracefs/event_inode.c
382
inode = eventfs_get_inode(dentry, attr, mode, NULL);
fs/tracefs/event_inode.c
394
dentry->d_fsdata = get_ei(parent_ei);
fs/tracefs/event_inode.c
396
d_add(dentry, inode);
fs/tracefs/event_inode.c
40
struct dentry *events_dir;
fs/tracefs/event_inode.c
409
static struct dentry *lookup_dir_entry(struct dentry *dentry,
fs/tracefs/event_inode.c
415
inode = eventfs_get_inode(dentry, &ei->attr, mode, ei);
fs/tracefs/event_inode.c
425
dentry->d_fsdata = get_ei(ei);
fs/tracefs/event_inode.c
427
d_add(dentry, inode);
fs/tracefs/event_inode.c
477
void eventfs_d_release(struct dentry *dentry)
fs/tracefs/event_inode.c
479
put_ei(dentry->d_fsdata);
fs/tracefs/event_inode.c
499
static struct dentry *
fs/tracefs/event_inode.c
500
lookup_file_dentry(struct dentry *dentry,
fs/tracefs/event_inode.c
510
return lookup_file(ei, dentry, mode, attr, data, fops);
fs/tracefs/event_inode.c
523
static struct dentry *eventfs_root_lookup(struct inode *dir,
fs/tracefs/event_inode.c
524
struct dentry *dentry,
fs/tracefs/event_inode.c
530
const char *name = dentry->d_name.name;
fs/tracefs/event_inode.c
531
struct dentry *result = NULL;
fs/tracefs/event_inode.c
549
result = lookup_dir_entry(dentry, ei, ei_child);
fs/tracefs/event_inode.c
566
result = lookup_file_dentry(dentry, ei, i, mode, data, fops);
fs/tracefs/event_inode.c
756
struct eventfs_inode *eventfs_create_events_dir(const char *name, struct dentry *parent,
fs/tracefs/event_inode.c
760
struct dentry *dentry;
fs/tracefs/event_inode.c
771
dentry = tracefs_start_creating(name, parent);
fs/tracefs/event_inode.c
772
if (IS_ERR(dentry))
fs/tracefs/event_inode.c
773
return ERR_CAST(dentry);
fs/tracefs/event_inode.c
779
inode = tracefs_get_inode(dentry->d_sb);
fs/tracefs/event_inode.c
785
rei->events_dir = dentry;
fs/tracefs/event_inode.c
792
uid = d_inode(dentry->d_parent)->i_uid;
fs/tracefs/event_inode.c
793
gid = d_inode(dentry->d_parent)->i_gid;
fs/tracefs/event_inode.c
815
dentry->d_fsdata = get_ei(ei);
fs/tracefs/event_inode.c
826
d_make_persistent(dentry, inode);
fs/tracefs/event_inode.c
828
inc_nlink(dentry->d_parent->d_inode);
fs/tracefs/event_inode.c
829
fsnotify_mkdir(dentry->d_parent->d_inode, dentry);
fs/tracefs/event_inode.c
830
tracefs_end_creating(dentry);
fs/tracefs/event_inode.c
836
tracefs_failed_creating(dentry);
fs/tracefs/event_inode.c
895
struct dentry *dentry;
fs/tracefs/event_inode.c
898
dentry = rei->events_dir;
fs/tracefs/event_inode.c
899
if (!dentry)
fs/tracefs/event_inode.c
912
d_invalidate(dentry);
fs/tracefs/event_inode.c
913
d_make_discardable(dentry);
fs/tracefs/inode.c
101
int len = dentry->d_name.len;
fs/tracefs/inode.c
103
dname = dentry->d_name.name;
fs/tracefs/inode.c
112
static struct dentry *tracefs_syscall_mkdir(struct mnt_idmap *idmap,
fs/tracefs/inode.c
113
struct inode *inode, struct dentry *dentry,
fs/tracefs/inode.c
120
name = get_dname(dentry);
fs/tracefs/inode.c
147
static int tracefs_syscall_rmdir(struct inode *inode, struct dentry *dentry)
fs/tracefs/inode.c
152
name = get_dname(dentry);
fs/tracefs/inode.c
164
inode_unlock(d_inode(dentry));
fs/tracefs/inode.c
169
inode_lock(d_inode(dentry));
fs/tracefs/inode.c
226
struct inode *inode = d_backing_inode(path->dentry);
fs/tracefs/inode.c
233
static int tracefs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/tracefs/inode.c
237
struct inode *inode = d_inode(dentry);
fs/tracefs/inode.c
246
return simple_setattr(idmap, dentry, attr);
fs/tracefs/inode.c
405
static int tracefs_show_options(struct seq_file *m, struct dentry *root)
fs/tracefs/inode.c
454
static void tracefs_d_release(struct dentry *dentry)
fs/tracefs/inode.c
456
if (dentry->d_fsdata)
fs/tracefs/inode.c
457
eventfs_d_release(dentry);
fs/tracefs/inode.c
461
struct dentry *dentry, unsigned int flags)
fs/tracefs/inode.c
463
struct eventfs_inode *ei = dentry->d_fsdata;
fs/tracefs/inode.c
468
static int tracefs_d_delete(const struct dentry *dentry)
fs/tracefs/inode.c
475
return dentry->d_fsdata == NULL;
fs/tracefs/inode.c
545
struct dentry *tracefs_start_creating(const char *name, struct dentry *parent)
fs/tracefs/inode.c
547
struct dentry *dentry;
fs/tracefs/inode.c
565
dentry = simple_start_creating(parent, name);
fs/tracefs/inode.c
566
if (IS_ERR(dentry))
fs/tracefs/inode.c
569
return dentry;
fs/tracefs/inode.c
572
struct dentry *tracefs_failed_creating(struct dentry *dentry)
fs/tracefs/inode.c
574
simple_done_creating(dentry);
fs/tracefs/inode.c
579
struct dentry *tracefs_end_creating(struct dentry *dentry)
fs/tracefs/inode.c
581
simple_done_creating(dentry);
fs/tracefs/inode.c
582
return dentry; // borrowed
fs/tracefs/inode.c
586
static struct inode *instance_inode(struct dentry *parent, struct inode *inode)
fs/tracefs/inode.c
631
struct dentry *tracefs_create_file(const char *name, umode_t mode,
fs/tracefs/inode.c
632
struct dentry *parent, void *data,
fs/tracefs/inode.c
636
struct dentry *dentry;
fs/tracefs/inode.c
645
dentry = tracefs_start_creating(name, parent);
fs/tracefs/inode.c
647
if (IS_ERR(dentry))
fs/tracefs/inode.c
650
inode = tracefs_get_inode(dentry->d_sb);
fs/tracefs/inode.c
652
return tracefs_failed_creating(dentry);
fs/tracefs/inode.c
661
inode->i_uid = d_inode(dentry->d_parent)->i_uid;
fs/tracefs/inode.c
662
inode->i_gid = d_inode(dentry->d_parent)->i_gid;
fs/tracefs/inode.c
663
d_make_persistent(dentry, inode);
fs/tracefs/inode.c
664
fsnotify_create(d_inode(dentry->d_parent), dentry);
fs/tracefs/inode.c
665
return tracefs_end_creating(dentry);
fs/tracefs/inode.c
668
static struct dentry *__create_dir(const char *name, struct dentry *parent,
fs/tracefs/inode.c
672
struct dentry *dentry = tracefs_start_creating(name, parent);
fs/tracefs/inode.c
675
if (IS_ERR(dentry))
fs/tracefs/inode.c
678
inode = tracefs_get_inode(dentry->d_sb);
fs/tracefs/inode.c
680
return tracefs_failed_creating(dentry);
fs/tracefs/inode.c
686
inode->i_uid = d_inode(dentry->d_parent)->i_uid;
fs/tracefs/inode.c
687
inode->i_gid = d_inode(dentry->d_parent)->i_gid;
fs/tracefs/inode.c
694
d_make_persistent(dentry, inode);
fs/tracefs/inode.c
695
inc_nlink(d_inode(dentry->d_parent));
fs/tracefs/inode.c
696
fsnotify_mkdir(d_inode(dentry->d_parent), dentry);
fs/tracefs/inode.c
697
return tracefs_end_creating(dentry);
fs/tracefs/inode.c
717
struct dentry *tracefs_create_dir(const char *name, struct dentry *parent)
fs/tracefs/inode.c
742
__init struct dentry *tracefs_create_instance_dir(const char *name,
fs/tracefs/inode.c
743
struct dentry *parent,
fs/tracefs/inode.c
747
struct dentry *dentry;
fs/tracefs/inode.c
753
dentry = __create_dir(name, parent, &tracefs_instance_dir_inode_operations);
fs/tracefs/inode.c
754
if (!dentry)
fs/tracefs/inode.c
760
return dentry;
fs/tracefs/inode.c
763
static void remove_one(struct dentry *victim)
fs/tracefs/inode.c
776
void tracefs_remove(struct dentry *dentry)
fs/tracefs/inode.c
778
if (IS_ERR_OR_NULL(dentry))
fs/tracefs/inode.c
782
simple_recursive_removal(dentry, remove_one);
fs/tracefs/inode.c
97
static char *get_dname(struct dentry *dentry)
fs/tracefs/internal.h
71
struct dentry *tracefs_start_creating(const char *name, struct dentry *parent);
fs/tracefs/internal.h
72
struct dentry *tracefs_end_creating(struct dentry *dentry);
fs/tracefs/internal.h
73
struct dentry *tracefs_failed_creating(struct dentry *dentry);
fs/tracefs/internal.h
77
void eventfs_d_release(struct dentry *dentry);
fs/ubifs/debug.c
2672
static struct dentry *dfs_rootdir;
fs/ubifs/debug.c
2710
struct dentry *dent = file->f_path.dentry;
fs/ubifs/debug.c
2766
struct dentry *dent = file->f_path.dentry;
fs/ubifs/debug.c
2769
if (file->f_path.dentry == d->dfs_dump_lprops) {
fs/ubifs/debug.c
2773
if (file->f_path.dentry == d->dfs_dump_budg) {
fs/ubifs/debug.c
2777
if (file->f_path.dentry == d->dfs_dump_tnc) {
fs/ubifs/debug.c
2894
static struct dentry *dfs_chk_gen;
fs/ubifs/debug.c
2895
static struct dentry *dfs_chk_index;
fs/ubifs/debug.c
2896
static struct dentry *dfs_chk_orph;
fs/ubifs/debug.c
2897
static struct dentry *dfs_chk_lprops;
fs/ubifs/debug.c
2898
static struct dentry *dfs_chk_fs;
fs/ubifs/debug.c
2899
static struct dentry *dfs_tst_rcvry;
fs/ubifs/debug.c
2904
struct dentry *dent = file->f_path.dentry;
fs/ubifs/debug.c
2928
struct dentry *dent = file->f_path.dentry;
fs/ubifs/debug.h
108
struct dentry *dfs_dir;
fs/ubifs/debug.h
109
struct dentry *dfs_dump_lprops;
fs/ubifs/debug.h
110
struct dentry *dfs_dump_budg;
fs/ubifs/debug.h
111
struct dentry *dfs_dump_tnc;
fs/ubifs/debug.h
112
struct dentry *dfs_chk_gen;
fs/ubifs/debug.h
113
struct dentry *dfs_chk_index;
fs/ubifs/debug.h
114
struct dentry *dfs_chk_orph;
fs/ubifs/debug.h
115
struct dentry *dfs_chk_lprops;
fs/ubifs/debug.h
116
struct dentry *dfs_chk_fs;
fs/ubifs/debug.h
117
struct dentry *dfs_tst_rcvry;
fs/ubifs/debug.h
118
struct dentry *dfs_ro_error;
fs/ubifs/dir.c
1005
static struct dentry *ubifs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/ubifs/dir.c
1006
struct dentry *dentry, umode_t mode)
fs/ubifs/dir.c
1022
dentry, mode, dir->i_ino);
fs/ubifs/dir.c
1028
err = ubifs_prepare_create(dir, dentry, &nm);
fs/ubifs/dir.c
1040
err = ubifs_init_security(dir, inode, &dentry->d_name);
fs/ubifs/dir.c
1061
d_instantiate(dentry, inode);
fs/ubifs/dir.c
1081
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/ubifs/dir.c
1099
dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino);
fs/ubifs/dir.c
1115
err = ubifs_prepare_create(dir, dentry, &nm);
fs/ubifs/dir.c
1130
err = ubifs_init_security(dir, inode, &dentry->d_name);
fs/ubifs/dir.c
1155
d_instantiate(dentry, inode);
fs/ubifs/dir.c
1174
struct dentry *dentry, const char *symname)
fs/ubifs/dir.c
1186
dbg_gen("dent '%pd', target '%s' in dir ino %lu", dentry,
fs/ubifs/dir.c
1203
err = ubifs_prepare_create(dir, dentry, &nm);
fs/ubifs/dir.c
1215
err = ubifs_init_security(dir, inode, &dentry->d_name);
fs/ubifs/dir.c
1256
d_instantiate(dentry, inode);
fs/ubifs/dir.c
1321
static int do_rename(struct inode *old_dir, struct dentry *old_dentry,
fs/ubifs/dir.c
1322
struct inode *new_dir, struct dentry *new_dentry,
fs/ubifs/dir.c
1581
static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry,
fs/ubifs/dir.c
1582
struct inode *new_dir, struct dentry *new_dentry)
fs/ubifs/dir.c
1646
struct inode *old_dir, struct dentry *old_dentry,
fs/ubifs/dir.c
1647
struct inode *new_dir, struct dentry *new_dentry,
fs/ubifs/dir.c
1674
struct inode *inode = d_inode(path->dentry);
fs/ubifs/dir.c
216
static struct dentry *ubifs_lookup(struct inode *dir, struct dentry *dentry,
fs/ubifs/dir.c
226
dbg_gen("'%pd' in dir ino %lu", dentry, dir->i_ino);
fs/ubifs/dir.c
228
err = fscrypt_prepare_lookup(dir, dentry, &nm);
fs/ubifs/dir.c
230
return d_splice_alias(NULL, dentry);
fs/ubifs/dir.c
276
dentry, err);
fs/ubifs/dir.c
293
return d_splice_alias(inode, dentry);
fs/ubifs/dir.c
296
static int ubifs_prepare_create(struct inode *dir, struct dentry *dentry,
fs/ubifs/dir.c
299
if (fscrypt_is_nokey_name(dentry))
fs/ubifs/dir.c
302
return fscrypt_setup_filename(dir, &dentry->d_name, 0, nm);
fs/ubifs/dir.c
306
struct dentry *dentry, umode_t mode, bool excl)
fs/ubifs/dir.c
322
dentry, mode, dir->i_ino);
fs/ubifs/dir.c
328
err = ubifs_prepare_create(dir, dentry, &nm);
fs/ubifs/dir.c
340
err = ubifs_init_security(dir, inode, &dentry->d_name);
fs/ubifs/dir.c
358
d_instantiate(dentry, inode);
fs/ubifs/dir.c
376
static struct inode *create_whiteout(struct inode *dir, struct dentry *dentry)
fs/ubifs/dir.c
390
dentry, mode, dir->i_ino);
fs/ubifs/dir.c
401
err = ubifs_init_security(dir, inode, &dentry->d_name);
fs/ubifs/dir.c
446
struct dentry *dentry = file->f_path.dentry;
fs/ubifs/dir.c
464
dentry, mode, dir->i_ino);
fs/ubifs/dir.c
466
err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm);
fs/ubifs/dir.c
490
err = ubifs_init_security(dir, inode, &dentry->d_name);
fs/ubifs/dir.c
750
static int ubifs_link(struct dentry *old_dentry, struct inode *dir,
fs/ubifs/dir.c
751
struct dentry *dentry)
fs/ubifs/dir.c
768
dentry, inode->i_ino,
fs/ubifs/dir.c
773
err = fscrypt_prepare_link(old_dentry, dir, dentry);
fs/ubifs/dir.c
777
err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm);
fs/ubifs/dir.c
806
d_instantiate(dentry, inode);
fs/ubifs/dir.c
822
static int ubifs_unlink(struct inode *dir, struct dentry *dentry)
fs/ubifs/dir.c
825
struct inode *inode = d_inode(dentry);
fs/ubifs/dir.c
840
dentry, inode->i_ino,
fs/ubifs/dir.c
843
err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm);
fs/ubifs/dir.c
929
static int ubifs_rmdir(struct inode *dir, struct dentry *dentry)
fs/ubifs/dir.c
932
struct inode *inode = d_inode(dentry);
fs/ubifs/dir.c
944
dbg_gen("directory '%pd', ino %lu in dir ino %lu", dentry,
fs/ubifs/dir.c
948
err = ubifs_check_dir_empty(d_inode(dentry));
fs/ubifs/dir.c
952
err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm);
fs/ubifs/file.c
1254
int ubifs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ubifs/file.c
1258
struct inode *inode = d_inode(dentry);
fs/ubifs/file.c
1263
err = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/ubifs/file.c
1271
err = fscrypt_prepare_setattr(dentry, attr);
fs/ubifs/file.c
1599
static const char *ubifs_get_link(struct dentry *dentry,
fs/ubifs/file.c
1608
if (!dentry)
fs/ubifs/file.c
1620
if (IS_ENCRYPTED(d_inode(path->dentry)))
fs/ubifs/ioctl.c
133
int ubifs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
fs/ubifs/ioctl.c
135
struct inode *inode = d_inode(dentry);
fs/ubifs/ioctl.c
138
if (d_is_special(dentry))
fs/ubifs/ioctl.c
148
struct dentry *dentry, struct file_kattr *fa)
fs/ubifs/ioctl.c
150
struct inode *inode = d_inode(dentry);
fs/ubifs/ioctl.c
153
if (d_is_special(dentry))
fs/ubifs/super.c
406
static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ubifs/super.c
408
struct ubifs_info *c = dentry->d_sb->s_fs_info;
fs/ubifs/super.c
433
static int ubifs_show_options(struct seq_file *s, struct dentry *root)
fs/ubifs/ubifs.h
2019
int ubifs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ubifs/ubifs.h
2039
ssize_t ubifs_listxattr(struct dentry *dentry, char *buffer, size_t size);
fs/ubifs/ubifs.h
2051
extern int ubifs_init_security(struct inode *dentry, struct inode *inode,
fs/ubifs/ubifs.h
2054
static inline int ubifs_init_security(struct inode *dentry,
fs/ubifs/ubifs.h
2081
int ubifs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
fs/ubifs/ubifs.h
2083
struct dentry *dentry, struct file_kattr *fa);
fs/ubifs/xattr.c
383
ssize_t ubifs_listxattr(struct dentry *dentry, char *buffer, size_t size)
fs/ubifs/xattr.c
386
struct inode *host = d_inode(dentry);
fs/ubifs/xattr.c
394
dentry, size);
fs/ubifs/xattr.c
635
int ubifs_init_security(struct inode *dentry, struct inode *inode,
fs/ubifs/xattr.c
640
err = security_inode_init_security(inode, dentry, qstr,
fs/ubifs/xattr.c
643
struct ubifs_info *c = dentry->i_sb->s_fs_info;
fs/ubifs/xattr.c
652
struct dentry *dentry, struct inode *inode,
fs/ubifs/xattr.c
656
inode->i_ino, dentry, size);
fs/ubifs/xattr.c
664
struct dentry *dentry, struct inode *inode,
fs/ubifs/xattr.c
669
name, inode->i_ino, dentry, size);
fs/udf/file.c
215
static int udf_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/udf/file.c
218
struct inode *inode = d_inode(dentry);
fs/udf/file.c
222
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/udf/namei.c
107
static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry,
fs/udf/namei.c
114
if (dentry->d_name.len > UDF_NAME_LEN)
fs/udf/namei.c
117
err = udf_fiiter_find_entry(dir, &dentry->d_name, &iter);
fs/udf/namei.c
130
return d_splice_alias(inode, dentry);
fs/udf/namei.c
220
static int udf_fiiter_add_entry(struct inode *dir, struct dentry *dentry,
fs/udf/namei.c
230
if (dentry) {
fs/udf/namei.c
231
namelen = udf_put_filename(dir->i_sb, dentry->d_name.name,
fs/udf/namei.c
232
dentry->d_name.len,
fs/udf/namei.c
346
static int udf_add_nondir(struct dentry *dentry, struct inode *inode)
fs/udf/namei.c
349
struct inode *dir = d_inode(dentry->d_parent);
fs/udf/namei.c
353
err = udf_fiiter_add_entry(dir, dentry, &iter);
fs/udf/namei.c
368
d_instantiate_new(dentry, inode);
fs/udf/namei.c
374
struct dentry *dentry, umode_t mode, bool excl)
fs/udf/namei.c
386
return udf_add_nondir(dentry, inode);
fs/udf/namei.c
407
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/udf/namei.c
419
return udf_add_nondir(dentry, inode);
fs/udf/namei.c
422
static struct dentry *udf_mkdir(struct mnt_idmap *idmap, struct inode *dir,
fs/udf/namei.c
423
struct dentry *dentry, umode_t mode)
fs/udf/namei.c
455
err = udf_fiiter_add_entry(dir, dentry, &iter);
fs/udf/namei.c
472
d_instantiate_new(dentry, inode);
fs/udf/namei.c
496
static int udf_rmdir(struct inode *dir, struct dentry *dentry)
fs/udf/namei.c
499
struct inode *inode = d_inode(dentry);
fs/udf/namei.c
503
ret = udf_fiiter_find_entry(dir, &dentry->d_name, &iter);
fs/udf/namei.c
536
static int udf_unlink(struct inode *dir, struct dentry *dentry)
fs/udf/namei.c
539
struct inode *inode = d_inode(dentry);
fs/udf/namei.c
543
ret = udf_fiiter_find_entry(dir, &dentry->d_name, &iter);
fs/udf/namei.c
571
struct dentry *dentry, const char *symname)
fs/udf/namei.c
719
err = udf_add_nondir(dentry, inode);
fs/udf/namei.c
731
static int udf_link(struct dentry *old_dentry, struct inode *dir,
fs/udf/namei.c
732
struct dentry *dentry)
fs/udf/namei.c
738
err = udf_fiiter_add_entry(dir, dentry, &iter);
fs/udf/namei.c
757
d_instantiate(dentry, inode);
fs/udf/namei.c
766
struct dentry *old_dentry, struct inode *new_dir,
fs/udf/namei.c
767
struct dentry *new_dentry, unsigned int flags)
fs/udf/namei.c
915
static struct dentry *udf_get_parent(struct dentry *child)
fs/udf/namei.c
931
static struct dentry *udf_nfs_get_inode(struct super_block *sb, u32 block,
fs/udf/namei.c
954
static struct dentry *udf_fh_to_dentry(struct super_block *sb,
fs/udf/namei.c
966
static struct dentry *udf_fh_to_parent(struct super_block *sb,
fs/udf/super.c
101
static int udf_statfs(struct dentry *, struct kstatfs *);
fs/udf/super.c
102
static int udf_show_options(struct seq_file *, struct dentry *);
fs/udf/super.c
2405
static int udf_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/udf/super.c
2407
struct super_block *sb = dentry->d_sb;
fs/udf/super.c
383
static int udf_show_options(struct seq_file *seq, struct dentry *root)
fs/udf/symlink.c
138
struct dentry *dentry = path->dentry;
fs/udf/symlink.c
139
struct inode *inode = d_backing_inode(dentry);
fs/udf/udfdecl.h
70
struct dentry;
fs/ufs/dir.c
298
int ufs_add_link(struct dentry *dentry, struct inode *inode)
fs/ufs/dir.c
300
struct inode *dir = d_inode(dentry->d_parent);
fs/ufs/dir.c
301
const unsigned char *name = dentry->d_name.name;
fs/ufs/dir.c
302
int namelen = dentry->d_name.len;
fs/ufs/inode.c
1199
int ufs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ufs/inode.c
1202
struct inode *inode = d_inode(dentry);
fs/ufs/inode.c
1206
error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
fs/ufs/namei.c
104
err = ufs_add_nondir(dentry, inode);
fs/ufs/namei.c
110
struct dentry * dentry, const char * symname)
fs/ufs/namei.c
142
return ufs_add_nondir(dentry, inode);
fs/ufs/namei.c
150
static int ufs_link (struct dentry * old_dentry, struct inode * dir,
fs/ufs/namei.c
151
struct dentry *dentry)
fs/ufs/namei.c
160
error = ufs_add_link(dentry, inode);
fs/ufs/namei.c
165
d_instantiate(dentry, inode);
fs/ufs/namei.c
169
static struct dentry *ufs_mkdir(struct mnt_idmap * idmap, struct inode * dir,
fs/ufs/namei.c
170
struct dentry * dentry, umode_t mode)
fs/ufs/namei.c
192
err = ufs_add_link(dentry, inode);
fs/ufs/namei.c
196
d_instantiate_new(dentry, inode);
fs/ufs/namei.c
208
static int ufs_unlink(struct inode *dir, struct dentry *dentry)
fs/ufs/namei.c
210
struct inode * inode = d_inode(dentry);
fs/ufs/namei.c
215
de = ufs_find_entry(dir, &dentry->d_name, &folio);
fs/ufs/namei.c
228
static int ufs_rmdir (struct inode * dir, struct dentry *dentry)
fs/ufs/namei.c
230
struct inode * inode = d_inode(dentry);
fs/ufs/namei.c
234
err = ufs_unlink(dir, dentry);
fs/ufs/namei.c
245
struct dentry *old_dentry, struct inode *new_dir,
fs/ufs/namei.c
246
struct dentry *new_dentry, unsigned int flags)
fs/ufs/namei.c
38
static inline int ufs_add_nondir(struct dentry *dentry, struct inode *inode)
fs/ufs/namei.c
40
int err = ufs_add_link(dentry, inode);
fs/ufs/namei.c
42
d_instantiate_new(dentry, inode);
fs/ufs/namei.c
50
static struct dentry *ufs_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags)
fs/ufs/namei.c
55
if (dentry->d_name.len > UFS_MAXNAMLEN)
fs/ufs/namei.c
58
ino = ufs_inode_by_name(dir, &dentry->d_name);
fs/ufs/namei.c
61
return d_splice_alias(inode, dentry);
fs/ufs/namei.c
73
struct inode * dir, struct dentry * dentry, umode_t mode,
fs/ufs/namei.c
86
return ufs_add_nondir(dentry, inode);
fs/ufs/namei.c
90
struct dentry *dentry, umode_t mode, dev_t rdev)
fs/ufs/super.c
117
static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid,
fs/ufs/super.c
123
static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid,
fs/ufs/super.c
129
static struct dentry *ufs_get_parent(struct dentry *child)
fs/ufs/super.c
1307
static int ufs_show_options(struct seq_file *seq, struct dentry *root)
fs/ufs/super.c
1327
static int ufs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/ufs/super.c
1329
struct super_block *sb = dentry->d_sb;
fs/ufs/ufs.h
123
extern int ufs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/ufs/ufs.h
98
int ufs_add_link(struct dentry *, struct inode *);
fs/utimes.c
25
struct inode *inode = path->dentry->d_inode;
fs/utimes.c
67
error = notify_change(mnt_idmap(path->mnt), path->dentry, &newattrs,
fs/vboxsf/dir.c
196
struct dentry *dentry, unsigned int flags)
fs/vboxsf/dir.c
201
if (d_really_is_positive(dentry))
fs/vboxsf/dir.c
202
return vboxsf_inode_revalidate(dentry) == 0;
fs/vboxsf/dir.c
204
return vboxsf_stat_dentry(dentry, NULL) == -ENOENT;
fs/vboxsf/dir.c
213
static struct dentry *vboxsf_dir_lookup(struct inode *parent,
fs/vboxsf/dir.c
214
struct dentry *dentry,
fs/vboxsf/dir.c
222
dentry->d_time = jiffies;
fs/vboxsf/dir.c
224
err = vboxsf_stat_dentry(dentry, &fsinfo);
fs/vboxsf/dir.c
233
return d_splice_alias(inode, dentry);
fs/vboxsf/dir.c
236
static int vboxsf_dir_instantiate(struct inode *parent, struct dentry *dentry,
fs/vboxsf/dir.c
252
d_instantiate(dentry, inode);
fs/vboxsf/dir.c
257
static int vboxsf_dir_create(struct inode *parent, struct dentry *dentry,
fs/vboxsf/dir.c
276
err = vboxsf_create_at_dentry(dentry, ¶ms);
fs/vboxsf/dir.c
283
err = vboxsf_dir_instantiate(parent, dentry, ¶ms.info);
fs/vboxsf/dir.c
300
struct inode *parent, struct dentry *dentry,
fs/vboxsf/dir.c
303
return vboxsf_dir_create(parent, dentry, mode, false, excl, NULL);
fs/vboxsf/dir.c
306
static struct dentry *vboxsf_dir_mkdir(struct mnt_idmap *idmap,
fs/vboxsf/dir.c
307
struct inode *parent, struct dentry *dentry,
fs/vboxsf/dir.c
310
return ERR_PTR(vboxsf_dir_create(parent, dentry, mode, true, true, NULL));
fs/vboxsf/dir.c
313
static int vboxsf_dir_atomic_open(struct inode *parent, struct dentry *dentry,
fs/vboxsf/dir.c
321
if (d_in_lookup(dentry)) {
fs/vboxsf/dir.c
322
struct dentry *res = vboxsf_dir_lookup(parent, dentry, 0);
fs/vboxsf/dir.c
323
if (res || d_really_is_positive(dentry))
fs/vboxsf/dir.c
331
err = vboxsf_dir_create(parent, dentry, mode, false, flags & O_EXCL, &handle);
fs/vboxsf/dir.c
335
sf_handle = vboxsf_create_sf_handle(d_inode(dentry), handle, SHFL_CF_ACCESS_READWRITE);
fs/vboxsf/dir.c
341
err = finish_open(file, dentry, generic_file_open);
fs/vboxsf/dir.c
344
vboxsf_release_sf_handle(d_inode(dentry), sf_handle);
fs/vboxsf/dir.c
353
static int vboxsf_dir_unlink(struct inode *parent, struct dentry *dentry)
fs/vboxsf/dir.c
357
struct inode *inode = d_inode(dentry);
fs/vboxsf/dir.c
370
path = vboxsf_path_from_dentry(sbi, dentry);
fs/vboxsf/dir.c
387
struct dentry *old_dentry,
fs/vboxsf/dir.c
389
struct dentry *new_dentry,
fs/vboxsf/dir.c
429
struct inode *parent, struct dentry *dentry,
fs/vboxsf/dir.c
439
path = vboxsf_path_from_dentry(sbi, dentry);
fs/vboxsf/dir.c
460
err = vboxsf_dir_instantiate(parent, dentry, &info);
fs/vboxsf/file.c
359
static const char *vboxsf_get_link(struct dentry *dentry, struct inode *inode,
fs/vboxsf/file.c
367
if (!dentry)
fs/vboxsf/file.c
370
path = vboxsf_path_from_dentry(sbi, dentry);
fs/vboxsf/super.c
116
struct dentry *droot;
fs/vboxsf/super.c
277
static int vboxsf_statfs(struct dentry *dentry, struct kstatfs *stat)
fs/vboxsf/super.c
279
struct super_block *sb = dentry->d_sb;
fs/vboxsf/utils.c
138
int vboxsf_create_at_dentry(struct dentry *dentry,
fs/vboxsf/utils.c
141
struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb);
fs/vboxsf/utils.c
145
path = vboxsf_path_from_dentry(sbi, dentry);
fs/vboxsf/utils.c
177
int vboxsf_stat_dentry(struct dentry *dentry, struct shfl_fsobjinfo *info)
fs/vboxsf/utils.c
179
struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb);
fs/vboxsf/utils.c
183
path = vboxsf_path_from_dentry(sbi, dentry);
fs/vboxsf/utils.c
192
int vboxsf_inode_revalidate(struct dentry *dentry)
fs/vboxsf/utils.c
201
if (!dentry || !d_really_is_positive(dentry))
fs/vboxsf/utils.c
204
inode = d_inode(dentry);
fs/vboxsf/utils.c
207
sbi = VBOXSF_SBI(dentry->d_sb);
fs/vboxsf/utils.c
209
if (time_before(jiffies, dentry->d_time + sbi->o.ttl))
fs/vboxsf/utils.c
213
err = vboxsf_stat_dentry(dentry, &info);
fs/vboxsf/utils.c
217
dentry->d_time = jiffies;
fs/vboxsf/utils.c
239
struct dentry *dentry = path->dentry;
fs/vboxsf/utils.c
240
struct inode *inode = d_inode(dentry);
fs/vboxsf/utils.c
251
err = vboxsf_inode_revalidate(dentry);
fs/vboxsf/utils.c
256
generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(dentry), kstat);
fs/vboxsf/utils.c
260
int vboxsf_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/vboxsf/utils.c
263
struct vboxsf_inode *sf_i = VBOXSF_I(d_inode(dentry));
fs/vboxsf/utils.c
264
struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb);
fs/vboxsf/utils.c
279
err = vboxsf_create_at_dentry(dentry, ¶ms);
fs/vboxsf/utils.c
355
vboxsf_inode_revalidate(dentry);
fs/vboxsf/utils.c
367
struct dentry *dentry)
fs/vboxsf/utils.c
379
path = dentry_path_raw(dentry, buf, PATH_MAX);
fs/vboxsf/vfsmod.h
103
int vboxsf_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/vboxsf/vfsmod.h
106
struct dentry *dentry);
fs/vboxsf/vfsmod.h
94
int vboxsf_create_at_dentry(struct dentry *dentry,
fs/vboxsf/vfsmod.h
98
int vboxsf_stat_dentry(struct dentry *dentry, struct shfl_fsobjinfo *info);
fs/vboxsf/vfsmod.h
99
int vboxsf_inode_revalidate(struct dentry *dentry);
fs/xattr.c
1006
removexattr(struct mnt_idmap *idmap, struct dentry *d, const char *name)
fs/xattr.c
1020
f->f_path.dentry, kname->name);
fs/xattr.c
1038
error = removexattr(mnt_idmap(path.mnt), path.dentry, kname->name);
fs/xattr.c
1124
generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
fs/xattr.c
1126
const struct xattr_handler *handler, * const *handlers = dentry->d_sb->s_xattr;
fs/xattr.c
1132
if (!handler->name || (handler->list && !handler->list(dentry)))
fs/xattr.c
184
__vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
200
return handler->set(handler, idmap, dentry, inode, name, value,
fs/xattr.c
223
struct dentry *dentry, const char *name,
fs/xattr.c
226
struct inode *inode = dentry->d_inode;
fs/xattr.c
234
error = __vfs_setxattr(idmap, dentry, inode, name, value,
fs/xattr.c
237
fsnotify_xattr(dentry);
fs/xattr.c
238
security_inode_post_setxattr(dentry, name, value,
fs/xattr.c
254
fsnotify_xattr(dentry);
fs/xattr.c
275
__vfs_setxattr_locked(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
279
struct inode *inode = dentry->d_inode;
fs/xattr.c
286
error = security_inode_setxattr(idmap, dentry, name, value, size,
fs/xattr.c
295
error = __vfs_setxattr_noperm(idmap, dentry, name, value,
fs/xattr.c
304
vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
307
struct inode *inode = dentry->d_inode;
fs/xattr.c
313
error = cap_convert_nscap(idmap, dentry, &value, size);
fs/xattr.c
321
error = __vfs_setxattr_locked(idmap, dentry, name, value, size,
fs/xattr.c
375
vfs_getxattr_alloc(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
380
struct inode *inode = dentry->d_inode;
fs/xattr.c
393
error = handler->get(handler, dentry, inode, name, NULL, 0);
fs/xattr.c
404
error = handler->get(handler, dentry, inode, name, value, error);
fs/xattr.c
410
__vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name,
fs/xattr.c
423
return handler->get(handler, dentry, inode, name, value, size);
fs/xattr.c
428
vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
431
struct inode *inode = dentry->d_inode;
fs/xattr.c
438
error = security_inode_getxattr(dentry, name);
fs/xattr.c
456
return __vfs_getxattr(dentry, inode, name, value, size);
fs/xattr.c
483
vfs_listxattr(struct dentry *dentry, char *list, size_t size)
fs/xattr.c
485
struct inode *inode = d_inode(dentry);
fs/xattr.c
488
error = security_inode_listxattr(dentry);
fs/xattr.c
493
error = inode->i_op->listxattr(dentry, list, size);
fs/xattr.c
504
__vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
507
struct inode *inode = d_inode(dentry);
fs/xattr.c
518
return handler->set(handler, idmap, dentry, inode, name, NULL, 0,
fs/xattr.c
535
struct dentry *dentry, const char *name,
fs/xattr.c
538
struct inode *inode = dentry->d_inode;
fs/xattr.c
545
error = security_inode_removexattr(idmap, dentry, name);
fs/xattr.c
553
error = __vfs_removexattr(idmap, dentry, name);
fs/xattr.c
557
fsnotify_xattr(dentry);
fs/xattr.c
558
security_inode_post_removexattr(dentry, name);
fs/xattr.c
566
vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
569
struct inode *inode = dentry->d_inode;
fs/xattr.c
575
error = __vfs_removexattr_locked(idmap, dentry,
fs/xattr.c
629
static int do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xattr.c
633
return do_set_acl(idmap, dentry, ctx->kname->name,
fs/xattr.c
636
return vfs_setxattr(idmap, dentry, ctx->kname->name,
fs/xattr.c
646
error = do_setxattr(file_mnt_idmap(f), f->f_path.dentry, ctx);
fs/xattr.c
664
error = do_setxattr(mnt_idmap(path.mnt), path.dentry, ctx);
fs/xattr.c
764
do_getxattr(struct mnt_idmap *idmap, struct dentry *d,
fs/xattr.c
799
return do_getxattr(file_mnt_idmap(f), f->f_path.dentry, ctx);
fs/xattr.c
811
error = do_getxattr(mnt_idmap(path.mnt), path.dentry, ctx);
fs/xattr.c
902
listxattr(struct dentry *d, char __user *list, size_t size)
fs/xattr.c
934
return listxattr(f->f_path.dentry, list, size);
fs/xattr.c
948
error = listxattr(path.dentry, list, size);
fs/xfs/scrub/dirtree_repair.c
290
struct dentry *parent_dentry, *child_dentry;
fs/xfs/scrub/findparent.c
443
struct dentry *dentry, *parent;
fs/xfs/scrub/findparent.c
446
dentry = d_find_alias(VFS_I(sc->ip));
fs/xfs/scrub/findparent.c
447
if (!dentry)
fs/xfs/scrub/findparent.c
450
parent = dget_parent(dentry);
fs/xfs/scrub/findparent.c
467
dput(dentry);
fs/xfs/scrub/orphanage.c
126
struct dentry *root_dentry, *orphanage_dentry;
fs/xfs/scrub/orphanage.c
437
struct dentry *d_orphanage, *d_child;
fs/xfs/scrub/orphanage.c
479
struct dentry *d_orphanage, *d_child;
fs/xfs/scrub/stats.c
330
struct dentry *parent)
fs/xfs/scrub/stats.c
364
struct dentry *parent)
fs/xfs/scrub/stats.c
48
struct dentry *cs_debugfs;
fs/xfs/scrub/stats.h
20
int __init xchk_global_stats_setup(struct dentry *parent);
fs/xfs/scrub/stats.h
26
void xchk_stats_register(struct xchk_stats *cs, struct dentry *parent);
fs/xfs/scrub/trace.h
3344
TP_PROTO(struct xfs_mount *mp, const struct dentry *dentry),
fs/xfs/scrub/trace.h
3345
TP_ARGS(mp, dentry),
fs/xfs/scrub/trace.h
3353
__dynamic_array(char, name, dentry->d_name.len)
fs/xfs/scrub/trace.h
3357
__entry->flags = dentry->d_flags;
fs/xfs/scrub/trace.h
3358
__entry->positive = d_is_positive(dentry);
fs/xfs/scrub/trace.h
3359
if (dentry->d_parent && d_inode(dentry->d_parent))
fs/xfs/scrub/trace.h
3360
__entry->parent_ino = d_inode(dentry->d_parent)->i_ino;
fs/xfs/scrub/trace.h
3363
__entry->ino = d_inode(dentry) ? d_inode(dentry)->i_ino : 0;
fs/xfs/scrub/trace.h
3364
__entry->namelen = dentry->d_name.len;
fs/xfs/scrub/trace.h
3365
memcpy(__get_str(name), dentry->d_name.name, dentry->d_name.len);
fs/xfs/scrub/trace.h
3378
TP_PROTO(struct xfs_mount *mp, const struct dentry *dentry), \
fs/xfs/scrub/trace.h
3379
TP_ARGS(mp, dentry))
fs/xfs/xfs_acl.c
246
xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xfs/xfs_acl.c
252
struct inode *inode = d_inode(dentry);
fs/xfs/xfs_acl.h
14
extern int xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
fs/xfs/xfs_export.c
171
STATIC struct dentry *
fs/xfs/xfs_export.c
195
STATIC struct dentry *
fs/xfs/xfs_export.c
219
STATIC struct dentry *
fs/xfs/xfs_export.c
221
struct dentry *child)
fs/xfs/xfs_filestream.c
174
struct dentry *dentry, *parent;
fs/xfs/xfs_filestream.c
176
dentry = d_find_alias(inode);
fs/xfs/xfs_filestream.c
177
if (!dentry)
fs/xfs/xfs_filestream.c
180
parent = dget_parent(dentry);
fs/xfs/xfs_filestream.c
188
dput(dentry);
fs/xfs/xfs_handle.c
104
inode = d_inode(path.dentry);
fs/xfs/xfs_handle.c
149
struct dentry *dentry)
fs/xfs/xfs_handle.c
155
static struct dentry *
fs/xfs/xfs_handle.c
206
struct dentry *
fs/xfs/xfs_handle.c
222
STATIC struct dentry *
fs/xfs/xfs_handle.c
238
struct dentry *dentry;
fs/xfs/xfs_handle.c
245
dentry = xfs_handlereq_to_dentry(parfilp, hreq);
fs/xfs/xfs_handle.c
246
if (IS_ERR(dentry))
fs/xfs/xfs_handle.c
247
return PTR_ERR(dentry);
fs/xfs/xfs_handle.c
248
inode = d_inode(dentry);
fs/xfs/xfs_handle.c
249
path.dentry = dentry;
fs/xfs/xfs_handle.c
293
struct dentry *dentry;
fs/xfs/xfs_handle.c
300
dentry = xfs_handlereq_to_dentry(parfilp, hreq);
fs/xfs/xfs_handle.c
301
if (IS_ERR(dentry))
fs/xfs/xfs_handle.c
302
return PTR_ERR(dentry);
fs/xfs/xfs_handle.c
305
if (!d_is_symlink(dentry)) {
fs/xfs/xfs_handle.c
315
error = vfs_readlink(dentry, hreq->ohandle, olen);
fs/xfs/xfs_handle.c
318
dput(dentry);
fs/xfs/xfs_handle.c
474
struct dentry *dentry;
fs/xfs/xfs_handle.c
482
dentry = xfs_handlereq_to_dentry(parfilp, &al_hreq.hreq);
fs/xfs/xfs_handle.c
483
if (IS_ERR(dentry))
fs/xfs/xfs_handle.c
484
return PTR_ERR(dentry);
fs/xfs/xfs_handle.c
486
error = xfs_ioc_attr_list(XFS_I(d_inode(dentry)), al_hreq.buffer,
fs/xfs/xfs_handle.c
488
dput(dentry);
fs/xfs/xfs_handle.c
612
struct dentry *dentry;
fs/xfs/xfs_handle.c
624
dentry = xfs_handlereq_to_dentry(parfilp, &am_hreq.hreq);
fs/xfs/xfs_handle.c
625
if (IS_ERR(dentry))
fs/xfs/xfs_handle.c
626
return PTR_ERR(dentry);
fs/xfs/xfs_handle.c
642
d_inode(dentry), ops[i].am_opcode,
fs/xfs/xfs_handle.c
652
dput(dentry);
fs/xfs/xfs_handle.h
26
struct dentry *xfs_handle_to_dentry(struct file *parfilp, void __user *uhandle,
fs/xfs/xfs_ioctl.c
512
struct dentry *dentry,
fs/xfs/xfs_ioctl.c
515
struct xfs_inode *ip = XFS_I(d_inode(dentry));
fs/xfs/xfs_ioctl.c
726
struct dentry *dentry,
fs/xfs/xfs_ioctl.c
729
struct xfs_inode *ip = XFS_I(d_inode(dentry));
fs/xfs/xfs_ioctl.h
19
struct dentry *dentry,
fs/xfs/xfs_ioctl.h
25
struct dentry *dentry,
fs/xfs/xfs_ioctl32.c
332
STATIC struct dentry *
fs/xfs/xfs_ioctl32.c
347
struct dentry *dentry;
fs/xfs/xfs_ioctl32.c
355
dentry = xfs_compat_handlereq_to_dentry(parfilp, &al_hreq.hreq);
fs/xfs/xfs_ioctl32.c
356
if (IS_ERR(dentry))
fs/xfs/xfs_ioctl32.c
357
return PTR_ERR(dentry);
fs/xfs/xfs_ioctl32.c
359
error = xfs_ioc_attr_list(XFS_I(d_inode(dentry)),
fs/xfs/xfs_ioctl32.c
362
dput(dentry);
fs/xfs/xfs_ioctl32.c
374
struct dentry *dentry;
fs/xfs/xfs_ioctl32.c
387
dentry = xfs_compat_handlereq_to_dentry(parfilp, &am_hreq.hreq);
fs/xfs/xfs_ioctl32.c
388
if (IS_ERR(dentry))
fs/xfs/xfs_ioctl32.c
389
return PTR_ERR(dentry);
fs/xfs/xfs_ioctl32.c
405
d_inode(dentry), ops[i].am_opcode,
fs/xfs/xfs_ioctl32.c
416
dput(dentry);
fs/xfs/xfs_iops.c
100
namep->name = dentry->d_name.name;
fs/xfs/xfs_iops.c
101
namep->len = dentry->d_name.len;
fs/xfs/xfs_iops.c
108
struct dentry *dentry,
fs/xfs/xfs_iops.c
111
namep->name = dentry->d_name.name;
fs/xfs/xfs_iops.c
112
namep->len = dentry->d_name.len;
fs/xfs/xfs_iops.c
1135
struct dentry *dentry,
fs/xfs/xfs_iops.c
1138
struct xfs_inode *ip = XFS_I(d_inode(dentry));
fs/xfs/xfs_iops.c
1143
error = xfs_vn_change_ok(idmap, dentry, iattr);
fs/xfs/xfs_iops.c
1146
return xfs_setattr_size(idmap, dentry, ip, iattr);
fs/xfs/xfs_iops.c
1152
struct dentry *dentry,
fs/xfs/xfs_iops.c
1155
struct inode *inode = d_inode(dentry);
fs/xfs/xfs_iops.c
1171
error = xfs_vn_setattr_size(idmap, dentry, iattr);
fs/xfs/xfs_iops.c
1176
error = xfs_vn_change_ok(idmap, dentry, iattr);
fs/xfs/xfs_iops.c
1178
error = xfs_setattr_nonsize(idmap, dentry, ip, iattr);
fs/xfs/xfs_iops.c
125
struct dentry *dentry)
fs/xfs/xfs_iops.c
1276
int err = xfs_generic_create(idmap, dir, file->f_path.dentry, mode, 0, file);
fs/xfs/xfs_iops.c
134
xfs_dentry_to_name(&teardown, dentry);
fs/xfs/xfs_iops.c
174
struct dentry *dentry,
fs/xfs/xfs_iops.c
208
error = xfs_dentry_mode_to_name(&name, dentry, args.mode);
fs/xfs/xfs_iops.c
234
error = xfs_inode_init_security(inode, dir, &dentry->d_name);
fs/xfs/xfs_iops.c
263
d_instantiate(dentry, inode);
fs/xfs/xfs_iops.c
275
xfs_cleanup_inode(dir, inode, dentry);
fs/xfs/xfs_iops.c
284
struct dentry *dentry,
fs/xfs/xfs_iops.c
288
return xfs_generic_create(idmap, dir, dentry, mode, rdev, NULL);
fs/xfs/xfs_iops.c
295
struct dentry *dentry,
fs/xfs/xfs_iops.c
299
return xfs_generic_create(idmap, dir, dentry, mode, 0, NULL);
fs/xfs/xfs_iops.c
302
STATIC struct dentry *
fs/xfs/xfs_iops.c
306
struct dentry *dentry,
fs/xfs/xfs_iops.c
309
return ERR_PTR(xfs_generic_create(idmap, dir, dentry, mode | S_IFDIR, 0, NULL));
fs/xfs/xfs_iops.c
312
STATIC struct dentry *
fs/xfs/xfs_iops.c
315
struct dentry *dentry,
fs/xfs/xfs_iops.c
323
if (dentry->d_name.len >= MAXNAMELEN)
fs/xfs/xfs_iops.c
326
xfs_dentry_to_name(&name, dentry);
fs/xfs/xfs_iops.c
334
return d_splice_alias(inode, dentry);
fs/xfs/xfs_iops.c
337
STATIC struct dentry *
fs/xfs/xfs_iops.c
340
struct dentry *dentry,
fs/xfs/xfs_iops.c
349
if (dentry->d_name.len >= MAXNAMELEN)
fs/xfs/xfs_iops.c
352
xfs_dentry_to_name(&xname, dentry);
fs/xfs/xfs_iops.c
367
return d_splice_alias(VFS_I(ip), dentry);
fs/xfs/xfs_iops.c
372
dentry = d_add_ci(dentry, VFS_I(ip), &dname);
fs/xfs/xfs_iops.c
374
return dentry;
fs/xfs/xfs_iops.c
379
struct dentry *old_dentry,
fs/xfs/xfs_iops.c
381
struct dentry *dentry)
fs/xfs/xfs_iops.c
387
error = xfs_dentry_mode_to_name(&name, dentry, inode->i_mode);
fs/xfs/xfs_iops.c
399
d_instantiate(dentry, inode);
fs/xfs/xfs_iops.c
406
struct dentry *dentry)
fs/xfs/xfs_iops.c
411
xfs_dentry_to_name(&name, dentry);
fs/xfs/xfs_iops.c
413
error = xfs_remove(XFS_I(dir), &name, XFS_I(d_inode(dentry)));
fs/xfs/xfs_iops.c
423
d_invalidate(dentry);
fs/xfs/xfs_iops.c
431
struct dentry *dentry,
fs/xfs/xfs_iops.c
440
error = xfs_dentry_mode_to_name(&name, dentry, mode);
fs/xfs/xfs_iops.c
450
error = xfs_inode_init_security(inode, dir, &dentry->d_name);
fs/xfs/xfs_iops.c
456
d_instantiate(dentry, inode);
fs/xfs/xfs_iops.c
462
xfs_cleanup_inode(dir, inode, dentry);
fs/xfs/xfs_iops.c
472
struct dentry *odentry,
fs/xfs/xfs_iops.c
474
struct dentry *ndentry,
fs/xfs/xfs_iops.c
511
struct dentry *dentry,
fs/xfs/xfs_iops.c
518
if (!dentry)
fs/xfs/xfs_iops.c
525
error = xfs_readlink(XFS_I(d_inode(dentry)), link);
fs/xfs/xfs_iops.c
689
struct inode *inode = d_inode(path->dentry);
fs/xfs/xfs_iops.c
759
struct dentry *dentry,
fs/xfs/xfs_iops.c
762
struct xfs_mount *mp = XFS_I(d_inode(dentry))->i_mount;
fs/xfs/xfs_iops.c
770
return setattr_prepare(idmap, dentry, iattr);
fs/xfs/xfs_iops.c
782
struct dentry *dentry,
fs/xfs/xfs_iops.c
889
error = posix_acl_chmod(idmap, dentry, inode->i_mode);
fs/xfs/xfs_iops.c
911
struct dentry *dentry,
fs/xfs/xfs_iops.c
944
return xfs_setattr_nonsize(idmap, dentry, ip, iattr);
fs/xfs/xfs_iops.c
98
struct dentry *dentry)
fs/xfs/xfs_iops.h
11
extern ssize_t xfs_vn_listxattr(struct dentry *, char *data, size_t size);
fs/xfs/xfs_iops.h
14
struct dentry *dentry, struct iattr *vap);
fs/xfs/xfs_mount.h
292
struct dentry *m_debugfs; /* debugfs parent */
fs/xfs/xfs_super.c
1266
struct dentry *root)
fs/xfs/xfs_super.c
1636
struct dentry *
fs/xfs/xfs_super.c
1639
struct dentry *parent)
fs/xfs/xfs_super.c
1641
struct dentry *child;
fs/xfs/xfs_super.c
189
struct dentry *root)
fs/xfs/xfs_super.c
63
static struct dentry *xfs_debugfs; /* top-level xfs debugfs dir */
fs/xfs/xfs_super.c
919
struct dentry *dentry,
fs/xfs/xfs_super.c
922
struct xfs_mount *mp = XFS_M(dentry->d_sb);
fs/xfs/xfs_super.c
923
struct xfs_inode *ip = XFS_I(d_inode(dentry));
fs/xfs/xfs_super.h
102
struct dentry *xfs_debugfs_mkdir(const char *name, struct dentry *parent);
fs/xfs/xfs_xattr.c
134
xfs_xattr_get(const struct xattr_handler *handler, struct dentry *unused,
fs/xfs/xfs_xattr.c
172
struct mnt_idmap *idmap, struct dentry *unused,
fs/xfs/xfs_xattr.c
318
struct dentry *dentry,
fs/xfs/xfs_xattr.c
323
struct inode *inode = d_inode(dentry);
fs/zonefs/super.c
441
static int zonefs_statfs(struct dentry *dentry, struct kstatfs *buf)
fs/zonefs/super.c
443
struct super_block *sb = dentry->d_sb;
fs/zonefs/super.c
520
static int zonefs_show_options(struct seq_file *seq, struct dentry *root)
fs/zonefs/super.c
537
struct dentry *dentry, struct iattr *iattr)
fs/zonefs/super.c
539
struct inode *inode = d_inode(dentry);
fs/zonefs/super.c
545
ret = setattr_prepare(&nop_mnt_idmap, dentry, iattr);
fs/zonefs/super.c
624
struct dentry *dentry)
fs/zonefs/super.c
635
fno = zonefs_fname_to_fno(&dentry->d_name);
fs/zonefs/super.c
707
struct dentry *dentry)
fs/zonefs/super.c
711
const char *name = dentry->d_name.name;
fs/zonefs/super.c
718
if (dentry->d_name.len != 3)
fs/zonefs/super.c
732
static struct dentry *zonefs_lookup(struct inode *dir, struct dentry *dentry,
fs/zonefs/super.c
737
if (dentry->d_name.len > ZONEFS_NAME_MAX)
fs/zonefs/super.c
741
inode = zonefs_get_dir_inode(dir, dentry);
fs/zonefs/super.c
743
inode = zonefs_get_file_inode(dir, dentry);
fs/zonefs/super.c
745
return d_splice_alias(inode, dentry);
include/drm/drm_bridge.h
1611
void drm_bridge_debugfs_params(struct dentry *root);
include/drm/drm_bridge.h
1612
void drm_bridge_debugfs_encoder_params(struct dentry *root, struct drm_encoder *encoder);
include/drm/drm_bridge.h
960
void (*debugfs_init)(struct drm_bridge *bridge, struct dentry *root);
include/drm/drm_connector.h
1654
void (*debugfs_init)(struct drm_connector *connector, struct dentry *root);
include/drm/drm_connector.h
2278
struct dentry *debugfs_entry;
include/drm/drm_crtc.h
1152
struct dentry *debugfs_entry;
include/drm/drm_debugfs.h
143
int count, struct dentry *root,
include/drm/drm_debugfs.h
146
struct dentry *root, struct drm_minor *minor);
include/drm/drm_debugfs.h
161
int count, struct dentry *root,
include/drm/drm_debugfs.h
166
int count, struct dentry *root,
include/drm/drm_debugfs.h
95
struct dentry *dent;
include/drm/drm_device.h
377
struct dentry *debugfs_root;
include/drm/drm_encoder.h
200
struct dentry *debugfs_entry;
include/drm/drm_encoder.h
90
void (*debugfs_init)(struct drm_encoder *encoder, struct dentry *root);
include/drm/drm_file.h
418
struct dentry *debugfs_client;
include/drm/drm_file.h
85
struct dentry *debugfs_symlink;
include/drm/drm_file.h
86
struct dentry *debugfs_root;
include/drm/drm_panel.h
146
void (*debugfs_init)(struct drm_panel *panel, struct dentry *root);
include/drm/drm_panel.h
34
struct dentry;
include/drm/ttm/ttm_resource.h
40
struct dentry;
include/drm/ttm/ttm_resource.h
522
struct dentry * parent,
include/kunit/test.h
284
struct dentry *debugfs;
include/linux/audit.h
321
extern void __audit_inode(struct filename *name, const struct dentry *dentry,
include/linux/audit.h
325
const struct dentry *dentry,
include/linux/audit.h
389
const struct dentry *dentry,
include/linux/audit.h
392
__audit_inode(name, dentry, aflags);
include/linux/audit.h
400
const struct dentry *dentry)
include/linux/audit.h
403
__audit_inode(name, dentry,
include/linux/audit.h
407
const struct dentry *dentry,
include/linux/audit.h
410
__audit_inode_child(parent, dentry, type);
include/linux/audit.h
624
const struct dentry *dentry,
include/linux/audit.h
631
const struct dentry *dentry)
include/linux/audit.h
634
const struct dentry *dentry,
include/linux/backing-dev-defs.h
19
struct dentry;
include/linux/backing-dev-defs.h
207
struct dentry *debug_dir;
include/linux/blk-mq.h
453
struct dentry *debugfs_dir;
include/linux/blk-mq.h
455
struct dentry *sched_debugfs_dir;
include/linux/blkdev.h
643
struct dentry *debugfs_dir;
include/linux/blkdev.h
644
struct dentry *sched_debugfs_dir;
include/linux/blkdev.h
645
struct dentry *rqos_debugfs_dir;
include/linux/blktrace_api.h
27
struct dentry *dir;
include/linux/bpf_lsm.h
51
int bpf_set_dentry_xattr_locked(struct dentry *dentry, const char *name__str,
include/linux/bpf_lsm.h
53
int bpf_remove_dentry_xattr_locked(struct dentry *dentry, const char *name__str);
include/linux/bpf_lsm.h
94
static inline int bpf_set_dentry_xattr_locked(struct dentry *dentry, const char *name__str,
include/linux/bpf_lsm.h
99
static inline int bpf_remove_dentry_xattr_locked(struct dentry *dentry, const char *name__str)
include/linux/capability.h
214
const struct dentry *dentry,
include/linux/capability.h
217
int cap_convert_nscap(struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/capability.h
39
struct dentry;
include/linux/cdx/cdx_bus.h
159
struct dentry *debugfs_dir;
include/linux/ceph/libceph.h
137
struct dentry *debugfs_dir;
include/linux/ceph/libceph.h
138
struct dentry *debugfs_monmap;
include/linux/ceph/libceph.h
139
struct dentry *debugfs_osdmap;
include/linux/ceph/libceph.h
140
struct dentry *debugfs_options;
include/linux/ceph/mon_client.h
103
struct dentry *debugfs_file;
include/linux/ceph/osd_client.h
427
struct dentry *debugfs_file;
include/linux/cgroup.h
112
struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry,
include/linux/cgroup.h
129
int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry);
include/linux/cgroup.h
675
struct dentry *dentry) { return -EINVAL; }
include/linux/clk-provider.h
268
void (*debug_init)(struct clk_hw *hw, struct dentry *dentry);
include/linux/clk-provider.h
39
struct dentry;
include/linux/closure.h
108
extern struct dentry *bcache_debug;
include/linux/configfs.h
46
struct dentry *ci_dentry;
include/linux/dcache.h
153
struct dentry *, unsigned int);
include/linux/dcache.h
154
int (*d_weak_revalidate)(struct dentry *, unsigned int);
include/linux/dcache.h
155
int (*d_hash)(const struct dentry *, struct qstr *);
include/linux/dcache.h
156
int (*d_compare)(const struct dentry *,
include/linux/dcache.h
158
int (*d_delete)(const struct dentry *);
include/linux/dcache.h
159
int (*d_init)(struct dentry *);
include/linux/dcache.h
160
void (*d_release)(struct dentry *);
include/linux/dcache.h
161
void (*d_prune)(struct dentry *);
include/linux/dcache.h
162
void (*d_iput)(struct dentry *, struct inode *);
include/linux/dcache.h
163
char *(*d_dname)(struct dentry *, char *, int);
include/linux/dcache.h
166
struct dentry *(*d_real)(struct dentry *, enum d_real_type type);
include/linux/dcache.h
167
bool (*d_unalias_trylock)(const struct dentry *);
include/linux/dcache.h
168
void (*d_unalias_unlock)(const struct dentry *);
include/linux/dcache.h
238
extern void d_instantiate(struct dentry *, struct inode *);
include/linux/dcache.h
239
extern void d_instantiate_new(struct dentry *, struct inode *);
include/linux/dcache.h
240
extern void __d_drop(struct dentry *dentry);
include/linux/dcache.h
241
extern void d_drop(struct dentry *dentry);
include/linux/dcache.h
242
extern void d_delete(struct dentry *);
include/linux/dcache.h
245
extern struct dentry * d_alloc(struct dentry *, const struct qstr *);
include/linux/dcache.h
246
extern struct dentry * d_alloc_anon(struct super_block *);
include/linux/dcache.h
247
extern struct dentry * d_alloc_parallel(struct dentry *, const struct qstr *,
include/linux/dcache.h
249
extern struct dentry * d_splice_alias(struct inode *, struct dentry *);
include/linux/dcache.h
251
extern struct dentry * d_splice_alias_ops(struct inode *, struct dentry *,
include/linux/dcache.h
253
extern struct dentry * d_add_ci(struct dentry *, struct inode *, struct qstr *);
include/linux/dcache.h
254
extern bool d_same_name(const struct dentry *dentry, const struct dentry *parent,
include/linux/dcache.h
256
extern struct dentry *d_find_any_alias(struct inode *inode);
include/linux/dcache.h
257
extern struct dentry * d_obtain_alias(struct inode *);
include/linux/dcache.h
258
extern struct dentry * d_obtain_root(struct inode *);
include/linux/dcache.h
260
extern void shrink_dcache_parent(struct dentry *);
include/linux/dcache.h
261
extern void d_invalidate(struct dentry *);
include/linux/dcache.h
264
extern struct dentry * d_make_root(struct inode *);
include/linux/dcache.h
269
extern struct dentry *d_find_alias(struct inode *);
include/linux/dcache.h
271
extern void d_dispose_if_unused(struct dentry *, struct list_head *);
include/linux/dcache.h
274
extern struct dentry *d_find_alias_rcu(struct inode *);
include/linux/dcache.h
282
extern void d_rehash(struct dentry *);
include/linux/dcache.h
284
extern void d_add(struct dentry *, struct inode *);
include/linux/dcache.h
287
extern void d_move(struct dentry *, struct dentry *);
include/linux/dcache.h
288
extern void d_exchange(struct dentry *, struct dentry *);
include/linux/dcache.h
289
extern struct dentry *d_ancestor(struct dentry *, struct dentry *);
include/linux/dcache.h
291
extern struct dentry *d_lookup(const struct dentry *, const struct qstr *);
include/linux/dcache.h
293
static inline unsigned d_count(const struct dentry *dentry)
include/linux/dcache.h
295
return dentry->d_lockref.count;
include/linux/dcache.h
298
ino_t d_parent_ino(struct dentry *dentry);
include/linux/dcache.h
309
extern char *dentry_path_raw(const struct dentry *, char *, int);
include/linux/dcache.h
310
extern char *dentry_path(const struct dentry *, char *, int);
include/linux/dcache.h
324
static inline struct dentry *dget_dlock(struct dentry *dentry)
include/linux/dcache.h
326
dentry->d_lockref.count++;
include/linux/dcache.h
327
return dentry;
include/linux/dcache.h
349
static inline struct dentry *dget(struct dentry *dentry)
include/linux/dcache.h
351
if (dentry)
include/linux/dcache.h
352
lockref_get(&dentry->d_lockref);
include/linux/dcache.h
353
return dentry;
include/linux/dcache.h
356
extern struct dentry *dget_parent(struct dentry *dentry);
include/linux/dcache.h
364
static inline int d_unhashed(const struct dentry *dentry)
include/linux/dcache.h
366
return hlist_bl_unhashed(&dentry->d_hash);
include/linux/dcache.h
369
static inline int d_unlinked(const struct dentry *dentry)
include/linux/dcache.h
371
return d_unhashed(dentry) && !IS_ROOT(dentry);
include/linux/dcache.h
374
static inline int cant_mount(const struct dentry *dentry)
include/linux/dcache.h
376
return (dentry->d_flags & DCACHE_CANT_MOUNT);
include/linux/dcache.h
379
static inline void dont_mount(struct dentry *dentry)
include/linux/dcache.h
381
spin_lock(&dentry->d_lock);
include/linux/dcache.h
382
dentry->d_flags |= DCACHE_CANT_MOUNT;
include/linux/dcache.h
383
spin_unlock(&dentry->d_lock);
include/linux/dcache.h
386
extern void __d_lookup_unhash_wake(struct dentry *dentry);
include/linux/dcache.h
388
static inline int d_in_lookup(const struct dentry *dentry)
include/linux/dcache.h
390
return dentry->d_flags & DCACHE_PAR_LOOKUP;
include/linux/dcache.h
393
static inline void d_lookup_done(struct dentry *dentry)
include/linux/dcache.h
395
if (unlikely(d_in_lookup(dentry)))
include/linux/dcache.h
396
__d_lookup_unhash_wake(dentry);
include/linux/dcache.h
399
extern void dput(struct dentry *);
include/linux/dcache.h
401
static inline bool d_managed(const struct dentry *dentry)
include/linux/dcache.h
403
return dentry->d_flags & DCACHE_MANAGED_DENTRY;
include/linux/dcache.h
406
static inline bool d_mountpoint(const struct dentry *dentry)
include/linux/dcache.h
408
return dentry->d_flags & DCACHE_MOUNTED;
include/linux/dcache.h
414
static inline unsigned __d_entry_type(const struct dentry *dentry)
include/linux/dcache.h
416
return dentry->d_flags & DCACHE_ENTRY_TYPE;
include/linux/dcache.h
419
static inline bool d_is_miss(const struct dentry *dentry)
include/linux/dcache.h
421
return __d_entry_type(dentry) == DCACHE_MISS_TYPE;
include/linux/dcache.h
424
static inline bool d_is_whiteout(const struct dentry *dentry)
include/linux/dcache.h
426
return __d_entry_type(dentry) == DCACHE_WHITEOUT_TYPE;
include/linux/dcache.h
429
static inline bool d_can_lookup(const struct dentry *dentry)
include/linux/dcache.h
431
return __d_entry_type(dentry) == DCACHE_DIRECTORY_TYPE;
include/linux/dcache.h
434
static inline bool d_is_autodir(const struct dentry *dentry)
include/linux/dcache.h
436
return __d_entry_type(dentry) == DCACHE_AUTODIR_TYPE;
include/linux/dcache.h
439
static inline bool d_is_dir(const struct dentry *dentry)
include/linux/dcache.h
441
return d_can_lookup(dentry) || d_is_autodir(dentry);
include/linux/dcache.h
444
static inline bool d_is_symlink(const struct dentry *dentry)
include/linux/dcache.h
446
return __d_entry_type(dentry) == DCACHE_SYMLINK_TYPE;
include/linux/dcache.h
449
static inline bool d_is_reg(const struct dentry *dentry)
include/linux/dcache.h
451
return __d_entry_type(dentry) == DCACHE_REGULAR_TYPE;
include/linux/dcache.h
454
static inline bool d_is_special(const struct dentry *dentry)
include/linux/dcache.h
456
return __d_entry_type(dentry) == DCACHE_SPECIAL_TYPE;
include/linux/dcache.h
459
static inline bool d_is_file(const struct dentry *dentry)
include/linux/dcache.h
461
return d_is_reg(dentry) || d_is_special(dentry);
include/linux/dcache.h
464
static inline bool d_is_negative(const struct dentry *dentry)
include/linux/dcache.h
467
return d_is_miss(dentry);
include/linux/dcache.h
475
static inline bool d_is_positive(const struct dentry *dentry)
include/linux/dcache.h
477
return !d_is_negative(dentry);
include/linux/dcache.h
495
static inline bool d_really_is_negative(const struct dentry *dentry)
include/linux/dcache.h
497
return dentry->d_inode == NULL;
include/linux/dcache.h
513
static inline bool d_really_is_positive(const struct dentry *dentry)
include/linux/dcache.h
515
return dentry->d_inode != NULL;
include/linux/dcache.h
518
static inline int simple_positive(const struct dentry *dentry)
include/linux/dcache.h
520
return d_really_is_positive(dentry) && !d_unhashed(dentry);
include/linux/dcache.h
532
static inline struct inode *d_inode(const struct dentry *dentry)
include/linux/dcache.h
534
return dentry->d_inode;
include/linux/dcache.h
544
static inline struct inode *d_inode_rcu(const struct dentry *dentry)
include/linux/dcache.h
546
return READ_ONCE(dentry->d_inode);
include/linux/dcache.h
559
static inline struct inode *d_backing_inode(const struct dentry *upper)
include/linux/dcache.h
576
static inline struct dentry *d_real(struct dentry *dentry, enum d_real_type type)
include/linux/dcache.h
578
if (unlikely(dentry->d_flags & DCACHE_OP_REAL))
include/linux/dcache.h
579
return dentry->d_op->d_real(dentry, type);
include/linux/dcache.h
581
return dentry;
include/linux/dcache.h
591
static inline struct inode *d_real_inode(const struct dentry *dentry)
include/linux/dcache.h
594
return d_inode(d_real((struct dentry *) dentry, D_REAL_DATA));
include/linux/dcache.h
601
void take_dentry_name_snapshot(struct name_snapshot *, struct dentry *);
include/linux/dcache.h
604
static inline struct dentry *d_first_child(const struct dentry *dentry)
include/linux/dcache.h
606
return hlist_entry_safe(dentry->d_children.first, struct dentry, d_sib);
include/linux/dcache.h
609
static inline struct dentry *d_next_sibling(const struct dentry *dentry)
include/linux/dcache.h
611
return hlist_entry_safe(dentry->d_sib.next, struct dentry, d_sib);
include/linux/dcache.h
615
struct dentry *d_make_persistent(struct dentry *, struct inode *);
include/linux/dcache.h
616
void d_make_discardable(struct dentry *dentry);
include/linux/dcache.h
97
struct dentry *d_parent; /* parent directory */
include/linux/debugfs.h
141
struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
include/linux/debugfs.h
142
struct dentry *parent, void *data,
include/linux/debugfs.h
146
struct dentry *parent, void *data,
include/linux/debugfs.h
150
struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
include/linux/debugfs.h
152
struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
include/linux/debugfs.h
155
struct dentry *debugfs_create_automount(const char *name,
include/linux/debugfs.h
156
struct dentry *parent,
include/linux/debugfs.h
160
void debugfs_remove(struct dentry *dentry);
include/linux/debugfs.h
163
void debugfs_lookup_and_remove(const char *name, struct dentry *parent);
include/linux/debugfs.h
167
int debugfs_file_get(struct dentry *dentry);
include/linux/debugfs.h
168
void debugfs_file_put(struct dentry *dentry);
include/linux/debugfs.h
177
int debugfs_change_name(struct dentry *dentry, const char *fmt, ...) __printf(2, 3);
include/linux/debugfs.h
179
void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
181
void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
183
void debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
185
void debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
187
void debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
189
void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
191
void debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
193
void debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
195
void debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
198
struct dentry *parent, size_t *value);
include/linux/debugfs.h
200
struct dentry *parent, atomic_t *value);
include/linux/debugfs.h
201
void debugfs_create_bool(const char *name, umode_t mode, struct dentry *parent,
include/linux/debugfs.h
204
struct dentry *parent, char **value);
include/linux/debugfs.h
206
struct dentry *debugfs_create_blob(const char *name, umode_t mode,
include/linux/debugfs.h
207
struct dentry *parent,
include/linux/debugfs.h
211
struct dentry *parent,
include/linux/debugfs.h
218
struct dentry *parent,
include/linux/debugfs.h
222
struct dentry *parent,
include/linux/debugfs.h
244
void (*cancel)(struct dentry *, void *);
include/linux/debugfs.h
263
static inline struct dentry *debugfs_lookup(const char *name,
include/linux/debugfs.h
264
struct dentry *parent)
include/linux/debugfs.h
269
static inline struct dentry *debugfs_create_file_aux(const char *name,
include/linux/debugfs.h
270
umode_t mode, struct dentry *parent,
include/linux/debugfs.h
277
static inline struct dentry *debugfs_create_file(const char *name, umode_t mode,
include/linux/debugfs.h
278
struct dentry *parent, void *data,
include/linux/debugfs.h
284
static inline struct dentry *debugfs_create_file_unsafe(const char *name,
include/linux/debugfs.h
285
umode_t mode, struct dentry *parent,
include/linux/debugfs.h
293
struct dentry *parent, void *data,
include/linux/debugfs.h
298
static inline struct dentry *debugfs_create_dir(const char *name,
include/linux/debugfs.h
299
struct dentry *parent)
include/linux/debugfs.h
304
static inline struct dentry *debugfs_create_symlink(const char *name,
include/linux/debugfs.h
305
struct dentry *parent,
include/linux/debugfs.h
311
static inline struct dentry *debugfs_create_automount(const char *name,
include/linux/debugfs.h
312
struct dentry *parent,
include/linux/debugfs.h
319
static inline void debugfs_remove(struct dentry *dentry)
include/linux/debugfs.h
322
static inline void debugfs_remove_recursive(struct dentry *dentry)
include/linux/debugfs.h
326
struct dentry *parent)
include/linux/debugfs.h
331
static inline int debugfs_file_get(struct dentry *dentry)
include/linux/debugfs.h
336
static inline void debugfs_file_put(struct dentry *dentry)
include/linux/debugfs.h
359
static inline int __printf(2, 3) debugfs_change_name(struct dentry *dentry,
include/linux/debugfs.h
366
struct dentry *parent, u8 *value) { }
include/linux/debugfs.h
369
struct dentry *parent, u16 *value) { }
include/linux/debugfs.h
372
struct dentry *parent, u32 *value) { }
include/linux/debugfs.h
375
struct dentry *parent, u64 *value) { }
include/linux/debugfs.h
378
struct dentry *parent,
include/linux/debugfs.h
382
struct dentry *parent, u8 *value) { }
include/linux/debugfs.h
385
struct dentry *parent, u16 *value) { }
include/linux/debugfs.h
388
struct dentry *parent, u32 *value) { }
include/linux/debugfs.h
391
struct dentry *parent, u64 *value) { }
include/linux/debugfs.h
394
struct dentry *parent, size_t *value)
include/linux/debugfs.h
398
struct dentry *parent,
include/linux/debugfs.h
403
struct dentry *parent, bool *value) { }
include/linux/debugfs.h
406
struct dentry *parent,
include/linux/debugfs.h
410
static inline struct dentry *debugfs_create_blob(const char *name, umode_t mode,
include/linux/debugfs.h
411
struct dentry *parent,
include/linux/debugfs.h
418
struct dentry *parent,
include/linux/debugfs.h
434
struct dentry *parent,
include/linux/debugfs.h
441
struct dentry *parent,
include/linux/debugfs.h
46
extern struct dentry *arch_debugfs_dir;
include/linux/debugfs.h
487
struct dentry *parent,
include/linux/debugfs.h
78
struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
include/linux/debugfs.h
80
struct dentry *debugfs_create_file_full(const char *name, umode_t mode,
include/linux/debugfs.h
81
struct dentry *parent, void *data,
include/linux/debugfs.h
84
struct dentry *debugfs_create_file_short(const char *name, umode_t mode,
include/linux/debugfs.h
85
struct dentry *parent, void *data,
include/linux/devpts_fs.h
27
struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
include/linux/devpts_fs.h
29
void *devpts_get_priv(struct dentry *);
include/linux/devpts_fs.h
31
void devpts_pty_kill(struct dentry *);
include/linux/dmaengine.h
959
struct dentry *dbg_dev_root;
include/linux/edac.h
608
struct dentry *debugfs;
include/linux/evm.h
17
extern enum integrity_status evm_verifyxattr(struct dentry *dentry,
include/linux/evm.h
26
extern int evm_read_protected_xattrs(struct dentry *dentry, u8 *buffer,
include/linux/evm.h
47
static inline enum integrity_status evm_verifyxattr(struct dentry *dentry,
include/linux/evm.h
74
static inline int evm_read_protected_xattrs(struct dentry *dentry, u8 *buffer,
include/linux/exportfs.h
284
struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid,
include/linux/exportfs.h
286
struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid,
include/linux/exportfs.h
288
int (*get_name)(struct dentry *parent, char *name,
include/linux/exportfs.h
289
struct dentry *child);
include/linux/exportfs.h
290
struct dentry * (*get_parent)(struct dentry *child);
include/linux/exportfs.h
328
extern int exportfs_encode_fh(struct dentry *dentry, struct fid *fid,
include/linux/exportfs.h
385
extern struct dentry *exportfs_decode_fh_raw(struct vfsmount *mnt,
include/linux/exportfs.h
389
int (*acceptable)(void *, struct dentry *),
include/linux/exportfs.h
391
extern struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid,
include/linux/exportfs.h
392
int fh_len, int fileid_type, int (*acceptable)(void *, struct dentry *),
include/linux/exportfs.h
400
struct dentry *generic_fh_to_dentry(struct super_block *sb,
include/linux/exportfs.h
403
struct dentry *generic_fh_to_parent(struct super_block *sb,
include/linux/exportfs.h
8
struct dentry;
include/linux/f2fs_fs.h
618
struct f2fs_dir_entry dentry[NR_DENTRY_IN_BLOCK];
include/linux/fault-inject.h
40
struct dentry *dname;
include/linux/fault-inject.h
8
struct dentry;
include/linux/fault-inject.h
82
struct dentry *fault_create_debugfs_attr(const char *name,
include/linux/fault-inject.h
83
struct dentry *parent, struct fault_attr *attr);
include/linux/fault-inject.h
87
static inline struct dentry *fault_create_debugfs_attr(const char *name,
include/linux/fault-inject.h
88
struct dentry *parent, struct fault_attr *attr)
include/linux/fdtable.h
61
struct dentry;
include/linux/file.h
23
struct dentry;
include/linux/fileattr.h
75
int vfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
include/linux/fileattr.h
76
int vfs_fileattr_set(struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/firmware/cirrus/cs_dsp.h
190
struct dentry *debugfs_root;
include/linux/firmware/cirrus/cs_dsp.h
243
void cs_dsp_init_debugfs(struct cs_dsp *dsp, struct dentry *debugfs_root);
include/linux/fs.h
1363
static inline struct dentry *file_dentry(const struct file *file)
include/linux/fs.h
1365
struct dentry *dentry = file->f_path.dentry;
include/linux/fs.h
1367
WARN_ON_ONCE(d_inode(dentry) != file_inode(file));
include/linux/fs.h
1368
return dentry;
include/linux/fs.h
1768
int vfs_create(struct mnt_idmap *, struct dentry *, umode_t,
include/linux/fs.h
1770
struct dentry *vfs_mkdir(struct mnt_idmap *, struct inode *,
include/linux/fs.h
1771
struct dentry *, umode_t, struct delegated_inode *);
include/linux/fs.h
1772
int vfs_mknod(struct mnt_idmap *, struct inode *, struct dentry *,
include/linux/fs.h
1775
struct dentry *, const char *, struct delegated_inode *);
include/linux/fs.h
1776
int vfs_link(struct dentry *, struct mnt_idmap *, struct inode *,
include/linux/fs.h
1777
struct dentry *, struct delegated_inode *);
include/linux/fs.h
1778
int vfs_rmdir(struct mnt_idmap *, struct inode *, struct dentry *,
include/linux/fs.h
1780
int vfs_unlink(struct mnt_idmap *, struct inode *, struct dentry *,
include/linux/fs.h
1795
struct dentry *old_parent;
include/linux/fs.h
1796
struct dentry *old_dentry;
include/linux/fs.h
1797
struct dentry *new_parent;
include/linux/fs.h
1798
struct dentry *new_dentry;
include/linux/fs.h
1806
struct inode *dir, struct dentry *dentry)
include/linux/fs.h
1808
return vfs_mknod(idmap, dir, dentry, S_IFCHR | WHITEOUT_MODE,
include/linux/fs.h
1819
int vfs_mkobj(struct dentry *, umode_t,
include/linux/fs.h
1820
int (*f)(struct dentry *, umode_t, void *),
include/linux/fs.h
2002
struct dentry * (*lookup) (struct inode *,struct dentry *, unsigned int);
include/linux/fs.h
2003
const char * (*get_link) (struct dentry *, struct inode *, struct delayed_call *);
include/linux/fs.h
2007
int (*readlink) (struct dentry *, char __user *,int);
include/linux/fs.h
2009
int (*create) (struct mnt_idmap *, struct inode *,struct dentry *,
include/linux/fs.h
2011
int (*link) (struct dentry *,struct inode *,struct dentry *);
include/linux/fs.h
2012
int (*unlink) (struct inode *,struct dentry *);
include/linux/fs.h
2013
int (*symlink) (struct mnt_idmap *, struct inode *,struct dentry *,
include/linux/fs.h
2015
struct dentry *(*mkdir) (struct mnt_idmap *, struct inode *,
include/linux/fs.h
2016
struct dentry *, umode_t);
include/linux/fs.h
2017
int (*rmdir) (struct inode *,struct dentry *);
include/linux/fs.h
2018
int (*mknod) (struct mnt_idmap *, struct inode *,struct dentry *,
include/linux/fs.h
2020
int (*rename) (struct mnt_idmap *, struct inode *, struct dentry *,
include/linux/fs.h
2021
struct inode *, struct dentry *, unsigned int);
include/linux/fs.h
2022
int (*setattr) (struct mnt_idmap *, struct dentry *, struct iattr *);
include/linux/fs.h
2025
ssize_t (*listxattr) (struct dentry *, char *, size_t);
include/linux/fs.h
2031
int (*atomic_open)(struct inode *, struct dentry *,
include/linux/fs.h
2036
struct posix_acl *(*get_acl)(struct mnt_idmap *, struct dentry *,
include/linux/fs.h
2038
int (*set_acl)(struct mnt_idmap *, struct dentry *,
include/linux/fs.h
2041
struct dentry *dentry, struct file_kattr *fa);
include/linux/fs.h
2042
int (*fileattr_get)(struct dentry *dentry, struct file_kattr *fa);
include/linux/fs.h
2315
extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
include/linux/fs.h
2454
int do_truncate(struct mnt_idmap *, struct dentry *, loff_t start,
include/linux/fs.h
2467
return file_open_root(&(struct path){.mnt = mnt, .dentry = mnt->mnt_root},
include/linux/fs.h
2498
return d_inode(backing_file_user_path(f)->dentry);
include/linux/fs.h
2546
extern int finish_open(struct file *file, struct dentry *dentry,
include/linux/fs.h
2548
extern int finish_no_open(struct file *file, struct dentry *dentry);
include/linux/fs.h
2556
return finish_open(file, file->f_path.dentry, NULL);
include/linux/fs.h
2667
int notify_change(struct mnt_idmap *, struct dentry *,
include/linux/fs.h
2679
d_inode(path->dentry), mask);
include/linux/fs.h
2685
struct dentry *victim, bool isdir);
include/linux/fs.h
2687
struct inode *dir, struct dentry *child);
include/linux/fs.h
2869
extern bool is_subdir(struct dentry *, struct dentry *);
include/linux/fs.h
3156
extern int page_readlink(struct dentry *, char __user *, int);
include/linux/fs.h
3157
extern const char *page_get_link_raw(struct dentry *, struct inode *,
include/linux/fs.h
3159
extern const char *page_get_link(struct dentry *, struct inode *,
include/linux/fs.h
3184
const char *simple_get_link(struct dentry *, struct inode *,
include/linux/fs.h
3203
extern const char *vfs_get_link(struct dentry *, struct delayed_call *);
include/linux/fs.h
3204
extern int vfs_readlink(struct dentry *, char __user *, int);
include/linux/fs.h
3217
void end_dirop(struct dentry *de);
include/linux/fs.h
3223
extern int simple_setattr(struct mnt_idmap *, struct dentry *,
include/linux/fs.h
3227
extern int simple_statfs(struct dentry *, struct kstatfs *);
include/linux/fs.h
3229
extern int simple_link(struct dentry *, struct inode *, struct dentry *);
include/linux/fs.h
3230
extern int simple_unlink(struct inode *, struct dentry *);
include/linux/fs.h
3231
extern int simple_rmdir(struct inode *, struct dentry *);
include/linux/fs.h
3232
extern void __simple_unlink(struct inode *, struct dentry *);
include/linux/fs.h
3233
extern void __simple_rmdir(struct inode *, struct dentry *);
include/linux/fs.h
3234
void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry,
include/linux/fs.h
3235
struct inode *new_dir, struct dentry *new_dentry);
include/linux/fs.h
3236
extern int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
include/linux/fs.h
3237
struct inode *new_dir, struct dentry *new_dentry);
include/linux/fs.h
3239
struct dentry *, struct inode *, struct dentry *,
include/linux/fs.h
3241
extern void simple_recursive_removal(struct dentry *,
include/linux/fs.h
3242
void (*callback)(struct dentry *));
include/linux/fs.h
3243
extern void simple_remove_by_name(struct dentry *, const char *,
include/linux/fs.h
3244
void (*callback)(struct dentry *));
include/linux/fs.h
3245
extern void locked_recursive_removal(struct dentry *,
include/linux/fs.h
3246
void (*callback)(struct dentry *));
include/linux/fs.h
3249
extern int simple_empty(struct dentry *);
include/linux/fs.h
3255
extern int always_delete_dentry(const struct dentry *);
include/linux/fs.h
3260
extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags);
include/linux/fs.h
3267
struct dentry *d_alloc_name(struct dentry *, const char *);
include/linux/fs.h
3272
struct dentry *simple_start_creating(struct dentry *, const char *);
include/linux/fs.h
3273
void simple_done_creating(struct dentry *);
include/linux/fs.h
3286
int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry);
include/linux/fs.h
3287
void simple_offset_remove(struct offset_ctx *octx, struct dentry *dentry);
include/linux/fs.h
3288
void simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry,
include/linux/fs.h
3289
struct inode *new_dir, struct dentry *new_dentry);
include/linux/fs.h
3291
struct dentry *old_dentry,
include/linux/fs.h
3293
struct dentry *new_dentry);
include/linux/fs.h
3310
int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str);
include/linux/fs.h
3311
int generic_ci_d_compare(const struct dentry *dentry, unsigned int len,
include/linux/fs.h
3361
int setattr_prepare(struct mnt_idmap *, struct dentry *, struct iattr *);
include/linux/fs.h
3571
file->f_path.dentry->d_inode->i_ino, DT_DIR);
include/linux/fs.h
3576
d_parent_ino(file->f_path.dentry), DT_DIR);
include/linux/fs/super_types.h
102
int (*show_options)(struct seq_file *seq, struct dentry *dentry);
include/linux/fs/super_types.h
103
int (*show_devname)(struct seq_file *seq, struct dentry *dentry);
include/linux/fs/super_types.h
104
int (*show_path)(struct seq_file *seq, struct dentry *dentry);
include/linux/fs/super_types.h
105
int (*show_stats)(struct seq_file *seq, struct dentry *dentry);
include/linux/fs/super_types.h
146
struct dentry *s_root;
include/linux/fs/super_types.h
19
struct dentry;
include/linux/fs/super_types.h
99
int (*statfs)(struct dentry *dentry, struct kstatfs *kstatfs);
include/linux/fs_context.h
129
extern struct fs_context *fs_context_for_reconfigure(struct dentry *dentry,
include/linux/fs_context.h
133
struct dentry *reference);
include/linux/fs_context.h
18
struct dentry;
include/linux/fs_context.h
96
struct dentry *root; /* The root and superblock */
include/linux/fscrypt.h
1021
struct dentry *old_dentry,
include/linux/fscrypt.h
1023
struct dentry *new_dentry,
include/linux/fscrypt.h
1056
struct dentry *dentry,
include/linux/fscrypt.h
1060
return __fscrypt_prepare_lookup(dir, dentry, fname);
include/linux/fscrypt.h
1063
fname->usr_fname = &dentry->d_name;
include/linux/fscrypt.h
1064
fname->disk_name.name = (unsigned char *)dentry->d_name.name;
include/linux/fscrypt.h
1065
fname->disk_name.len = dentry->d_name.len;
include/linux/fscrypt.h
1067
fscrypt_prepare_dentry(dentry, false);
include/linux/fscrypt.h
1110
static inline int fscrypt_prepare_setattr(struct dentry *dentry,
include/linux/fscrypt.h
1113
if (IS_ENCRYPTED(d_inode(dentry)))
include/linux/fscrypt.h
1114
return __fscrypt_prepare_setattr(dentry, attr);
include/linux/fscrypt.h
202
struct dentry *dentry, unsigned int flags);
include/linux/fscrypt.h
268
static inline void fscrypt_handle_d_move(struct dentry *dentry)
include/linux/fscrypt.h
274
if (dentry->d_flags & DCACHE_NOKEY_NAME) {
include/linux/fscrypt.h
275
dentry->d_flags &= ~DCACHE_NOKEY_NAME;
include/linux/fscrypt.h
281
if (dentry->d_op->d_revalidate == fscrypt_d_revalidate)
include/linux/fscrypt.h
282
dentry->d_flags &= ~DCACHE_OP_REVALIDATE;
include/linux/fscrypt.h
310
static inline bool fscrypt_is_nokey_name(const struct dentry *dentry)
include/linux/fscrypt.h
312
return dentry->d_flags & DCACHE_NOKEY_NAME;
include/linux/fscrypt.h
315
static inline void fscrypt_prepare_dentry(struct dentry *dentry,
include/linux/fscrypt.h
327
spin_lock(&dentry->d_lock);
include/linux/fscrypt.h
328
dentry->d_flags |= DCACHE_NOKEY_NAME;
include/linux/fscrypt.h
329
spin_unlock(&dentry->d_lock);
include/linux/fscrypt.h
330
} else if (dentry->d_flags & DCACHE_OP_REVALIDATE &&
include/linux/fscrypt.h
331
dentry->d_op->d_revalidate == fscrypt_d_revalidate) {
include/linux/fscrypt.h
338
spin_lock(&dentry->d_lock);
include/linux/fscrypt.h
339
dentry->d_flags &= ~DCACHE_OP_REVALIDATE;
include/linux/fscrypt.h
340
spin_unlock(&dentry->d_lock);
include/linux/fscrypt.h
459
struct dentry *dentry);
include/linux/fscrypt.h
460
int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
include/linux/fscrypt.h
461
struct inode *new_dir, struct dentry *new_dentry,
include/linux/fscrypt.h
463
int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry,
include/linux/fscrypt.h
465
int fscrypt_prepare_lookup_partial(struct inode *dir, struct dentry *dentry);
include/linux/fscrypt.h
467
int __fscrypt_prepare_setattr(struct dentry *dentry, struct iattr *attr);
include/linux/fscrypt.h
497
static inline void fscrypt_handle_d_move(struct dentry *dentry)
include/linux/fscrypt.h
501
static inline bool fscrypt_is_nokey_name(const struct dentry *dentry)
include/linux/fscrypt.h
506
static inline void fscrypt_prepare_dentry(struct dentry *dentry,
include/linux/fscrypt.h
747
struct dentry *dentry, unsigned int flags)
include/linux/fscrypt.h
774
struct dentry *dentry)
include/linux/fscrypt.h
780
struct dentry *old_dentry,
include/linux/fscrypt.h
782
struct dentry *new_dentry,
include/linux/fscrypt.h
789
struct dentry *dentry,
include/linux/fscrypt.h
796
struct dentry *dentry)
include/linux/fscrypt.h
806
static inline int __fscrypt_prepare_setattr(struct dentry *dentry,
include/linux/fscrypt.h
989
static inline int fscrypt_prepare_link(struct dentry *old_dentry,
include/linux/fscrypt.h
991
struct dentry *dentry)
include/linux/fscrypt.h
994
return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry);
include/linux/fsnotify.h
106
static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask)
include/linux/fsnotify.h
108
fsnotify_parent(dentry, mask, dentry, FSNOTIFY_EVENT_DENTRY);
include/linux/fsnotify.h
113
return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH);
include/linux/fsnotify.h
191
struct inode *inode = d_inode(path->dentry);
include/linux/fsnotify.h
252
struct dentry *moved)
include/linux/fsnotify.h
319
static inline void fsnotify_create(struct inode *dir, struct dentry *dentry)
include/linux/fsnotify.h
321
audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE);
include/linux/fsnotify.h
323
fsnotify_dirent(dir, dentry, FS_CREATE);
include/linux/fsnotify.h
334
struct dentry *new_dentry)
include/linux/fsnotify.h
352
struct dentry *dentry)
include/linux/fsnotify.h
359
fsnotify_name(mask, inode, FSNOTIFY_EVENT_INODE, dir, &dentry->d_name,
include/linux/fsnotify.h
370
static inline void d_delete_notify(struct inode *dir, struct dentry *dentry)
include/linux/fsnotify.h
372
struct inode *inode = d_inode(dentry);
include/linux/fsnotify.h
375
d_delete(dentry);
include/linux/fsnotify.h
376
fsnotify_delete(dir, inode, dentry);
include/linux/fsnotify.h
385
static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry)
include/linux/fsnotify.h
387
if (WARN_ON_ONCE(d_is_negative(dentry)))
include/linux/fsnotify.h
390
fsnotify_delete(dir, d_inode(dentry), dentry);
include/linux/fsnotify.h
400
static inline void fsnotify_mkdir(struct inode *dir, struct dentry *dentry)
include/linux/fsnotify.h
402
audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE);
include/linux/fsnotify.h
404
fsnotify_dirent(dir, dentry, FS_CREATE | FS_ISDIR);
include/linux/fsnotify.h
412
static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry)
include/linux/fsnotify.h
414
if (WARN_ON_ONCE(d_is_negative(dentry)))
include/linux/fsnotify.h
417
fsnotify_delete(dir, d_inode(dentry), dentry);
include/linux/fsnotify.h
463
static inline void fsnotify_xattr(struct dentry *dentry)
include/linux/fsnotify.h
465
fsnotify_dentry(dentry, FS_ATTRIB);
include/linux/fsnotify.h
472
static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)
include/linux/fsnotify.h
495
fsnotify_dentry(dentry, mask);
include/linux/fsnotify.h
58
static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry,
include/linux/fsnotify.h
61
fsnotify_name(mask, dentry, FSNOTIFY_EVENT_DENTRY, dir, &dentry->d_name, 0);
include/linux/fsnotify.h
76
static inline int fsnotify_parent(struct dentry *dentry, __u32 mask,
include/linux/fsnotify.h
79
struct inode *inode = d_inode(dentry);
include/linux/fsnotify.h
88
if (!(dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED))
include/linux/fsnotify.h
93
if (IS_ROOT(dentry))
include/linux/fsnotify.h
96
return __fsnotify_parent(dentry, mask, data, data_type);
include/linux/fsnotify_backend.h
346
return d_inode(((const struct path *)data)->dentry);
include/linux/fsnotify_backend.h
348
return d_inode(file_range_path(data)->dentry);
include/linux/fsnotify_backend.h
356
static inline struct dentry *fsnotify_data_dentry(const void *data, int data_type)
include/linux/fsnotify_backend.h
361
return (struct dentry *)data;
include/linux/fsnotify_backend.h
363
return ((const struct path *)data)->dentry;
include/linux/fsnotify_backend.h
365
return file_range_path(data)->dentry;
include/linux/fsnotify_backend.h
391
return ((struct dentry *)data)->d_sb;
include/linux/fsnotify_backend.h
393
return ((const struct path *)data)->dentry->d_sb;
include/linux/fsnotify_backend.h
395
return file_range_path(data)->dentry->d_sb;
include/linux/fsnotify_backend.h
651
extern int __fsnotify_parent(struct dentry *dentry, __u32 mask, const void *data,
include/linux/fsnotify_backend.h
690
static inline void fsnotify_update_flags(struct dentry *dentry)
include/linux/fsnotify_backend.h
692
assert_spin_locked(&dentry->d_lock);
include/linux/fsnotify_backend.h
701
if (fsnotify_inode_watches_children(dentry->d_parent->d_inode))
include/linux/fsnotify_backend.h
702
dentry->d_flags |= DCACHE_FSNOTIFY_PARENT_WATCHED;
include/linux/fsnotify_backend.h
704
dentry->d_flags &= ~DCACHE_FSNOTIFY_PARENT_WATCHED;
include/linux/fsnotify_backend.h
943
static inline int __fsnotify_parent(struct dentry *dentry, __u32 mask,
include/linux/fsnotify_backend.h
964
static inline void fsnotify_update_flags(struct dentry *dentry)
include/linux/greybus.h
105
struct dentry *gb_debugfs_get(void);
include/linux/greybus/svc.h
57
struct dentry *debugfs_dentry;
include/linux/hid.h
717
struct dentry *debug_dir;
include/linux/hid.h
718
struct dentry *debug_rdesc;
include/linux/hid.h
719
struct dentry *debug_events;
include/linux/hisi_acc_qm.h
206
struct dentry *debug_root;
include/linux/hisi_acc_qm.h
207
struct dentry *qm_d;
include/linux/hyperv.h
1287
struct dentry *debug_dir;
include/linux/i2c.h
355
struct dentry *debugfs; /* per-client debugfs dir */
include/linux/i2c.h
764
struct dentry *debugfs;
include/linux/iio/iio-opaque.h
74
struct dentry *debugfs_dentry;
include/linux/iio/iio.h
968
struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev);
include/linux/iio/iio.h
970
static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev)
include/linux/intel_tpmi.h
36
struct dentry *tpmi_get_debugfs_dir(struct auxiliary_device *auxdev);
include/linux/iommu.h
1568
extern struct dentry *iommu_debugfs_dir;
include/linux/irqdesc.h
119
struct dentry *debugfs_file;
include/linux/kernfs.h
24
struct dentry;
include/linux/kernfs.h
415
struct kernfs_node *kernfs_node_from_dentry(struct dentry *dentry);
include/linux/kernfs.h
419
struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
include/linux/kernfs.h
507
static inline struct kernfs_node *kernfs_node_from_dentry(struct dentry *dentry)
include/linux/kvm_host.h
1624
void kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry);
include/linux/kvm_host.h
858
struct dentry *debugfs_dentry;
include/linux/lockd/lockd.h
325
return exportfs_cannot_lock(nlmsvc_file_file(file)->f_path.dentry->d_sb->s_export_op);
include/linux/lsm_audit.h
83
struct dentry *dentry;
include/linux/lsm_hook_defs.h
100
LSM_HOOK(int, 0, path_symlink, const struct path *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
102
LSM_HOOK(int, 0, path_link, struct dentry *old_dentry,
include/linux/lsm_hook_defs.h
103
const struct path *new_dir, struct dentry *new_dentry)
include/linux/lsm_hook_defs.h
105
struct dentry *old_dentry, const struct path *new_dir,
include/linux/lsm_hook_defs.h
106
struct dentry *new_dentry, unsigned int flags)
include/linux/lsm_hook_defs.h
123
LSM_HOOK(int, 0, inode_create, struct inode *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
127
LSM_HOOK(int, 0, inode_link, struct dentry *old_dentry, struct inode *dir,
include/linux/lsm_hook_defs.h
128
struct dentry *new_dentry)
include/linux/lsm_hook_defs.h
129
LSM_HOOK(int, 0, inode_unlink, struct inode *dir, struct dentry *dentry)
include/linux/lsm_hook_defs.h
130
LSM_HOOK(int, 0, inode_symlink, struct inode *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
132
LSM_HOOK(int, 0, inode_mkdir, struct inode *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
134
LSM_HOOK(int, 0, inode_rmdir, struct inode *dir, struct dentry *dentry)
include/linux/lsm_hook_defs.h
135
LSM_HOOK(int, 0, inode_mknod, struct inode *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
137
LSM_HOOK(int, 0, inode_rename, struct inode *old_dir, struct dentry *old_dentry,
include/linux/lsm_hook_defs.h
138
struct inode *new_dir, struct dentry *new_dentry)
include/linux/lsm_hook_defs.h
139
LSM_HOOK(int, 0, inode_readlink, struct dentry *dentry)
include/linux/lsm_hook_defs.h
140
LSM_HOOK(int, 0, inode_follow_link, struct dentry *dentry, struct inode *inode,
include/linux/lsm_hook_defs.h
143
LSM_HOOK(int, 0, inode_setattr, struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/lsm_hook_defs.h
146
struct dentry *dentry, int ia_valid)
include/linux/lsm_hook_defs.h
150
struct dentry *dentry, const char *name, const void *value,
include/linux/lsm_hook_defs.h
152
LSM_HOOK(void, LSM_RET_VOID, inode_post_setxattr, struct dentry *dentry,
include/linux/lsm_hook_defs.h
154
LSM_HOOK(int, 0, inode_getxattr, struct dentry *dentry, const char *name)
include/linux/lsm_hook_defs.h
155
LSM_HOOK(int, 0, inode_listxattr, struct dentry *dentry)
include/linux/lsm_hook_defs.h
157
struct dentry *dentry, const char *name)
include/linux/lsm_hook_defs.h
158
LSM_HOOK(void, LSM_RET_VOID, inode_post_removexattr, struct dentry *dentry,
include/linux/lsm_hook_defs.h
160
LSM_HOOK(int, 0, inode_file_setattr, struct dentry *dentry, struct file_kattr *fa)
include/linux/lsm_hook_defs.h
161
LSM_HOOK(int, 0, inode_file_getattr, struct dentry *dentry, struct file_kattr *fa)
include/linux/lsm_hook_defs.h
163
struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)
include/linux/lsm_hook_defs.h
164
LSM_HOOK(void, LSM_RET_VOID, inode_post_set_acl, struct dentry *dentry,
include/linux/lsm_hook_defs.h
167
struct dentry *dentry, const char *acl_name)
include/linux/lsm_hook_defs.h
169
struct dentry *dentry, const char *acl_name)
include/linux/lsm_hook_defs.h
171
struct dentry *dentry, const char *acl_name)
include/linux/lsm_hook_defs.h
172
LSM_HOOK(int, 0, inode_need_killpriv, struct dentry *dentry)
include/linux/lsm_hook_defs.h
174
struct dentry *dentry)
include/linux/lsm_hook_defs.h
183
LSM_HOOK(int, 0, inode_copy_up, struct dentry *src, struct cred **new)
include/linux/lsm_hook_defs.h
184
LSM_HOOK(int, -EOPNOTSUPP, inode_copy_up_xattr, struct dentry *src,
include/linux/lsm_hook_defs.h
290
LSM_HOOK(void, LSM_RET_VOID, d_instantiate, struct dentry *dentry,
include/linux/lsm_hook_defs.h
307
LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
include/linux/lsm_hook_defs.h
47
LSM_HOOK(int, 0, quota_on, struct dentry *dentry)
include/linux/lsm_hook_defs.h
71
LSM_HOOK(int, 0, sb_statfs, struct dentry *dentry)
include/linux/lsm_hook_defs.h
84
LSM_HOOK(int, -EOPNOTSUPP, dentry_init_security, struct dentry *dentry,
include/linux/lsm_hook_defs.h
87
LSM_HOOK(int, 0, dentry_create_files_as, struct dentry *dentry, int mode,
include/linux/lsm_hook_defs.h
91
LSM_HOOK(int, 0, path_unlink, const struct path *dir, struct dentry *dentry)
include/linux/lsm_hook_defs.h
92
LSM_HOOK(int, 0, path_mkdir, const struct path *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
94
LSM_HOOK(int, 0, path_rmdir, const struct path *dir, struct dentry *dentry)
include/linux/lsm_hook_defs.h
95
LSM_HOOK(int, 0, path_mknod, const struct path *dir, struct dentry *dentry,
include/linux/lsm_hook_defs.h
98
struct dentry *dentry)
include/linux/mhi.h
372
struct dentry *debugfs_dentry;
include/linux/mlx5/driver.h
1059
struct dentry *mlx5_debugfs_get_dev_root(struct mlx5_core_dev *dev);
include/linux/mlx5/driver.h
224
struct dentry *root;
include/linux/mlx5/driver.h
258
struct dentry *dbg_root;
include/linux/mlx5/driver.h
292
struct dentry *root;
include/linux/mlx5/driver.h
543
struct dentry *dbg_root;
include/linux/mlx5/driver.h
544
struct dentry *qp_debugfs;
include/linux/mlx5/driver.h
545
struct dentry *eq_debugfs;
include/linux/mlx5/driver.h
546
struct dentry *cq_debugfs;
include/linux/mlx5/driver.h
547
struct dentry *cmdif_debugfs;
include/linux/mlx5/driver.h
548
struct dentry *pages_debugfs;
include/linux/mlx5/driver.h
549
struct dentry *lag_debugfs;
include/linux/mlx5/driver.h
895
extern struct dentry *mlx5_debugfs_root;
include/linux/mmc/card.h
375
struct dentry *debugfs_root;
include/linux/mmc/host.h
547
struct dentry *debugfs_root;
include/linux/mount.h
17
struct dentry;
include/linux/mount.h
59
struct dentry *mnt_root; /* root of the mounted tree */
include/linux/moxtet.h
55
struct dentry *debugfs_root;
include/linux/mtd/mtd.h
197
struct dentry *dfs_dir;
include/linux/mtd/spi-nor.h
411
struct dentry *debugfs_root;
include/linux/namei.h
100
struct dentry *parent,
include/linux/namei.h
102
struct dentry *start_creating_noperm(struct dentry *parent, struct qstr *name);
include/linux/namei.h
103
struct dentry *start_removing_noperm(struct dentry *parent, struct qstr *name);
include/linux/namei.h
104
struct dentry *start_creating_dentry(struct dentry *parent,
include/linux/namei.h
105
struct dentry *child);
include/linux/namei.h
106
struct dentry *start_removing_dentry(struct dentry *parent,
include/linux/namei.h
107
struct dentry *child);
include/linux/namei.h
124
static inline void end_creating(struct dentry *child)
include/linux/namei.h
143
static inline struct dentry *end_creating_keep(struct dentry *child)
include/linux/namei.h
162
static inline void end_removing(struct dentry *child)
include/linux/namei.h
171
extern struct dentry *lock_rename(struct dentry *, struct dentry *);
include/linux/namei.h
172
extern struct dentry *lock_rename_child(struct dentry *, struct dentry *);
include/linux/namei.h
173
extern void unlock_rename(struct dentry *, struct dentry *);
include/linux/namei.h
177
struct dentry *old_dentry, struct qstr *new_last);
include/linux/namei.h
179
struct dentry *old_dentry, struct dentry *new_dentry);
include/linux/namei.h
57
struct dentry *lookup_one_qstr_excl(const struct qstr *name,
include/linux/namei.h
58
struct dentry *base,
include/linux/namei.h
61
struct dentry *kern_path_parent(const char *name, struct path *parent);
include/linux/namei.h
63
extern struct dentry *start_creating_path(int, const char *, struct path *, unsigned int);
include/linux/namei.h
64
extern struct dentry *start_creating_user_path(int, const char __user *, struct path *, unsigned int);
include/linux/namei.h
65
extern void end_creating_path(const struct path *, struct dentry *);
include/linux/namei.h
66
extern struct dentry *start_removing_path(const char *, struct path *);
include/linux/namei.h
67
extern struct dentry *start_removing_user_path_at(int , const char __user *, struct path *);
include/linux/namei.h
68
static inline void end_removing_path(const struct path *path , struct dentry *dentry)
include/linux/namei.h
70
end_creating_path(path, dentry);
include/linux/namei.h
75
int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *,
include/linux/namei.h
78
extern struct dentry *try_lookup_noperm(struct qstr *, struct dentry *);
include/linux/namei.h
79
extern struct dentry *lookup_noperm(struct qstr *, struct dentry *);
include/linux/namei.h
80
extern struct dentry *lookup_noperm_unlocked(struct qstr *, struct dentry *);
include/linux/namei.h
81
extern struct dentry *lookup_noperm_positive_unlocked(struct qstr *, struct dentry *);
include/linux/namei.h
82
struct dentry *lookup_one(struct mnt_idmap *, struct qstr *, struct dentry *);
include/linux/namei.h
83
struct dentry *lookup_one_unlocked(struct mnt_idmap *idmap,
include/linux/namei.h
84
struct qstr *name, struct dentry *base);
include/linux/namei.h
85
struct dentry *lookup_one_positive_unlocked(struct mnt_idmap *idmap,
include/linux/namei.h
87
struct dentry *base);
include/linux/namei.h
88
struct dentry *lookup_one_positive_killable(struct mnt_idmap *idmap,
include/linux/namei.h
90
struct dentry *base);
include/linux/namei.h
92
struct dentry *start_creating(struct mnt_idmap *idmap, struct dentry *parent,
include/linux/namei.h
94
struct dentry *start_removing(struct mnt_idmap *idmap, struct dentry *parent,
include/linux/namei.h
96
struct dentry *start_creating_killable(struct mnt_idmap *idmap,
include/linux/namei.h
97
struct dentry *parent,
include/linux/namei.h
99
struct dentry *start_removing_killable(struct mnt_idmap *idmap,
include/linux/net/intel/libie/fwlog.h
70
struct dentry *debugfs;
include/linux/net/intel/libie/fwlog.h
72
struct dentry **debugfs_modules;
include/linux/net/intel/libie/fwlog.h
77
struct dentry *debugfs_root;
include/linux/nfs_fs.h
101
struct dentry *dentry;
include/linux/nfs_fs.h
463
extern int nfs_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
include/linux/nfs_fs.h
469
extern struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode, struct file *filp);
include/linux/nfs_fs.h
579
extern void nfs_set_verifier(struct dentry * dentry, unsigned long verf);
include/linux/nfs_fs.h
583
extern struct dentry *nfs_add_or_obtain(struct dentry *dentry,
include/linux/nfs_fs.h
585
extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh,
include/linux/nfs_fs.h
591
extern int nfs_atomic_open_v23(struct inode *dir, struct dentry *dentry,
include/linux/nfs_fs.h
622
extern void nfs_complete_unlink(struct dentry *dentry, struct inode *);
include/linux/nfs_xdr.h
1742
struct dentry *dentry;
include/linux/nfs_xdr.h
1755
struct dentry *old_dentry;
include/linux/nfs_xdr.h
1758
struct dentry *new_dentry;
include/linux/nfs_xdr.h
1791
int (*setattr) (struct dentry *, struct nfs_fattr *,
include/linux/nfs_xdr.h
1793
int (*lookup) (struct inode *, struct dentry *, const struct qstr *,
include/linux/nfs_xdr.h
1800
int (*create) (struct inode *, struct dentry *,
include/linux/nfs_xdr.h
1802
int (*remove) (struct inode *, struct dentry *);
include/linux/nfs_xdr.h
1803
void (*unlink_setup) (struct rpc_message *, struct dentry *, struct inode *);
include/linux/nfs_xdr.h
1807
struct dentry *old_dentry,
include/linux/nfs_xdr.h
1808
struct dentry *new_dentry,
include/linux/nfs_xdr.h
1813
int (*symlink) (struct inode *, struct dentry *, struct folio *,
include/linux/nfs_xdr.h
1815
struct dentry *(*mkdir) (struct inode *, struct dentry *, struct iattr *);
include/linux/nfs_xdr.h
1818
int (*mknod) (struct inode *, struct dentry *, struct iattr *,
include/linux/nfs_xdr.h
787
struct dentry *dentry;
include/linux/ns/ns_common_types.h
115
struct dentry *stashed;
include/linux/ns/ns_common_types.h
12
struct dentry;
include/linux/pagemap.h
126
return errseq_sample(&file->f_path.dentry->d_sb->s_wb_err);
include/linux/path.h
10
struct dentry *dentry;
include/linux/path.h
18
return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
include/linux/path.h
5
struct dentry;
include/linux/pci.h
1971
struct dentry *debugfs;
include/linux/phy/phy.h
185
struct dentry *debugfs;
include/linux/pid.h
65
struct dentry *stashed;
include/linux/posix_acl.h
108
int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/posix_acl.h
111
struct dentry *dentry, const char *acl_name);
include/linux/posix_acl.h
112
int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/posix_acl.h
118
struct dentry *dentry, umode_t mode)
include/linux/posix_acl.h
145
struct dentry *dentry, const char *name,
include/linux/posix_acl.h
152
struct dentry *dentry,
include/linux/posix_acl.h
159
struct dentry *dentry, const char *acl_name)
include/linux/posix_acl.h
77
int set_posix_acl(struct mnt_idmap *, struct dentry *, int,
include/linux/posix_acl.h
84
int posix_acl_chmod(struct mnt_idmap *, struct dentry *, umode_t);
include/linux/posix_acl.h
90
int simple_set_acl(struct mnt_idmap *, struct dentry *,
include/linux/power/smartreflex.h
156
struct dentry *dbg_dir;
include/linux/raspberrypi/vchiq_debugfs.h
11
struct dentry *dentry;
include/linux/regulator/driver.h
653
struct dentry *debugfs;
include/linux/relay.h
144
struct dentry *(*create_buf_file)(const char *filename,
include/linux/relay.h
145
struct dentry *parent,
include/linux/relay.h
162
int (*remove_buf_file)(struct dentry *dentry);
include/linux/relay.h
170
struct dentry *parent,
include/linux/relay.h
60
struct dentry *dentry; /* channel file dentry */
include/linux/relay.h
87
struct dentry *parent; /* parent dentry passed to open */
include/linux/remoteproc.h
561
struct dentry *dbg_dir;
include/linux/resctrl.h
111
struct dentry *debugfs_dir;
include/linux/rv.h
113
struct dentry *root_d;
include/linux/security.h
1001
struct dentry *dentry,
include/linux/security.h
1008
static inline void security_inode_post_set_acl(struct dentry *dentry,
include/linux/security.h
1014
struct dentry *dentry,
include/linux/security.h
1021
struct dentry *dentry,
include/linux/security.h
1028
struct dentry *dentry,
include/linux/security.h
1032
static inline void security_inode_post_setxattr(struct dentry *dentry,
include/linux/security.h
1036
static inline int security_inode_getxattr(struct dentry *dentry,
include/linux/security.h
1042
static inline int security_inode_listxattr(struct dentry *dentry)
include/linux/security.h
1048
struct dentry *dentry,
include/linux/security.h
1051
return cap_inode_removexattr(idmap, dentry, name);
include/linux/security.h
1054
static inline void security_inode_post_removexattr(struct dentry *dentry,
include/linux/security.h
1058
static inline int security_inode_file_setattr(struct dentry *dentry,
include/linux/security.h
1064
static inline int security_inode_file_getattr(struct dentry *dentry,
include/linux/security.h
1070
static inline int security_inode_need_killpriv(struct dentry *dentry)
include/linux/security.h
1072
return cap_inode_need_killpriv(dentry);
include/linux/security.h
1076
struct dentry *dentry)
include/linux/security.h
1078
return cap_inode_killpriv(idmap, dentry);
include/linux/security.h
1105
static inline int security_inode_copy_up(struct dentry *src, struct cred **new)
include/linux/security.h
1123
static inline int security_inode_copy_up_xattr(struct dentry *src, const char *name)
include/linux/security.h
1514
static inline void security_d_instantiate(struct dentry *dentry,
include/linux/security.h
1580
static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
include/linux/security.h
186
int cap_inode_setxattr(struct dentry *dentry, const char *name,
include/linux/security.h
189
struct dentry *dentry, const char *name);
include/linux/security.h
190
int cap_inode_need_killpriv(struct dentry *dentry);
include/linux/security.h
191
int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry);
include/linux/security.h
2049
int security_path_unlink(const struct path *dir, struct dentry *dentry);
include/linux/security.h
2050
int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode);
include/linux/security.h
2051
int security_path_rmdir(const struct path *dir, struct dentry *dentry);
include/linux/security.h
2052
int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode,
include/linux/security.h
2054
void security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry);
include/linux/security.h
2056
int security_path_symlink(const struct path *dir, struct dentry *dentry,
include/linux/security.h
2058
int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
include/linux/security.h
2059
struct dentry *new_dentry);
include/linux/security.h
2060
int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
include/linux/security.h
2061
const struct path *new_dir, struct dentry *new_dentry,
include/linux/security.h
2067
static inline int security_path_unlink(const struct path *dir, struct dentry *dentry)
include/linux/security.h
2072
static inline int security_path_mkdir(const struct path *dir, struct dentry *dentry,
include/linux/security.h
2078
static inline int security_path_rmdir(const struct path *dir, struct dentry *dentry)
include/linux/security.h
2083
static inline int security_path_mknod(const struct path *dir, struct dentry *dentry,
include/linux/security.h
2090
struct dentry *dentry)
include/linux/security.h
2098
static inline int security_path_symlink(const struct path *dir, struct dentry *dentry,
include/linux/security.h
2104
static inline int security_path_link(struct dentry *old_dentry,
include/linux/security.h
2106
struct dentry *new_dentry)
include/linux/security.h
2112
struct dentry *old_dentry,
include/linux/security.h
2114
struct dentry *new_dentry,
include/linux/security.h
2221
extern struct dentry *securityfs_create_file(const char *name, umode_t mode,
include/linux/security.h
2222
struct dentry *parent, void *data,
include/linux/security.h
2224
extern struct dentry *securityfs_create_dir(const char *name, struct dentry *parent);
include/linux/security.h
2225
struct dentry *securityfs_create_symlink(const char *name,
include/linux/security.h
2226
struct dentry *parent,
include/linux/security.h
2229
extern void securityfs_remove(struct dentry *dentry);
include/linux/security.h
2233
static inline struct dentry *securityfs_create_dir(const char *name,
include/linux/security.h
2234
struct dentry *parent)
include/linux/security.h
2239
static inline struct dentry *securityfs_create_file(const char *name,
include/linux/security.h
2241
struct dentry *parent,
include/linux/security.h
2248
static inline struct dentry *securityfs_create_symlink(const char *name,
include/linux/security.h
2249
struct dentry *parent,
include/linux/security.h
2256
static inline void securityfs_remove(struct dentry *dentry)
include/linux/security.h
354
int security_quota_on(struct dentry *dentry);
include/linux/security.h
375
int security_sb_statfs(struct dentry *dentry);
include/linux/security.h
389
int security_dentry_init_security(struct dentry *dentry, int mode,
include/linux/security.h
393
int security_dentry_create_files_as(struct dentry *dentry, int mode,
include/linux/security.h
407
int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode);
include/linux/security.h
410
int security_inode_link(struct dentry *old_dentry, struct inode *dir,
include/linux/security.h
411
struct dentry *new_dentry);
include/linux/security.h
412
int security_inode_unlink(struct inode *dir, struct dentry *dentry);
include/linux/security.h
413
int security_inode_symlink(struct inode *dir, struct dentry *dentry,
include/linux/security.h
415
int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
include/linux/security.h
416
int security_inode_rmdir(struct inode *dir, struct dentry *dentry);
include/linux/security.h
417
int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev);
include/linux/security.h
418
int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
include/linux/security.h
419
struct inode *new_dir, struct dentry *new_dentry,
include/linux/security.h
421
int security_inode_readlink(struct dentry *dentry);
include/linux/security.h
422
int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
include/linux/security.h
426
struct dentry *dentry, struct iattr *attr);
include/linux/security.h
427
void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/security.h
431
struct dentry *dentry, const char *name,
include/linux/security.h
434
struct dentry *dentry, const char *acl_name,
include/linux/security.h
436
void security_inode_post_set_acl(struct dentry *dentry, const char *acl_name,
include/linux/security.h
439
struct dentry *dentry, const char *acl_name);
include/linux/security.h
441
struct dentry *dentry, const char *acl_name);
include/linux/security.h
443
struct dentry *dentry,
include/linux/security.h
445
void security_inode_post_setxattr(struct dentry *dentry, const char *name,
include/linux/security.h
447
int security_inode_getxattr(struct dentry *dentry, const char *name);
include/linux/security.h
448
int security_inode_listxattr(struct dentry *dentry);
include/linux/security.h
450
struct dentry *dentry, const char *name);
include/linux/security.h
451
void security_inode_post_removexattr(struct dentry *dentry, const char *name);
include/linux/security.h
452
int security_inode_file_setattr(struct dentry *dentry,
include/linux/security.h
454
int security_inode_file_getattr(struct dentry *dentry,
include/linux/security.h
456
int security_inode_need_killpriv(struct dentry *dentry);
include/linux/security.h
457
int security_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry);
include/linux/security.h
464
int security_inode_copy_up(struct dentry *src, struct cred **new);
include/linux/security.h
465
int security_inode_copy_up_xattr(struct dentry *src, const char *name);
include/linux/security.h
51
struct dentry;
include/linux/security.h
560
void security_d_instantiate(struct dentry *dentry, struct inode *inode);
include/linux/security.h
576
int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen);
include/linux/security.h
704
static inline int security_quota_on(struct dentry *dentry)
include/linux/security.h
806
static inline int security_sb_statfs(struct dentry *dentry)
include/linux/security.h
865
static inline int security_dentry_init_security(struct dentry *dentry,
include/linux/security.h
874
static inline int security_dentry_create_files_as(struct dentry *dentry,
include/linux/security.h
900
struct dentry *dentry,
include/linux/security.h
910
static inline int security_inode_link(struct dentry *old_dentry,
include/linux/security.h
912
struct dentry *new_dentry)
include/linux/security.h
918
struct dentry *dentry)
include/linux/security.h
924
struct dentry *dentry,
include/linux/security.h
931
struct dentry *dentry,
include/linux/security.h
938
struct dentry *dentry)
include/linux/security.h
944
struct dentry *dentry,
include/linux/security.h
951
struct dentry *old_dentry,
include/linux/security.h
953
struct dentry *new_dentry,
include/linux/security.h
959
static inline int security_inode_readlink(struct dentry *dentry)
include/linux/security.h
964
static inline int security_inode_follow_link(struct dentry *dentry,
include/linux/security.h
977
struct dentry *dentry,
include/linux/security.h
984
security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/security.h
994
struct dentry *dentry, const char *name, const void *value,
include/linux/security.h
997
return cap_inode_setxattr(dentry, name, value, size, flags);
include/linux/seq_file.h
171
int seq_dentry(struct seq_file *, struct dentry *, const char *);
include/linux/shrinker.h
114
struct dentry *debugfs_entry;
include/linux/soundwire/sdw.h
1044
struct dentry *debugfs;
include/linux/soundwire/sdw.h
20
struct dentry;
include/linux/soundwire/sdw.h
674
struct dentry *debugfs;
include/linux/statfs.h
46
struct dentry;
include/linux/statfs.h
47
extern int vfs_get_fsid(struct dentry *dentry, __kernel_fsid_t *fsid);
include/linux/sunrpc/cache.h
123
struct dentry *pipefs;
include/linux/sunrpc/cache.h
241
extern int sunrpc_cache_register_pipefs(struct dentry *parent, const char *,
include/linux/sunrpc/clnt.h
85
struct dentry *cl_debugfs; /* debugfs directory */
include/linux/sunrpc/rpc_pipe_fs.h
101
extern int rpc_create_client_dir(struct dentry *, const char *, struct rpc_clnt *);
include/linux/sunrpc/rpc_pipe_fs.h
122
extern struct dentry *rpc_create_cache_dir(struct dentry *,
include/linux/sunrpc/rpc_pipe_fs.h
126
extern void rpc_remove_cache_dir(struct dentry *);
include/linux/sunrpc/rpc_pipe_fs.h
130
extern int rpc_mkpipe_dentry(struct dentry *, const char *, void *,
include/linux/sunrpc/rpc_pipe_fs.h
21
int (*create)(struct dentry *dir,
include/linux/sunrpc/rpc_pipe_fs.h
23
void (*destroy)(struct dentry *dir,
include/linux/sunrpc/rpc_pipe_fs.h
55
struct dentry *dentry;
include/linux/sunrpc/rpc_pipe_fs.h
84
extern struct dentry *rpc_d_lookup_sb(const struct super_block *sb,
include/linux/sunrpc/rpc_pipe_fs.h
9
struct dentry *pdh_dentry;
include/linux/sunrpc/xprt.h
318
struct dentry *debugfs; /* debugfs directory */
include/linux/swiotlb.h
111
struct dentry *debugfs;
include/linux/thunderbolt.h
411
struct dentry *debugfs_dir;
include/linux/tpm.h
188
struct dentry *bios_dir;
include/linux/trace_events.h
16
struct dentry;
include/linux/tracefs.h
101
struct dentry *tracefs_create_instance_dir(const char *name, struct dentry *parent,
include/linux/tracefs.h
82
struct eventfs_inode *eventfs_create_events_dir(const char *name, struct dentry *parent,
include/linux/tracefs.h
93
struct dentry *tracefs_create_file(const char *name, umode_t mode,
include/linux/tracefs.h
94
struct dentry *parent, void *data,
include/linux/tracefs.h
97
struct dentry *tracefs_create_dir(const char *name, struct dentry *parent);
include/linux/tracefs.h
99
void tracefs_remove(struct dentry *dentry);
include/linux/usb.h
2098
extern struct dentry *usb_debug_root;
include/linux/vfio.h
80
struct dentry *debug_root;
include/linux/virtio.h
186
struct dentry *debugfs_dir;
include/linux/wkup_m3_ipc.h
42
struct dentry *dbg_path;
include/linux/wwan.h
197
struct dentry *wwan_get_debugfs_dir(struct device *parent);
include/linux/wwan.h
198
void wwan_put_debugfs_dir(struct dentry *dir);
include/linux/wwan.h
200
static inline struct dentry *wwan_get_debugfs_dir(struct device *parent)
include/linux/wwan.h
204
static inline void wwan_put_debugfs_dir(struct dentry *dir) {}
include/linux/xattr.h
27
struct dentry;
include/linux/xattr.h
44
bool (*list)(struct dentry *dentry);
include/linux/xattr.h
45
int (*get)(const struct xattr_handler *, struct dentry *dentry,
include/linux/xattr.h
49
struct mnt_idmap *idmap, struct dentry *dentry,
include/linux/xattr.h
65
struct dentry *dentry)
include/linux/xattr.h
67
return handler && (!handler->list || handler->list(dentry));
include/linux/xattr.h
78
ssize_t __vfs_getxattr(struct dentry *, struct inode *, const char *, void *, size_t);
include/linux/xattr.h
79
ssize_t vfs_getxattr(struct mnt_idmap *, struct dentry *, const char *,
include/linux/xattr.h
81
ssize_t vfs_listxattr(struct dentry *d, char *list, size_t size);
include/linux/xattr.h
82
int __vfs_setxattr(struct mnt_idmap *, struct dentry *, struct inode *,
include/linux/xattr.h
84
int __vfs_setxattr_noperm(struct mnt_idmap *, struct dentry *,
include/linux/xattr.h
86
int __vfs_setxattr_locked(struct mnt_idmap *, struct dentry *,
include/linux/xattr.h
89
int vfs_setxattr(struct mnt_idmap *, struct dentry *, const char *,
include/linux/xattr.h
91
int __vfs_removexattr(struct mnt_idmap *, struct dentry *, const char *);
include/linux/xattr.h
92
int __vfs_removexattr_locked(struct mnt_idmap *, struct dentry *,
include/linux/xattr.h
94
int vfs_removexattr(struct mnt_idmap *, struct dentry *, const char *);
include/linux/xattr.h
96
ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size);
include/linux/xattr.h
98
struct dentry *dentry, const char *name,
include/media/cec.h
293
struct dentry *cec_dir;
include/media/media-device.h
190
struct dentry *media_dir;
include/media/media-devnode.h
28
extern struct dentry *media_debugfs_root;
include/media/v4l2-async.h
14
struct dentry;
include/media/v4l2-async.h
145
void v4l2_async_debug_init(struct dentry *debugfs_dir);
include/media/v4l2-dev.h
555
struct dentry *v4l2_debugfs_root(void);
include/media/v4l2-dev.h
557
static inline struct dentry *v4l2_debugfs_root(void)
include/media/v4l2-dev.h
65
struct dentry;
include/media/v4l2-dv-timings.h
285
struct dentry *if_dir;
include/media/v4l2-dv-timings.h
292
struct v4l2_debugfs_if *v4l2_debugfs_if_alloc(struct dentry *root, u32 if_types,
include/media/v4l2-dv-timings.h
298
struct v4l2_debugfs_if *v4l2_debugfs_if_alloc(struct dentry *root, u32 if_types,
include/net/6lowpan.h
137
struct dentry *iface_debugfs;
include/net/bluetooth/bluetooth.h
638
extern struct dentry *bt_debugfs;
include/net/bluetooth/hci_core.h
582
struct dentry *debugfs;
include/net/bluetooth/hci_core.h
770
struct dentry *debugfs;
include/net/bonding.h
260
struct dentry *debug_dir;
include/net/cfg80211.h
5771
struct dentry *radio_debugfsdir;
include/net/cfg80211.h
6174
struct dentry *debugfsdir;
include/net/mac80211.h
2101
struct dentry *debugfs_dir;
include/net/mac80211.h
4657
struct dentry *dir);
include/net/mac80211.h
4661
struct dentry *dir);
include/net/mac80211.h
4665
struct dentry *dir);
include/net/mac80211.h
7157
struct dentry *debugfsdir);
include/net/mac80211.h
7181
struct dentry *dir);
include/net/mana/gdma.h
291
struct dentry *mana_eq_debugfs;
include/net/mana/gdma.h
393
struct dentry *mana_pci_debugfs;
include/net/mana/mana.h
357
struct dentry *mana_rx_debugfs;
include/net/mana/mana.h
372
struct dentry *mana_tx_debugfs;
include/net/mana/mana.h
482
struct dentry *mana_eqs_debugfs;
include/net/mana/mana.h
565
struct dentry *mana_port_debugfs;
include/net/mana/mana.h
600
extern struct dentry *mana_debugfs_root;
include/soc/tegra/bpmp.h
103
struct dentry *debugfs_mirror;
include/soc/tegra/mc.h
226
struct dentry *root;
include/sound/core.h
134
struct dentry *debugfs_root; /* debugfs root for card */
include/sound/core.h
237
extern struct dentry *sound_debugfs_root;
include/sound/cs-amp-lib.h
64
struct dentry *cs_amp_create_debugfs(struct device *dev);
include/sound/cs35l56.h
367
struct dentry *debugfs;
include/sound/soc-component.h
253
struct dentry *debugfs_root;
include/sound/soc-dapm.h
674
void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, struct dentry *parent);
include/sound/soc-dpcm.h
81
struct dentry *debugfs_state;
include/sound/soc.h
1083
struct dentry *debugfs_card_root;
include/sound/soc.h
1173
struct dentry *debugfs_dpcm_root;
include/sound/soc.h
1449
extern struct dentry *snd_soc_debugfs_root;
include/trace/events/btrfs.h
772
struct dentry *dentry = file_dentry(file);
include/trace/events/btrfs.h
774
struct dentry *parent = dget_parent(dentry);
include/trace/events/cachefiles.h
246
struct dentry *dir,
include/trace/events/cachefiles.h
247
struct dentry *de),
include/trace/events/cachefiles.h
271
TP_PROTO(struct dentry *dir, struct dentry *subdir),
include/trace/events/erofs.h
36
TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags),
include/trace/events/erofs.h
38
TP_ARGS(dir, dentry, flags),
include/trace/events/erofs.h
43
__string(name, dentry->d_name.name )
include/trace/events/ext4.h
1488
TP_PROTO(struct inode *parent, struct dentry *dentry),
include/trace/events/ext4.h
1490
TP_ARGS(parent, dentry),
include/trace/events/ext4.h
1500
__entry->dev = dentry->d_sb->s_dev;
include/trace/events/ext4.h
1501
__entry->ino = d_inode(dentry)->i_ino;
include/trace/events/ext4.h
1503
__entry->size = d_inode(dentry)->i_size;
include/trace/events/ext4.h
1513
TP_PROTO(struct dentry *dentry, int ret),
include/trace/events/ext4.h
1515
TP_ARGS(dentry, ret),
include/trace/events/ext4.h
1524
__entry->dev = dentry->d_sb->s_dev;
include/trace/events/ext4.h
1525
__entry->ino = d_inode(dentry)->i_ino;
include/trace/events/ext4.h
2873
struct dentry *dentry, int ret),
include/trace/events/ext4.h
2875
TP_ARGS(handle, inode, dentry, ret),
include/trace/events/ext4.h
2905
struct dentry *dentry, int ret), \
include/trace/events/ext4.h
2906
TP_ARGS(handle, inode, dentry, ret) \
include/trace/events/ext4.h
978
struct dentry *dentry = file->f_path.dentry;
include/trace/events/ext4.h
980
__entry->dev = dentry->d_sb->s_dev;
include/trace/events/ext4.h
981
__entry->ino = d_inode(dentry)->i_ino;
include/trace/events/ext4.h
983
__entry->parent = d_inode(dentry->d_parent)->i_ino;
include/trace/events/f2fs.h
359
TP_PROTO(struct inode *dir, struct dentry *dentry),
include/trace/events/f2fs.h
361
TP_ARGS(dir, dentry),
include/trace/events/f2fs.h
368
__string(name, dentry->d_name.name)
include/trace/events/f2fs.h
883
TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags),
include/trace/events/f2fs.h
885
TP_ARGS(dir, dentry, flags),
include/trace/events/f2fs.h
890
__string(name, dentry->d_name.name)
include/trace/events/f2fs.h
909
TP_PROTO(struct inode *dir, struct dentry *dentry, nid_t ino,
include/trace/events/f2fs.h
912
TP_ARGS(dir, dentry, ino, err),
include/trace/events/f2fs.h
917
__string(name, dentry->d_name.name)
include/trace/events/f2fs.h
939
TP_PROTO(struct inode *old_dir, struct dentry *old_dentry,
include/trace/events/f2fs.h
940
struct inode *new_dir, struct dentry *new_dentry,
include/trace/events/f2fs.h
974
TP_PROTO(struct dentry *old_dentry, struct dentry *new_dentry,
include/trace/events/huge_memory.h
178
__string(filename, file->f_path.dentry->d_iname)
include/trace/events/huge_memory.h
213
__string(filename, file->f_path.dentry->d_iname)
include/trace/events/hugetlbfs.h
103
__entry->d_len = dentry->d_name.len;
include/trace/events/hugetlbfs.h
84
TP_PROTO(struct inode *inode, struct dentry *dentry,
include/trace/events/hugetlbfs.h
87
TP_ARGS(inode, dentry, attr),
include/trace/events/hugetlbfs.h
93
__string(d_name, dentry->d_name.name)
include/ufs/ufshcd.h
1089
struct dentry *debugfs_root;
init/do_mounts.c
164
s = current->fs->pwd.dentry->d_sb;
ipc/mqueue.c
566
static int mqueue_create_attr(struct dentry *dentry, umode_t mode, void *arg)
ipc/mqueue.c
568
struct inode *dir = dentry->d_parent->d_inode;
ipc/mqueue.c
601
d_make_persistent(dentry, inode);
ipc/mqueue.c
611
struct dentry *dentry, umode_t mode, bool excl)
ipc/mqueue.c
613
return mqueue_create_attr(dentry, mode, NULL);
ipc/mqueue.c
616
static int mqueue_unlink(struct inode *dir, struct dentry *dentry)
ipc/mqueue.c
619
return simple_unlink(dir, dentry);
ipc/mqueue.c
861
static int prepare_open(struct dentry *dentry, int oflag, int ro,
ipc/mqueue.c
869
if (d_really_is_negative(dentry)) {
ipc/mqueue.c
874
audit_inode_parent_hidden(name, dentry->d_parent);
ipc/mqueue.c
875
return vfs_mkobj(dentry, mode & ~current_umask(),
ipc/mqueue.c
879
audit_inode(name, dentry, 0);
ipc/mqueue.c
885
return inode_permission(&nop_mnt_idmap, d_inode(dentry), acc);
ipc/mqueue.c
892
struct dentry *dentry;
ipc/mqueue.c
896
dentry = start_creating_noperm(mnt->mnt_root, &QSTR(name->name));
ipc/mqueue.c
897
if (IS_ERR(dentry))
ipc/mqueue.c
898
return ERR_CAST(dentry);
ipc/mqueue.c
900
ret = prepare_open(dentry, oflag, ro, mode, name, attr);
ipc/mqueue.c
903
const struct path path = { .mnt = mnt, .dentry = dentry };
ipc/mqueue.c
907
end_creating(dentry);
ipc/mqueue.c
943
struct dentry *dentry;
ipc/mqueue.c
956
dentry = start_removing_noperm(mnt->mnt_root, &QSTR(name->name));
ipc/mqueue.c
957
if (IS_ERR(dentry)) {
ipc/mqueue.c
958
err = PTR_ERR(dentry);
ipc/mqueue.c
962
inode = d_inode(dentry);
ipc/mqueue.c
965
dentry, NULL);
ipc/mqueue.c
966
end_removing(dentry);
kernel/acct.c
238
internal.dentry = dget(mnt->mnt_root);
kernel/audit_fsnotify.c
101
audit_update_mark(audit_mark, dentry->d_inode);
kernel/audit_fsnotify.c
104
ret = fsnotify_add_inode_mark(&audit_mark->mark, path.dentry->d_inode, 0);
kernel/audit_fsnotify.c
111
dput(dentry);
kernel/audit_fsnotify.c
78
struct dentry *dentry;
kernel/audit_fsnotify.c
84
dentry = kern_path_parent(pathname, &path);
kernel/audit_fsnotify.c
85
if (IS_ERR(dentry))
kernel/audit_fsnotify.c
86
return ERR_CAST(dentry); /* returning an error */
kernel/audit_fsnotify.c
87
if (d_really_is_negative(dentry)) {
kernel/audit_tree.c
706
for (const struct path *p = paths; p->dentry; p++) {
kernel/audit_tree.c
707
struct inode *inode = p->dentry->d_inode;
kernel/audit_tree.c
747
for (const struct path *p = paths; p->dentry; p++) {
kernel/audit_tree.c
748
int err = tag_chunk(p->dentry->d_inode, tree);
kernel/audit_watch.c
138
struct inode *inode = d_backing_inode(path->dentry);
kernel/audit_watch.c
350
struct dentry *d;
kernel/audit_watch.c
431
parent = audit_find_parent(d_backing_inode(parent_path.dentry));
kernel/auditsc.c
1522
if (context->pwd.dentry && context->pwd.mnt)
kernel/auditsc.c
1770
if (context->pwd.dentry && context->pwd.mnt) {
kernel/auditsc.c
2089
static void handle_path(const struct dentry *dentry)
kernel/auditsc.c
2093
const struct dentry *d, *parent;
kernel/auditsc.c
2103
d = dentry;
kernel/auditsc.c
2167
if (!context->pwd.dentry)
kernel/auditsc.c
2198
const struct dentry *dentry)
kernel/auditsc.c
2203
if (!dentry)
kernel/auditsc.c
2206
rc = get_vfs_caps_from_disk(&nop_mnt_idmap, dentry, &caps);
kernel/auditsc.c
2222
const struct dentry *dentry,
kernel/auditsc.c
2236
audit_copy_fcaps(name, dentry);
kernel/auditsc.c
2245
void __audit_inode(struct filename *name, const struct dentry *dentry,
kernel/auditsc.c
2249
struct inode *inode = d_backing_inode(dentry);
kernel/auditsc.c
2339
handle_path(dentry);
kernel/auditsc.c
2340
audit_copy_inode(n, dentry, inode, flags & AUDIT_INODE_NOEVAL);
kernel/auditsc.c
2345
__audit_inode(NULL, file->f_path.dentry, 0);
kernel/auditsc.c
2363
const struct dentry *dentry,
kernel/auditsc.c
2367
struct inode *inode = d_backing_inode(dentry);
kernel/auditsc.c
2368
const struct qstr *dname = &dentry->d_name;
kernel/auditsc.c
2453
audit_copy_inode(found_child, dentry, inode, 0);
kernel/auditsc.c
2755
bprm->file->f_path.dentry, &vcaps);
kernel/auditsc.c
943
context->pwd.dentry = NULL;
kernel/bpf/inode.c
144
static void bpf_dentry_finalize(struct dentry *dentry, struct inode *inode,
kernel/bpf/inode.c
147
d_make_persistent(dentry, inode);
kernel/bpf/inode.c
152
static struct dentry *bpf_mkdir(struct mnt_idmap *idmap, struct inode *dir,
kernel/bpf/inode.c
153
struct dentry *dentry, umode_t mode)
kernel/bpf/inode.c
167
bpf_dentry_finalize(dentry, inode, dir);
kernel/bpf/inode.c
328
static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw,
kernel/bpf/inode.c
332
struct inode *dir = dentry->d_parent->d_inode;
kernel/bpf/inode.c
341
bpf_dentry_finalize(dentry, inode, dir);
kernel/bpf/inode.c
345
static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg)
kernel/bpf/inode.c
347
return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops,
kernel/bpf/inode.c
351
static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg)
kernel/bpf/inode.c
355
return bpf_mkobj_ops(dentry, mode, arg, &bpf_map_iops,
kernel/bpf/inode.c
360
static int bpf_mklink(struct dentry *dentry, umode_t mode, void *arg)
kernel/bpf/inode.c
364
return bpf_mkobj_ops(dentry, mode, arg, &bpf_link_iops,
kernel/bpf/inode.c
369
static struct dentry *
kernel/bpf/inode.c
370
bpf_lookup(struct inode *dir, struct dentry *dentry, unsigned flags)
kernel/bpf/inode.c
376
strchr(dentry->d_name.name, '.'))
kernel/bpf/inode.c
379
return simple_lookup(dir, dentry, flags);
kernel/bpf/inode.c
383
struct dentry *dentry, const char *target)
kernel/bpf/inode.c
400
bpf_dentry_finalize(dentry, inode, dir);
kernel/bpf/inode.c
415
static int bpf_iter_link_pin_kernel(struct dentry *parent,
kernel/bpf/inode.c
419
struct dentry *dentry;
kernel/bpf/inode.c
422
dentry = simple_start_creating(parent, name);
kernel/bpf/inode.c
423
if (IS_ERR(dentry))
kernel/bpf/inode.c
424
return PTR_ERR(dentry);
kernel/bpf/inode.c
425
ret = bpf_mkobj_ops(dentry, mode, link, &bpf_link_iops,
kernel/bpf/inode.c
427
simple_done_creating(dentry);
kernel/bpf/inode.c
434
struct dentry *dentry;
kernel/bpf/inode.c
440
dentry = start_creating_user_path(path_fd, pathname, &path, 0);
kernel/bpf/inode.c
441
if (IS_ERR(dentry))
kernel/bpf/inode.c
442
return PTR_ERR(dentry);
kernel/bpf/inode.c
444
dir = d_inode(path.dentry);
kernel/bpf/inode.c
451
ret = security_path_mknod(&path, dentry, mode, 0);
kernel/bpf/inode.c
457
ret = vfs_mkobj(dentry, mode, bpf_mkprog, raw);
kernel/bpf/inode.c
460
ret = vfs_mkobj(dentry, mode, bpf_mkmap, raw);
kernel/bpf/inode.c
463
ret = vfs_mkobj(dentry, mode, bpf_mklink, raw);
kernel/bpf/inode.c
469
end_creating_path(&path, dentry);
kernel/bpf/inode.c
502
inode = d_backing_inode(path.dentry);
kernel/bpf/inode.c
585
prog = __get_prog_inode(d_backing_inode(path.dentry), type);
kernel/bpf/inode.c
718
static int bpf_show_options(struct seq_file *m, struct dentry *root)
kernel/bpf/inode.c
964
static int populate_bpffs(struct dentry *parent)
kernel/bpf/offload.c
493
ns_inode = ns_path.dentry->d_inode;
kernel/bpf/offload.c
681
ns_inode = ns_path.dentry->d_inode;
kernel/bpf/token.c
128
sb = path.dentry->d_sb;
kernel/bpf/token.c
130
if (path.dentry != sb->s_root)
kernel/bpf/verifier.c
7319
BTF_TYPE_SAFE_TRUSTED_OR_NULL(struct dentry) {
kernel/bpf/verifier.c
7372
BTF_TYPE_EMIT(BTF_TYPE_SAFE_TRUSTED_OR_NULL(struct dentry));
kernel/cgroup/cgroup-v1.c
719
int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
kernel/cgroup/cgroup-v1.c
721
struct kernfs_node *kn = kernfs_node_from_dentry(dentry);
kernel/cgroup/cgroup-v1.c
727
if (dentry->d_sb->s_type != &cgroup_fs_type || !kn ||
kernel/cgroup/cgroup.c
2275
struct dentry *nsdentry;
kernel/cgroup/cgroup.c
5396
of->file->f_path.dentry->d_sb,
kernel/cgroup/cgroup.c
6726
css = css_tryget_online_from_dir(f->f_path.dentry, NULL);
kernel/cgroup/cgroup.c
6801
sb = fd_file(f)->f_path.dentry->d_sb;
kernel/cgroup/cgroup.c
7237
struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry,
kernel/cgroup/cgroup.c
7240
struct kernfs_node *kn = kernfs_node_from_dentry(dentry);
kernel/cgroup/cgroup.c
7241
struct file_system_type *s_type = dentry->d_sb->s_type;
kernel/dma/debug.c
831
struct dentry *dentry = debugfs_create_dir("dma-api", NULL);
kernel/dma/debug.c
833
debugfs_create_bool("disabled", 0444, dentry, &global_disable);
kernel/dma/debug.c
834
debugfs_create_u32("error_count", 0444, dentry, &error_count);
kernel/dma/debug.c
835
debugfs_create_u32("all_errors", 0644, dentry, &show_all_errors);
kernel/dma/debug.c
836
debugfs_create_u32("num_errors", 0644, dentry, &show_num_errors);
kernel/dma/debug.c
837
debugfs_create_u32("num_free_entries", 0444, dentry, &num_free_entries);
kernel/dma/debug.c
838
debugfs_create_u32("min_free_entries", 0444, dentry, &min_free_entries);
kernel/dma/debug.c
839
debugfs_create_u32("nr_total_entries", 0444, dentry, &nr_total_entries);
kernel/dma/debug.c
840
debugfs_create_file("driver_filter", 0644, dentry, NULL, &filter_fops);
kernel/dma/debug.c
841
debugfs_create_file("dump", 0444, dentry, NULL, &dump_fops);
kernel/dma/map_benchmark.c
25
struct dentry *debugfs;
kernel/dma/map_benchmark.c
303
struct dentry *entry;
kernel/dma/pool.c
38
struct dentry *root;
kernel/events/core.c
1139
css = css_tryget_online_from_dir(fd_file(f)->f_path.dentry,
kernel/events/core.c
11857
if (filter->path.dentry) {
kernel/events/core.c
12061
if (!filter->path.dentry ||
kernel/events/core.c
12062
!S_ISREG(d_inode(filter->path.dentry)
kernel/events/core.c
8977
if (filter->path.dentry) {
kernel/events/core.c
9415
ns_inode = ns_path.dentry->d_inode;
kernel/events/core.c
9800
if (!filter->path.dentry)
kernel/events/core.c
9803
if (d_inode(filter->path.dentry) != file_user_inode(file))
kernel/fail_function.c
157
struct dentry *dir;
kernel/fail_function.c
317
struct dentry *dir;
kernel/fail_function.c
34
static struct dentry *fei_debugfs_dir;
kernel/futex/core.c
108
struct dentry *dir;
kernel/gcov/fs.c
476
static void add_links(struct gcov_node *node, struct dentry *parent)
kernel/gcov/fs.c
485
node->links = kzalloc_objs(struct dentry *, num);
kernel/gcov/fs.c
555
node->dentry = debugfs_create_file(deskew(node->name), 0600,
kernel/gcov/fs.c
556
parent->dentry, node, &gcov_data_fops);
kernel/gcov/fs.c
558
node->dentry = debugfs_create_dir(node->name, parent->dentry);
kernel/gcov/fs.c
560
add_links(node, parent->dentry);
kernel/gcov/fs.c
59
struct dentry *dentry;
kernel/gcov/fs.c
593
debugfs_remove(node->dentry);
kernel/gcov/fs.c
60
struct dentry **links;
kernel/gcov/fs.c
870
root_node.dentry = debugfs_create_dir("gcov", NULL);
kernel/gcov/fs.c
875
debugfs_create_file("reset", 0600, root_node.dentry, NULL,
kernel/irq/debugfs.c
10
static struct dentry *irq_dir;
kernel/irq/debugfs.c
240
struct dentry *root_dir;
kernel/irq/internals.h
397
void irq_domain_debugfs_init(struct dentry *root);
kernel/irq/internals.h
399
static inline void irq_domain_debugfs_init(struct dentry *root)
kernel/irq/irqdomain.c
2086
static struct dentry *domain_dir;
kernel/irq/irqdomain.c
2146
void __init irq_domain_debugfs_init(struct dentry *root)
kernel/kprobes.c
3060
struct dentry *dir;
kernel/liveupdate/kexec_handover_debugfs.c
116
struct dentry *dir, *sub_fdt_dir;
kernel/liveupdate/kexec_handover_debugfs.c
179
struct dentry *dir, *f, *sub_fdt_dir;
kernel/liveupdate/kexec_handover_debugfs.c
18
static struct dentry *debugfs_root;
kernel/liveupdate/kexec_handover_debugfs.c
23
struct dentry *file;
kernel/liveupdate/kexec_handover_debugfs.c
26
static int __kho_debugfs_fdt_add(struct list_head *list, struct dentry *dir,
kernel/liveupdate/kexec_handover_debugfs.c
30
struct dentry *file;
kernel/liveupdate/kexec_handover_debugfs.c
54
struct dentry *dir;
kernel/liveupdate/kexec_handover_internal.h
13
struct dentry *dir;
kernel/liveupdate/kexec_handover_internal.h
14
struct dentry *sub_fdt_dir;
kernel/locking/lock_events.c
146
struct dentry *d_counts = debugfs_create_dir(LOCK_EVENTS_DIR, NULL);
kernel/module/internal.h
195
extern struct dentry *mod_debugfs_root;
kernel/module/main.c
3916
struct dentry *mod_debugfs_root;
kernel/module/tracking.c
18
extern struct dentry *mod_debugfs_root;
kernel/power/energy_model.c
144
struct dentry *d;
kernel/power/energy_model.c
50
static struct dentry *rootdir;
kernel/power/energy_model.c
82
struct dentry *pd)
kernel/power/energy_model.c
86
struct dentry *d;
kernel/printk/index.c
18
static struct dentry *dfs_index;
kernel/printk/index.c
184
struct dentry *dfs_root = debugfs_create_dir("printk", NULL);
kernel/relay.c
346
struct dentry *dentry)
kernel/relay.c
348
buf->dentry = dentry;
kernel/relay.c
349
d_inode(buf->dentry)->i_size = buf->early_bytes;
kernel/relay.c
352
static struct dentry *relay_create_buf_file(struct rchan *chan,
kernel/relay.c
356
struct dentry *dentry;
kernel/relay.c
364
dentry = chan->cb->create_buf_file(tmpname, chan->parent,
kernel/relay.c
367
if (IS_ERR(dentry))
kernel/relay.c
368
dentry = NULL;
kernel/relay.c
372
return dentry;
kernel/relay.c
383
struct dentry *dentry;
kernel/relay.c
393
dentry = relay_create_buf_file(chan, buf, cpu);
kernel/relay.c
394
if (!dentry)
kernel/relay.c
396
relay_set_buf_dentry(buf, dentry);
kernel/relay.c
399
dentry = chan->cb->create_buf_file(NULL, NULL,
kernel/relay.c
402
if (IS_ERR_OR_NULL(dentry))
kernel/relay.c
433
buf->chan->cb->remove_buf_file(buf->dentry);
kernel/relay.c
475
struct dentry *parent,
kernel/relay.c
541
struct dentry *dentry;
kernel/relay.c
569
if (buf->dentry)
kernel/relay.c
570
d_inode(buf->dentry)->i_size +=
kernel/rseq.c
183
static int __init rseq_stats_init(struct dentry *root_dir)
kernel/rseq.c
189
static inline void rseq_stats_init(struct dentry *root_dir) { }
kernel/rseq.c
225
static void rseq_slice_ext_init(struct dentry *root_dir);
kernel/rseq.c
229
struct dentry *root_dir = debugfs_create_dir("rseq", NULL);
kernel/rseq.c
808
static void rseq_slice_ext_init(struct dentry *root_dir)
kernel/rseq.c
838
static void rseq_slice_ext_init(struct dentry *root_dir) { }
kernel/sched/debug.c
279
static struct dentry *sd_dentry;
kernel/sched/debug.c
547
static struct dentry *debugfs_sched;
kernel/sched/debug.c
551
struct dentry *d_fair;
kernel/sched/debug.c
559
struct dentry *d_cpu;
kernel/sched/debug.c
573
struct dentry *d_ext;
kernel/sched/debug.c
581
struct dentry *d_cpu;
kernel/sched/debug.c
595
struct dentry __maybe_unused *numa;
kernel/sched/debug.c
667
static void register_sd(struct sched_domain *sd, struct dentry *parent)
kernel/sched/debug.c
721
struct dentry *d_cpu;
kernel/sched/debug.c
730
struct dentry *d_sd;
kernel/taskstats.c
441
rc = cgroupstats_build(stats, fd_file(f)->f_path.dentry);
kernel/trace/blktrace.c
615
static int blk_remove_buf_file_callback(struct dentry *dentry)
kernel/trace/blktrace.c
617
debugfs_remove(dentry);
kernel/trace/blktrace.c
622
static struct dentry *blk_create_buf_file_callback(const char *filename,
kernel/trace/blktrace.c
623
struct dentry *parent,
kernel/trace/blktrace.c
658
struct dentry *dir = NULL;
kernel/trace/bpf_trace.c
3230
if (!d_is_reg(path.dentry)) {
kernel/trace/bpf_trace.c
3293
uprobes[i].uprobe = uprobe_register(d_real_inode(link->path.dentry),
kernel/trace/ftrace.c
1016
static __init void ftrace_profile_tracefs(struct dentry *d_tracer)
kernel/trace/ftrace.c
1055
static __init void ftrace_profile_tracefs(struct dentry *d_tracer)
kernel/trace/ftrace.c
7447
struct dentry *parent)
kernel/trace/ftrace.c
7477
static __init int ftrace_init_dyn_tracefs(struct dentry *d_tracer)
kernel/trace/ftrace.c
8435
static inline int ftrace_init_dyn_tracefs(struct dentry *d_tracer) { return 0; }
kernel/trace/ftrace.c
8989
void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer)
kernel/trace/ftrace.c
8998
struct dentry *d_tracer)
kernel/trace/rv/rv.c
157
struct dentry *get_monitors_root(void)
kernel/trace/rv/rv.c
422
struct dentry *root = parent ? parent->root_d : get_monitors_root();
kernel/trace/rv/rv.c
423
struct dentry *dir __free(rv_remove) = rv_create_dir(mon->name, root);
kernel/trace/rv/rv.c
424
struct dentry *tmp;
kernel/trace/rv/rv.c
820
struct dentry *tmp;
kernel/trace/rv/rv.c
822
struct dentry *root_dir __free(rv_remove) = rv_create_dir("rv", NULL);
kernel/trace/rv/rv.h
20
DEFINE_FREE(rv_remove, struct dentry *, if (_T) rv_remove(_T));
kernel/trace/rv/rv.h
28
struct dentry *get_monitors_root(void);
kernel/trace/rv/rv.h
35
int reactor_populate_monitor(struct rv_monitor *mon, struct dentry *root);
kernel/trace/rv/rv.h
36
int init_rv_reactors(struct dentry *root_dir);
kernel/trace/rv/rv.h
38
static inline int reactor_populate_monitor(struct rv_monitor *mon, struct dentry *root)
kernel/trace/rv/rv.h
43
static inline int init_rv_reactors(struct dentry *root_dir)
kernel/trace/rv/rv.h
5
struct dentry *root_dir;
kernel/trace/rv/rv.h
6
struct dentry *monitors_dir;
kernel/trace/rv/rv_reactors.c
412
int reactor_populate_monitor(struct rv_monitor *mon, struct dentry *root)
kernel/trace/rv/rv_reactors.c
414
struct dentry *tmp;
kernel/trace/rv/rv_reactors.c
441
int init_rv_reactors(struct dentry *root_dir)
kernel/trace/rv/rv_reactors.c
445
struct dentry *available __free(rv_remove) =
kernel/trace/rv/rv_reactors.c
449
struct dentry *reacting __free(rv_remove) =
kernel/trace/trace.c
1537
struct dentry *d_tracer)
kernel/trace/trace.c
1590
struct dentry *d_tracer) { }
kernel/trace/trace.c
5166
static void trace_create_eval_file(struct dentry *d_tracer)
kernel/trace/trace.c
5173
static inline void trace_create_eval_file(struct dentry *d_tracer) { }
kernel/trace/trace.c
8577
static struct dentry *tracing_get_dentry(struct trace_array *tr)
kernel/trace/trace.c
8590
static struct dentry *tracing_dentry_percpu(struct trace_array *tr, int cpu)
kernel/trace/trace.c
8592
struct dentry *d_tracer;
kernel/trace/trace.c
8609
static struct dentry *
kernel/trace/trace.c
8610
trace_create_cpu_file(const char *name, umode_t mode, struct dentry *parent,
kernel/trace/trace.c
8613
struct dentry *ret = trace_create_file(name, mode, parent, data, fops);
kernel/trace/trace.c
8623
struct dentry *d_percpu = tracing_dentry_percpu(tr, cpu);
kernel/trace/trace.c
8624
struct dentry *d_cpu;
kernel/trace/trace.c
8837
struct dentry *trace_create_file(const char *name,
kernel/trace/trace.c
8839
struct dentry *parent,
kernel/trace/trace.c
8843
struct dentry *ret;
kernel/trace/trace.c
8853
static struct dentry *trace_options_init_dentry(struct trace_array *tr)
kernel/trace/trace.c
8855
struct dentry *d_tracer;
kernel/trace/trace.c
8879
struct dentry *t_options;
kernel/trace/trace.c
9026
static struct dentry *
kernel/trace/trace.c
9030
struct dentry *t_options;
kernel/trace/trace.c
9043
struct dentry *t_options;
kernel/trace/trace.c
9257
static struct dentry *trace_instance_dir;
kernel/trace/trace.c
9260
init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer);
kernel/trace/trace.c
9844
static __init void create_trace_instances(struct dentry *d_tracer)
kernel/trace/trace.c
9867
init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer)
kernel/trace/trace.c
9953
static struct vfsmount *trace_automount(struct dentry *mntpt, void *ingore)
kernel/trace/trace.h
1191
struct dentry *parent);
kernel/trace/trace.h
1199
void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer);
kernel/trace/trace.h
1201
struct dentry *d_tracer);
kernel/trace/trace.h
1209
struct dentry *parent)
kernel/trace/trace.h
1222
static inline void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d) { }
kernel/trace/trace.h
1223
static inline void ftrace_init_tracefs_toplevel(struct trace_array *tr, struct dentry *d) { }
kernel/trace/trace.h
1277
struct dentry *parent);
kernel/trace/trace.h
1794
extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr);
kernel/trace/trace.h
354
struct dentry *d_max_latency;
kernel/trace/trace.h
410
struct dentry *dir;
kernel/trace/trace.h
411
struct dentry *options;
kernel/trace/trace.h
412
struct dentry *percpu_dir;
kernel/trace/trace.h
595
struct dentry *entry;
kernel/trace/trace.h
687
struct dentry *trace_create_file(const char *name,
kernel/trace/trace.h
689
struct dentry *parent,
kernel/trace/trace_events.c
4532
create_event_toplevel_files(struct dentry *parent, struct trace_array *tr)
kernel/trace/trace_events.c
4535
struct dentry *entry;
kernel/trace/trace_events.c
4599
int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr)
kernel/trace/trace_events.c
4626
early_event_add_tracer(struct dentry *parent, struct trace_array *tr)
kernel/trace/trace_events_synth.c
2342
struct dentry *entry = NULL;
kernel/trace/trace_events_user.c
2851
struct dentry *edata, *emmap;
kernel/trace/trace_functions.c
85
struct dentry *parent)
kernel/trace/trace_hwlat.c
57
static struct dentry *hwlat_sample_width; /* sample width us */
kernel/trace/trace_hwlat.c
58
static struct dentry *hwlat_sample_window; /* sample window us */
kernel/trace/trace_hwlat.c
59
static struct dentry *hwlat_thread_mode; /* hwlat thread mode */
kernel/trace/trace_hwlat.c
768
struct dentry *top_dir;
kernel/trace/trace_osnoise.c
2678
static int init_timerlat_stack_tracefs(struct dentry *top_dir)
kernel/trace/trace_osnoise.c
2680
struct dentry *tmp;
kernel/trace/trace_osnoise.c
2690
static int init_timerlat_stack_tracefs(struct dentry *top_dir)
kernel/trace/trace_osnoise.c
2696
static int osnoise_create_cpu_timerlat_fd(struct dentry *top_dir)
kernel/trace/trace_osnoise.c
2698
struct dentry *timerlat_fd;
kernel/trace/trace_osnoise.c
2699
struct dentry *per_cpu;
kernel/trace/trace_osnoise.c
2700
struct dentry *cpu_dir;
kernel/trace/trace_osnoise.c
2739
static int init_timerlat_tracefs(struct dentry *top_dir)
kernel/trace/trace_osnoise.c
2741
struct dentry *tmp;
kernel/trace/trace_osnoise.c
2756
static int init_timerlat_tracefs(struct dentry *top_dir)
kernel/trace/trace_osnoise.c
2771
struct dentry *top_dir;
kernel/trace/trace_osnoise.c
2772
struct dentry *tmp;
kernel/trace/trace_probe.c
1835
offsetof(struct dentry, d_name.name),
kernel/trace/trace_probe.c
1841
offsetof(struct dentry, d_name.name),
kernel/trace/trace_probe.c
1842
offsetof(struct file, f_path.dentry),
kernel/trace/trace_stat.c
37
struct dentry *file;
kernel/trace/trace_stat.c
45
static struct dentry *stat_dir;
kernel/trace/trace_uprobe.c
1104
struct inode *inode = d_real_inode(tu->path.dentry);
kernel/trace/trace_uprobe.c
1636
if (!d_is_reg(path.dentry)) {
kernel/trace/trace_uprobe.c
421
struct inode *comp_inode = d_real_inode(comp->path.dentry);
kernel/trace/trace_uprobe.c
425
if (comp_inode != d_real_inode(orig->path.dentry) ||
kernel/trace/trace_uprobe.c
484
struct inode *new_inode = d_real_inode(new->path.dentry);
kernel/trace/trace_uprobe.c
487
if (new_inode == d_real_inode(tmp->path.dentry) &&
kernel/trace/trace_uprobe.c
604
if (!d_is_reg(path.dentry)) {
lib/842/842_debugfs.h
14
static struct dentry *sw842_debugfs_root;
lib/debugobjects.c
1187
struct dentry *dbgdir;
lib/dynamic_debug.c
1388
struct dentry *debugfs_dir;
lib/error-inject.c
217
struct dentry *dir, *file;
lib/fault-inject-usercopy.c
21
struct dentry *dir;
lib/fault-inject.c
205
struct dentry *parent, unsigned long *value)
lib/fault-inject.c
224
struct dentry *parent,
lib/fault-inject.c
232
struct dentry *fault_create_debugfs_attr(const char *name,
lib/fault-inject.c
233
struct dentry *parent, struct fault_attr *attr)
lib/fault-inject.c
236
struct dentry *dir;
lib/kunit/debugfs.c
31
static struct dentry *debugfs_rootdir;
lib/memory-notifier-error-inject.c
20
static struct dentry *dir;
lib/netdev-notifier-error-inject.c
27
static struct dentry *dir;
lib/notifier-error-inject.c
21
static struct dentry *debugfs_create_errno(const char *name, umode_t mode,
lib/notifier-error-inject.c
22
struct dentry *parent, int *value)
lib/notifier-error-inject.c
47
struct dentry *notifier_err_inject_dir;
lib/notifier-error-inject.c
50
struct dentry *notifier_err_inject_init(const char *name, struct dentry *parent,
lib/notifier-error-inject.c
55
struct dentry *dir;
lib/notifier-error-inject.c
56
struct dentry *actions_dir;
lib/notifier-error-inject.c
66
struct dentry *action_dir;
lib/notifier-error-inject.h
21
extern struct dentry *notifier_err_inject_dir;
lib/notifier-error-inject.h
23
extern struct dentry *notifier_err_inject_init(const char *name,
lib/notifier-error-inject.h
24
struct dentry *parent, struct notifier_err_inject *err_inject,
lib/of-reconfig-notifier-error-inject.c
23
static struct dentry *dir;
lib/pm-notifier-error-inject.c
21
static struct dentry *dir;
lib/ref_tracker.c
347
static struct dentry *ref_tracker_debug_dir = (struct dentry *)-ENOENT;
lib/ref_tracker.c
428
struct dentry *dentry;
lib/ref_tracker.c
432
dentry = xa_load(&debugfs_dentries, (unsigned long)dir);
lib/ref_tracker.c
433
if (dentry && !xa_is_err(dentry))
lib/ref_tracker.c
440
dentry = debugfs_create_file(name, S_IFREG | 0400,
lib/ref_tracker.c
443
if (!IS_ERR(dentry)) {
lib/ref_tracker.c
447
dentry, GFP_KERNEL);
lib/ref_tracker.c
450
debugfs_remove(dentry);
lib/ref_tracker.c
461
struct dentry *symlink, *dentry;
lib/ref_tracker.c
466
dentry = xa_load(&debugfs_dentries, (unsigned long)dir);
lib/ref_tracker.c
472
if (!dentry || xa_is_err(dentry))
lib/ref_tracker.c
482
dentry->d_name.name);
lib/ref_tracker.c
499
struct dentry *dentry;
lib/ref_tracker.c
505
xa_for_each_marked(&debugfs_symlinks, index, dentry, REF_TRACKER_DIR_DEAD) {
lib/ref_tracker.c
507
debugfs_remove(dentry);
lib/ref_tracker.c
510
xa_for_each_marked(&debugfs_dentries, index, dentry, REF_TRACKER_DIR_DEAD) {
lib/ref_tracker.c
512
debugfs_remove(dentry);
lib/stackdepot.c
869
struct dentry *dir;
lib/test_fpu_glue.c
37
static struct dentry *selftest_dir;
lib/tests/printf_kunit.c
454
static struct dentry test_dentry[4] = {
lib/tests/printf_kunit.c
810
KUNIT_CASE(dentry),
lib/vsprintf.c
909
char *dentry_name(char *buf, char *end, const struct dentry *d, struct printf_spec spec,
lib/vsprintf.c
913
const struct dentry *p;
lib/vsprintf.c
964
return dentry_name(buf, end, f->f_path.dentry, spec, fmt);
mm/backing-dev.c
55
static struct dentry *bdi_debug_root;
mm/cma_debug.c
161
static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry)
mm/cma_debug.c
163
struct dentry *tmp, *dir, *rangedir;
mm/cma_debug.c
202
struct dentry *cma_debugfs_root;
mm/fail_page_alloc.c
53
struct dentry *dir;
mm/failslab.c
59
struct dentry *dir;
mm/hwpoison-inject.c
100
static struct dentry *hwpoison_dir;
mm/internal.h
1687
extern struct dentry *shrinker_debugfs_detach(struct shrinker *shrinker,
mm/internal.h
1689
extern void shrinker_debugfs_remove(struct dentry *debugfs_entry,
mm/internal.h
1704
static inline struct dentry *shrinker_debugfs_detach(struct shrinker *shrinker,
mm/internal.h
1710
static inline void shrinker_debugfs_remove(struct dentry *debugfs_entry,
mm/kfence/core.c
804
struct dentry *kfence_dir;
mm/memblock.c
2753
struct dentry *root = debugfs_create_dir("memblock", NULL);
mm/memcontrol-v1.c
1083
struct dentry *cdentry;
mm/memcontrol-v1.c
1143
cdentry = fd_file(cfile)->f_path.dentry;
mm/page_owner.c
976
struct dentry *dir;
mm/secretmem.c
165
struct dentry *dentry, struct iattr *iattr)
mm/secretmem.c
167
struct inode *inode = d_inode(dentry);
mm/secretmem.c
177
ret = simple_setattr(idmap, dentry, iattr);
mm/shmem.c
1287
struct inode *inode = path->dentry->d_inode;
mm/shmem.c
1317
struct dentry *dentry, struct iattr *attr)
mm/shmem.c
1319
struct inode *inode = d_inode(dentry);
mm/shmem.c
1325
error = setattr_prepare(idmap, dentry, attr);
mm/shmem.c
1387
error = posix_acl_chmod(idmap, dentry, inode->i_mode);
mm/shmem.c
2990
struct dentry *dentry, unsigned int *i_flags)
mm/shmem.c
3003
if (dentry && !simple_empty(dentry))
mm/shmem.c
3009
if (dentry && !simple_empty(dentry))
mm/shmem.c
3017
struct dentry *dentry, unsigned int *i_flags)
mm/shmem.c
3030
static int shmem_set_inode_flags(struct inode *inode, unsigned int fsflags, struct dentry *dentry)
mm/shmem.c
3035
ret = shmem_inode_casefold_flags(inode, fsflags, dentry, &i_flags);
mm/shmem.c
3053
static void shmem_set_inode_flags(struct inode *inode, unsigned int fsflags, struct dentry *dentry)
mm/shmem.c
3847
static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf)
mm/shmem.c
3849
struct shmem_sb_info *sbinfo = SHMEM_SB(dentry->d_sb);
mm/shmem.c
3866
buf->f_fsid = uuid_to_fsid(dentry->d_sb->s_uuid.b);
mm/shmem.c
3876
struct dentry *dentry, umode_t mode, dev_t dev)
mm/shmem.c
3881
if (!generic_ci_validate_strict_name(dir, &dentry->d_name))
mm/shmem.c
3892
error = security_inode_init_security(inode, dir, &dentry->d_name,
mm/shmem.c
3897
error = simple_offset_add(shmem_get_offset_ctx(dir), dentry);
mm/shmem.c
3905
d_make_persistent(dentry, inode);
mm/shmem.c
3942
static struct dentry *shmem_mkdir(struct mnt_idmap *idmap, struct inode *dir,
mm/shmem.c
3943
struct dentry *dentry, umode_t mode)
mm/shmem.c
3947
error = shmem_mknod(idmap, dir, dentry, mode | S_IFDIR, 0);
mm/shmem.c
3955
struct dentry *dentry, umode_t mode, bool excl)
mm/shmem.c
3957
return shmem_mknod(idmap, dir, dentry, mode | S_IFREG, 0);
mm/shmem.c
3963
static int shmem_link(struct dentry *old_dentry, struct inode *dir,
mm/shmem.c
3964
struct dentry *dentry)
mm/shmem.c
3982
ret = simple_offset_add(shmem_get_offset_ctx(dir), dentry);
mm/shmem.c
3991
return simple_link(old_dentry, dir, dentry);
mm/shmem.c
3994
static int shmem_unlink(struct inode *dir, struct dentry *dentry)
mm/shmem.c
3996
struct inode *inode = d_inode(dentry);
mm/shmem.c
4001
simple_offset_remove(shmem_get_offset_ctx(dir), dentry);
mm/shmem.c
4005
simple_unlink(dir, dentry);
mm/shmem.c
4012
d_invalidate(dentry);
mm/shmem.c
4017
static int shmem_rmdir(struct inode *dir, struct dentry *dentry)
mm/shmem.c
4019
if (!simple_empty(dentry))
mm/shmem.c
4022
drop_nlink(d_inode(dentry));
mm/shmem.c
4024
return shmem_unlink(dir, dentry);
mm/shmem.c
4028
struct inode *old_dir, struct dentry *old_dentry)
mm/shmem.c
4030
struct dentry *whiteout;
mm/shmem.c
4049
struct inode *old_dir, struct dentry *old_dentry,
mm/shmem.c
4050
struct inode *new_dir, struct dentry *new_dentry,
mm/shmem.c
4105
struct dentry *dentry, const char *symname)
mm/shmem.c
4122
error = security_inode_init_security(inode, dir, &dentry->d_name,
mm/shmem.c
4127
error = simple_offset_add(shmem_get_offset_ctx(dir), dentry);
mm/shmem.c
4156
d_make_persistent(dentry, inode);
mm/shmem.c
4160
simple_offset_remove(shmem_get_offset_ctx(dir), dentry);
mm/shmem.c
4172
static const char *shmem_get_link(struct dentry *dentry, struct inode *inode,
mm/shmem.c
4178
if (!dentry) {
mm/shmem.c
4206
static int shmem_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
mm/shmem.c
4208
struct shmem_inode_info *info = SHMEM_I(d_inode(dentry));
mm/shmem.c
4216
struct dentry *dentry, struct file_kattr *fa)
mm/shmem.c
4218
struct inode *inode = d_inode(dentry);
mm/shmem.c
4230
ret = shmem_set_inode_flags(inode, flags, dentry);
mm/shmem.c
4314
struct dentry *unused, struct inode *inode,
mm/shmem.c
4325
struct dentry *unused, struct inode *inode,
mm/shmem.c
4391
static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size)
mm/shmem.c
4393
struct shmem_inode_info *info = SHMEM_I(d_inode(dentry));
mm/shmem.c
4394
return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size);
mm/shmem.c
4416
static struct dentry *shmem_get_parent(struct dentry *child)
mm/shmem.c
4430
static struct dentry *shmem_find_alias(struct inode *inode)
mm/shmem.c
4432
struct dentry *alias = d_find_alias(inode);
mm/shmem.c
4437
static struct dentry *shmem_fh_to_dentry(struct super_block *sb,
mm/shmem.c
4441
struct dentry *dentry = NULL;
mm/shmem.c
4453
dentry = shmem_find_alias(inode);
mm/shmem.c
4457
return dentry;
mm/shmem.c
4907
static int shmem_show_options(struct seq_file *seq, struct dentry *root)
mm/shrinker.c
771
struct dentry *debugfs_entry = NULL;
mm/shrinker_debug.c
16
static struct dentry *shrinker_debugfs_root;
mm/shrinker_debug.c
165
struct dentry *entry;
mm/shrinker_debug.c
230
struct dentry *shrinker_debugfs_detach(struct shrinker *shrinker,
mm/shrinker_debug.c
233
struct dentry *entry = shrinker->debugfs_entry;
mm/shrinker_debug.c
243
void shrinker_debugfs_remove(struct dentry *debugfs_entry, int debugfs_id)
mm/shrinker_debug.c
252
struct dentry *dentry;
mm/shrinker_debug.c
255
dentry = debugfs_create_dir("shrinker", NULL);
mm/shrinker_debug.c
256
if (IS_ERR(dentry))
mm/shrinker_debug.c
257
return PTR_ERR(dentry);
mm/shrinker_debug.c
258
shrinker_debugfs_root = dentry;
mm/slub.c
8651
static struct dentry *slab_debugfs_root;
mm/slub.c
9780
struct dentry *slab_cache_dir;
mm/swapfile.c
3333
struct dentry *dentry;
mm/swapfile.c
3370
dentry = swap_file->f_path.dentry;
mm/swapfile.c
3378
if (d_unlinked(dentry) || cant_mount(dentry)) {
mm/vmstat.c
2417
struct dentry *extfrag_debug_root;
mm/zsmalloc.c
155
static struct dentry *zs_stat_root;
mm/zsmalloc.c
212
struct dentry *stat_dentry;
mm/zswap.c
1711
static struct dentry *zswap_debugfs_root;
net/6lowpan/debugfs.c
15
static struct dentry *lowpan_debugfs;
net/6lowpan/debugfs.c
167
struct dentry *ctx, u8 id)
net/6lowpan/debugfs.c
170
struct dentry *root;
net/6lowpan/debugfs.c
233
struct dentry *root;
net/6lowpan/debugfs.c
248
struct dentry *contexts;
net/bluetooth/6lowpan.c
27
static struct dentry *lowpan_enable_debugfs;
net/bluetooth/6lowpan.c
28
static struct dentry *lowpan_control_debugfs;
net/bluetooth/af_bluetooth.c
882
struct dentry *bt_debugfs;
net/bluetooth/iso.c
2638
static struct dentry *iso_debugfs;
net/bluetooth/l2cap_core.c
7798
static struct dentry *l2cap_debugfs;
net/bluetooth/rfcomm/core.c
2211
static struct dentry *rfcomm_dlc_debugfs;
net/bluetooth/rfcomm/sock.c
1002
static struct dentry *rfcomm_sock_debugfs;
net/bluetooth/sco.c
1541
static struct dentry *sco_debugfs;
net/caif/caif_socket.c
54
struct dentry *debugfs_socket_dir;
net/ceph/debugfs.c
32
static struct dentry *ceph_debugfs_dir;
net/core/skb_fault_injection.c
94
struct dentry *dir;
net/hsr/hsr_debugfs.c
15
static struct dentry *hsr_debugfs_root_dir;
net/hsr/hsr_debugfs.c
76
struct dentry *de = NULL;
net/hsr/hsr_main.h
220
struct dentry *node_tbl_root;
net/l2tp/l2tp_debugfs.c
32
static struct dentry *rootdir;
net/mac80211/debugfs.c
671
struct dentry *phyd = local->hw.wiphy->debugfsdir;
net/mac80211/debugfs.c
672
struct dentry *statsd;
net/mac80211/debugfs_netdev.c
883
struct dentry *dir = debugfs_create_dir("mesh_stats",
net/mac80211/debugfs_netdev.c
898
struct dentry *dir = debugfs_create_dir("mesh_config",
net/mac80211/debugfs_netdev.c
976
#define DEBUGFS_ADD_MODE(dentry, name, mode) \
net/mac80211/debugfs_netdev.c
977
debugfs_create_file(#name, mode, dentry, \
net/mac80211/debugfs_netdev.c
980
#define DEBUGFS_ADD(dentry, name) DEBUGFS_ADD_MODE(dentry, name, 0400)
net/mac80211/debugfs_netdev.c
983
struct dentry *dentry)
net/mac80211/debugfs_netdev.c
985
DEBUGFS_ADD(dentry, txpower);
net/mac80211/debugfs_netdev.c
986
DEBUGFS_ADD(dentry, user_power_level);
net/mac80211/debugfs_netdev.c
987
DEBUGFS_ADD(dentry, ap_power_level);
net/mac80211/debugfs_netdev.c
991
DEBUGFS_ADD_MODE(dentry, smps, 0600);
net/mac80211/debugfs_sta.c
1235
struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations;
net/mac80211/driver-ops.h
516
struct dentry *dir)
net/mac80211/driver-ops.h
533
struct dentry *dir)
net/mac80211/driver-ops.h
550
struct dentry *dir)
net/mac80211/ieee80211_i.h
1115
struct dentry *debugfs_dir;
net/mac80211/ieee80211_i.h
1208
struct dentry *subdir_stations;
net/mac80211/ieee80211_i.h
1209
struct dentry *default_unicast_key;
net/mac80211/ieee80211_i.h
1210
struct dentry *default_multicast_key;
net/mac80211/ieee80211_i.h
1211
struct dentry *default_mgmt_key;
net/mac80211/ieee80211_i.h
1212
struct dentry *default_beacon_key;
net/mac80211/ieee80211_i.h
1659
struct dentry *rcdir;
net/mac80211/ieee80211_i.h
1660
struct dentry *keys;
net/mac80211/key.h
124
struct dentry *stalink;
net/mac80211/key.h
125
struct dentry *dir;
net/mac80211/rate.h
70
struct dentry *debugfsdir;
net/mac80211/rc80211_minstrel_ht.c
1964
struct dentry *debugfsdir)
net/mac80211/rc80211_minstrel_ht.h
198
void minstrel_ht_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir);
net/mac80211/rc80211_minstrel_ht_debugfs.c
328
minstrel_ht_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir)
net/mac80211/sta_info.h
565
struct dentry *debugfs_dir;
net/mac80211/sta_info.h
761
struct dentry *debugfs_dir;
net/socket.c
374
static char *sockfs_dname(struct dentry *dentry, char *buffer, int buflen)
net/socket.c
377
d_inode(dentry)->i_ino);
net/socket.c
385
struct dentry *dentry, struct inode *inode,
net/socket.c
389
if (dentry->d_name.len + 1 > size)
net/socket.c
391
memcpy(value, dentry->d_name.name, dentry->d_name.len + 1);
net/socket.c
393
return dentry->d_name.len + 1;
net/socket.c
407
struct dentry *dentry, struct inode *inode,
net/socket.c
572
static ssize_t sockfs_listxattr(struct dentry *dentry, char *buffer,
net/socket.c
578
len = security_inode_listsecurity(d_inode(dentry), buffer, size);
net/socket.c
601
struct dentry *dentry, struct iattr *iattr)
net/socket.c
603
int err = simple_setattr(&nop_mnt_idmap, dentry, iattr);
net/socket.c
606
struct socket *sock = SOCKET_I(d_inode(dentry));
net/sunrpc/auth_gss/auth_gss.c
889
static void gss_pipe_dentry_destroy(struct dentry *dir,
net/sunrpc/auth_gss/auth_gss.c
897
static int gss_pipe_dentry_create(struct dentry *dir,
net/sunrpc/cache.c
1899
int sunrpc_cache_register_pipefs(struct dentry *parent,
net/sunrpc/cache.c
1903
struct dentry *dir = rpc_create_cache_dir(parent, name, umode, cd);
net/sunrpc/clnt.c
121
struct dentry *dir;
net/sunrpc/debugfs.c
15
static struct dentry *topdir;
net/sunrpc/debugfs.c
16
static struct dentry *rpc_clnt_dir;
net/sunrpc/debugfs.c
17
static struct dentry *rpc_xprt_dir;
net/sunrpc/debugfs.c
270
struct dentry *dir;
net/sunrpc/rpc_pipe.c
1005
struct dentry *rpc_d_lookup_sb(const struct super_block *sb,
net/sunrpc/rpc_pipe.c
101
dput(dentry);
net/sunrpc/rpc_pipe.c
1096
rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data)
net/sunrpc/rpc_pipe.c
1098
struct dentry *gssd_dentry, *clnt_dentry;
net/sunrpc/rpc_pipe.c
1120
struct dentry *root;
net/sunrpc/rpc_pipe.c
138
struct dentry *dentry;
net/sunrpc/rpc_pipe.c
154
dentry = dget(pipe->dentry);
net/sunrpc/rpc_pipe.c
156
if (dentry) {
net/sunrpc/rpc_pipe.c
157
wake_up(&RPC_I(d_inode(dentry))->waitq);
net/sunrpc/rpc_pipe.c
158
dput(dentry);
net/sunrpc/rpc_pipe.c
171
rpc_close_pipes(struct dentry *dentry)
net/sunrpc/rpc_pipe.c
173
struct inode *inode = dentry->d_inode;
net/sunrpc/rpc_pipe.c
185
pipe->dentry = NULL;
net/sunrpc/rpc_pipe.c
423
spin_lock(&file->f_path.dentry->d_lock);
net/sunrpc/rpc_pipe.c
424
if (!d_unhashed(file->f_path.dentry))
net/sunrpc/rpc_pipe.c
427
spin_unlock(&file->f_path.dentry->d_lock);
net/sunrpc/rpc_pipe.c
430
spin_unlock(&file->f_path.dentry->d_lock);
net/sunrpc/rpc_pipe.c
501
pipe->dentry = NULL;
net/sunrpc/rpc_pipe.c
524
static int rpc_new_file(struct dentry *parent,
net/sunrpc/rpc_pipe.c
530
struct dentry *dentry = simple_start_creating(parent, name);
net/sunrpc/rpc_pipe.c
534
if (IS_ERR(dentry))
net/sunrpc/rpc_pipe.c
535
return PTR_ERR(dentry);
net/sunrpc/rpc_pipe.c
539
simple_done_creating(dentry);
net/sunrpc/rpc_pipe.c
546
d_make_persistent(dentry, inode);
net/sunrpc/rpc_pipe.c
547
fsnotify_create(dir, dentry);
net/sunrpc/rpc_pipe.c
548
simple_done_creating(dentry);
net/sunrpc/rpc_pipe.c
552
static struct dentry *rpc_new_dir(struct dentry *parent,
net/sunrpc/rpc_pipe.c
556
struct dentry *dentry = simple_start_creating(parent, name);
net/sunrpc/rpc_pipe.c
560
if (IS_ERR(dentry))
net/sunrpc/rpc_pipe.c
561
return dentry;
net/sunrpc/rpc_pipe.c
565
simple_done_creating(dentry);
net/sunrpc/rpc_pipe.c
571
d_make_persistent(dentry, inode);
net/sunrpc/rpc_pipe.c
572
fsnotify_mkdir(dir, dentry);
net/sunrpc/rpc_pipe.c
573
simple_done_creating(dentry);
net/sunrpc/rpc_pipe.c
575
return dentry; // borrowed
net/sunrpc/rpc_pipe.c
578
static int rpc_populate(struct dentry *parent,
net/sunrpc/rpc_pipe.c
583
struct dentry *dentry;
net/sunrpc/rpc_pipe.c
600
dentry = rpc_new_dir(parent,
net/sunrpc/rpc_pipe.c
603
if (IS_ERR(dentry)) {
net/sunrpc/rpc_pipe.c
604
err = PTR_ERR(dentry);
net/sunrpc/rpc_pipe.c
635
int rpc_mkpipe_dentry(struct dentry *parent, const char *name,
net/sunrpc/rpc_pipe.c
639
struct dentry *dentry;
net/sunrpc/rpc_pipe.c
650
dentry = simple_start_creating(parent, name);
net/sunrpc/rpc_pipe.c
651
if (IS_ERR(dentry)) {
net/sunrpc/rpc_pipe.c
652
err = PTR_ERR(dentry);
net/sunrpc/rpc_pipe.c
658
simple_done_creating(dentry);
net/sunrpc/rpc_pipe.c
668
pipe->dentry = dentry; // borrowed
net/sunrpc/rpc_pipe.c
669
d_make_persistent(dentry, inode);
net/sunrpc/rpc_pipe.c
670
fsnotify_create(dir, dentry);
net/sunrpc/rpc_pipe.c
671
simple_done_creating(dentry);
net/sunrpc/rpc_pipe.c
692
if (pipe->dentry) {
net/sunrpc/rpc_pipe.c
693
simple_recursive_removal(pipe->dentry, rpc_close_pipes);
net/sunrpc/rpc_pipe.c
694
pipe->dentry = NULL;
net/sunrpc/rpc_pipe.c
836
struct dentry *dir = pdh->pdh_dentry;
net/sunrpc/rpc_pipe.c
846
struct dentry *dir = pdh->pdh_dentry;
net/sunrpc/rpc_pipe.c
863
int rpc_create_client_dir(struct dentry *dentry,
net/sunrpc/rpc_pipe.c
867
struct dentry *ret;
net/sunrpc/rpc_pipe.c
870
ret = rpc_new_dir(dentry, name, 0555);
net/sunrpc/rpc_pipe.c
89
struct dentry *dentry;
net/sunrpc/rpc_pipe.c
892
struct dentry *dentry = rpc_client->cl_pipedir_objects.pdh_dentry;
net/sunrpc/rpc_pipe.c
894
if (dentry == NULL)
net/sunrpc/rpc_pipe.c
898
simple_recursive_removal(dentry, NULL);
net/sunrpc/rpc_pipe.c
920
struct dentry *rpc_create_cache_dir(struct dentry *parent, const char *name,
net/sunrpc/rpc_pipe.c
923
struct dentry *dentry;
net/sunrpc/rpc_pipe.c
925
dentry = rpc_new_dir(parent, name, umode);
net/sunrpc/rpc_pipe.c
926
if (!IS_ERR(dentry)) {
net/sunrpc/rpc_pipe.c
927
int error = rpc_populate(dentry, cache_pipefs_files, 0, 3, cd);
net/sunrpc/rpc_pipe.c
929
simple_recursive_removal(dentry, NULL);
net/sunrpc/rpc_pipe.c
933
return dentry;
net/sunrpc/rpc_pipe.c
936
void rpc_remove_cache_dir(struct dentry *dentry)
net/sunrpc/rpc_pipe.c
938
simple_recursive_removal(dentry, NULL);
net/sunrpc/rpc_pipe.c
97
dentry = dget(pipe->dentry);
net/sunrpc/rpc_pipe.c
99
rpc_purge_list(dentry ? &RPC_I(d_inode(dentry))->waitq : NULL,
net/unix/af_unix.c
1117
u->path.dentry = NULL;
net/unix/af_unix.c
1208
err = vfs_path_lookup(root.dentry, root.mnt, sunaddr->sun_path,
net/unix/af_unix.c
1225
inode = d_backing_inode(path.dentry);
net/unix/af_unix.c
1256
struct dentry *dentry;
net/unix/af_unix.c
1263
dentry = unix_sk(sk)->path.dentry;
net/unix/af_unix.c
1264
if (dentry)
net/unix/af_unix.c
1356
struct dentry *dentry;
net/unix/af_unix.c
1369
dentry = start_creating_path(AT_FDCWD, addr->name->sun_path, &parent, 0);
net/unix/af_unix.c
1370
if (IS_ERR(dentry)) {
net/unix/af_unix.c
1371
err = PTR_ERR(dentry);
net/unix/af_unix.c
1379
err = security_path_mknod(&parent, dentry, mode, 0);
net/unix/af_unix.c
1381
err = vfs_mknod(idmap, d_inode(parent.dentry), dentry, mode, 0, NULL);
net/unix/af_unix.c
1391
new_hash = unix_bsd_hash(d_backing_inode(dentry));
net/unix/af_unix.c
1394
u->path.dentry = dget(dentry);
net/unix/af_unix.c
1399
end_creating_path(&parent, dentry);
net/unix/af_unix.c
1407
vfs_unlink(idmap, d_inode(parent.dentry), dentry, NULL);
net/unix/af_unix.c
1409
end_creating_path(&parent, dentry);
net/unix/af_unix.c
1764
if (otheru->path.dentry) {
net/unix/af_unix.c
3269
if (!unix_sk(sk)->path.dentry)
net/unix/af_unix.c
462
struct dentry *dentry = unix_sk(s)->path.dentry;
net/unix/af_unix.c
464
if (dentry && d_backing_inode(dentry) == i) {
net/unix/af_unix.c
681
u->path.dentry = NULL;
net/unix/af_unix.c
729
if (path.dentry)
net/unix/diag.c
31
struct dentry *dentry = unix_sk(sk)->path.dentry;
net/unix/diag.c
33
if (dentry) {
net/unix/diag.c
35
.udiag_vfs_ino = d_backing_inode(dentry)->i_ino,
net/unix/diag.c
36
.udiag_vfs_dev = dentry->d_sb->s_dev,
net/wireless/core.c
50
static struct dentry *ieee80211_debugfs_dir;
net/wireless/debugfs.c
131
struct dentry *phyd = rdev->wiphy.debugfsdir;
net/wireless/debugfs.c
132
struct dentry *radiod;
net/wireless/debugfs.c
172
static void wiphy_locked_debugfs_read_cancel(struct dentry *dentry,
net/wireless/debugfs.c
252
static void wiphy_locked_debugfs_write_cancel(struct dentry *dentry,
samples/hung_task/hung_task_tests.c
34
static struct dentry *hung_task_dir;
samples/qmi/qmi_sample_client.c
446
struct dentry *de_dir;
samples/qmi/qmi_sample_client.c
447
struct dentry *de_data;
samples/qmi/qmi_sample_client.c
448
struct dentry *de_ping;
samples/qmi/qmi_sample_client.c
451
static struct dentry *qmi_debug_dir;
security/apparmor/af_unix.c
46
if (path->dentry) {
security/apparmor/af_unix.c
48
struct inode *inode = path->dentry->d_inode;
security/apparmor/apparmorfs.c
152
static int aafs_show_path(struct seq_file *seq, struct dentry *dentry)
security/apparmor/apparmorfs.c
1531
struct dentry *dent, *dir;
security/apparmor/apparmorfs.c
154
seq_printf(seq, "%s:[%lu]", AAFS_NAME, d_inode(dentry)->i_ino);
security/apparmor/apparmorfs.c
1652
static struct dentry *create_profile_file(struct dentry *dir, const char *name,
security/apparmor/apparmorfs.c
1701
static const char *rawdata_get_link_base(struct dentry *dentry,
security/apparmor/apparmorfs.c
1713
if (!dentry)
security/apparmor/apparmorfs.c
1739
static const char *rawdata_get_link_sha256(struct dentry *dentry,
security/apparmor/apparmorfs.c
1743
return rawdata_get_link_base(dentry, inode, done, "sha256");
security/apparmor/apparmorfs.c
1746
static const char *rawdata_get_link_abi(struct dentry *dentry,
security/apparmor/apparmorfs.c
1750
return rawdata_get_link_base(dentry, inode, done, "abi");
security/apparmor/apparmorfs.c
1753
static const char *rawdata_get_link_data(struct dentry *dentry,
security/apparmor/apparmorfs.c
1757
return rawdata_get_link_base(dentry, inode, done, "raw_data");
security/apparmor/apparmorfs.c
1775
int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent)
security/apparmor/apparmorfs.c
1778
struct dentry *dent = NULL, *dir;
security/apparmor/apparmorfs.c
1888
static struct dentry *ns_mkdir_op(struct mnt_idmap *idmap, struct inode *dir,
security/apparmor/apparmorfs.c
1889
struct dentry *dentry, umode_t mode)
security/apparmor/apparmorfs.c
1916
error = __aafs_setup_d_inode(dir, dentry, mode | S_IFDIR, NULL,
security/apparmor/apparmorfs.c
1921
ns = __aa_find_or_create_ns(parent, READ_ONCE(dentry->d_name.name),
security/apparmor/apparmorfs.c
1922
dentry);
security/apparmor/apparmorfs.c
1939
static int ns_rmdir_op(struct inode *dir, struct dentry *dentry)
security/apparmor/apparmorfs.c
1959
inode_unlock(dentry->d_inode);
security/apparmor/apparmorfs.c
1962
ns = aa_get_ns(__aa_findn_ns(&parent->sub_ns, dentry->d_name.name,
security/apparmor/apparmorfs.c
1963
dentry->d_name.len));
security/apparmor/apparmorfs.c
1968
AA_BUG(ns_dir(ns) != dentry);
security/apparmor/apparmorfs.c
1976
inode_lock(dentry->d_inode);
security/apparmor/apparmorfs.c
2030
static int __aafs_ns_mkdir_entries(struct aa_ns *ns, struct dentry *dir)
security/apparmor/apparmorfs.c
2032
struct dentry *dent;
security/apparmor/apparmorfs.c
2089
int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name,
security/apparmor/apparmorfs.c
2090
struct dentry *dent)
security/apparmor/apparmorfs.c
2094
struct dentry *dir;
security/apparmor/apparmorfs.c
2523
struct dentry *parent)
security/apparmor/apparmorfs.c
2527
fs_file->dentry = securityfs_create_file(fs_file->name,
security/apparmor/apparmorfs.c
2531
if (IS_ERR(fs_file->dentry)) {
security/apparmor/apparmorfs.c
2532
error = PTR_ERR(fs_file->dentry);
security/apparmor/apparmorfs.c
2533
fs_file->dentry = NULL;
security/apparmor/apparmorfs.c
2547
struct dentry *parent)
security/apparmor/apparmorfs.c
2550
struct dentry *dir;
security/apparmor/apparmorfs.c
2556
fs_dir->dentry = dir;
security/apparmor/apparmorfs.c
2560
error = entry_create_dir(fs_file, fs_dir->dentry);
security/apparmor/apparmorfs.c
2562
error = entry_create_file(fs_file, fs_dir->dentry);
security/apparmor/apparmorfs.c
2581
if (!fs_file->dentry)
security/apparmor/apparmorfs.c
2584
securityfs_remove(fs_file->dentry);
security/apparmor/apparmorfs.c
2585
fs_file->dentry = NULL;
security/apparmor/apparmorfs.c
2620
static int aa_mk_null_file(struct dentry *parent)
security/apparmor/apparmorfs.c
2623
struct dentry *dentry;
security/apparmor/apparmorfs.c
2632
dentry = lookup_noperm(&QSTR(NULL_FILE_NAME), parent);
security/apparmor/apparmorfs.c
2633
if (IS_ERR(dentry)) {
security/apparmor/apparmorfs.c
2634
error = PTR_ERR(dentry);
security/apparmor/apparmorfs.c
2648
d_instantiate(dentry, inode);
security/apparmor/apparmorfs.c
2649
aa_null.dentry = dget(dentry);
security/apparmor/apparmorfs.c
2655
dput(dentry);
security/apparmor/apparmorfs.c
2664
static const char *policy_get_link(struct dentry *dentry,
security/apparmor/apparmorfs.c
2672
if (!dentry)
security/apparmor/apparmorfs.c
2677
path.dentry = dget(ns_dir(ns));
security/apparmor/apparmorfs.c
2684
static int policy_readlink(struct dentry *dentry, char __user *buffer,
security/apparmor/apparmorfs.c
2691
d_inode(dentry)->i_ino);
security/apparmor/apparmorfs.c
2715
struct dentry *dent;
security/apparmor/apparmorfs.c
2721
if (aa_sfs_entry.dentry) {
security/apparmor/apparmorfs.c
2737
dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry,
security/apparmor/apparmorfs.c
2743
dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry,
security/apparmor/apparmorfs.c
2749
dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry,
security/apparmor/apparmorfs.c
2755
dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry,
security/apparmor/apparmorfs.c
2770
dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry,
security/apparmor/apparmorfs.c
2775
error = aa_mk_null_file(aa_sfs_entry.dentry);
security/apparmor/apparmorfs.c
282
static int __aafs_setup_d_inode(struct inode *dir, struct dentry *dentry,
security/apparmor/apparmorfs.c
290
AA_BUG(!dentry);
security/apparmor/apparmorfs.c
310
d_instantiate(dentry, inode);
security/apparmor/apparmorfs.c
311
dget(dentry);
security/apparmor/apparmorfs.c
332
static struct dentry *aafs_create(const char *name, umode_t mode,
security/apparmor/apparmorfs.c
333
struct dentry *parent,
security/apparmor/apparmorfs.c
338
struct dentry *dentry;
security/apparmor/apparmorfs.c
355
dentry = lookup_noperm(&QSTR(name), parent);
security/apparmor/apparmorfs.c
356
if (IS_ERR(dentry)) {
security/apparmor/apparmorfs.c
357
error = PTR_ERR(dentry);
security/apparmor/apparmorfs.c
361
if (d_really_is_positive(dentry)) {
security/apparmor/apparmorfs.c
366
error = __aafs_setup_d_inode(dir, dentry, mode, data, link, fops, iops);
security/apparmor/apparmorfs.c
374
return dentry;
security/apparmor/apparmorfs.c
377
dput(dentry);
security/apparmor/apparmorfs.c
397
static struct dentry *aafs_create_file(const char *name, umode_t mode,
security/apparmor/apparmorfs.c
398
struct dentry *parent,
security/apparmor/apparmorfs.c
413
static struct dentry *aafs_create_dir(const char *name, struct dentry *parent)
security/apparmor/apparmorfs.c
424
static void aafs_remove(struct dentry *dentry)
security/apparmor/apparmorfs.c
428
if (!dentry || IS_ERR(dentry))
security/apparmor/apparmorfs.c
432
dir = d_inode(dentry->d_parent);
security/apparmor/apparmorfs.c
433
dentry = start_removing_dentry(dentry->d_parent, dentry);
security/apparmor/apparmorfs.c
434
if (!IS_ERR(dentry) && simple_positive(dentry)) {
security/apparmor/apparmorfs.c
435
if (d_is_dir(dentry)) {
security/apparmor/apparmorfs.c
436
if (!WARN_ON(!simple_empty(dentry))) {
security/apparmor/apparmorfs.c
437
__simple_rmdir(dir, dentry);
security/apparmor/apparmorfs.c
438
dput(dentry);
security/apparmor/apparmorfs.c
441
__simple_unlink(dir, dentry);
security/apparmor/apparmorfs.c
442
dput(dentry);
security/apparmor/apparmorfs.c
444
d_delete(dentry);
security/apparmor/apparmorfs.c
446
end_removing(dentry);
security/apparmor/domain.c
315
struct dentry *d;
security/apparmor/domain.c
326
d = bprm->file->f_path.dentry;
security/apparmor/file.c
159
if (unlikely(path->dentry == aa_null.dentry))
security/apparmor/file.c
431
struct aa_label *label, struct dentry *old_dentry,
security/apparmor/file.c
432
const struct path *new_dir, struct dentry *new_dentry)
security/apparmor/file.c
434
struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry };
security/apparmor/file.c
435
struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry };
security/apparmor/file.c
632
if (unlikely(file->f_path.dentry == aa_null.dentry))
security/apparmor/file.c
660
if (path_mediated_fs(file->f_path.dentry))
security/apparmor/include/apparmorfs.h
113
int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
security/apparmor/include/apparmorfs.h
115
int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name,
security/apparmor/include/apparmorfs.h
116
struct dentry *dent);
security/apparmor/include/apparmorfs.h
28
struct dentry *dentry;
security/apparmor/include/file.h
96
struct dentry *old_dentry, const struct path *new_dir,
security/apparmor/include/file.h
97
struct dentry *new_dentry);
security/apparmor/include/lib.h
146
static inline bool path_mediated_fs(struct dentry *dentry)
security/apparmor/include/lib.h
148
return !(dentry->d_sb->s_flags & SB_NOUSER);
security/apparmor/include/policy.h
276
struct dentry *dents[AAFS_PROF_SIZEOF];
security/apparmor/include/policy_ns.h
76
struct dentry *dents[AAFS_NS_SIZEOF];
security/apparmor/include/policy_ns.h
95
struct dentry *dir);
security/apparmor/include/policy_unpack.h
115
struct dentry *dents[AAFS_LOADDATA_NDENTS];
security/apparmor/lsm.c
246
d_backing_inode(path->dentry));
security/apparmor/lsm.c
249
d_backing_inode(path->dentry)->i_mode
security/apparmor/lsm.c
252
if (!path_mediated_fs(path->dentry))
security/apparmor/lsm.c
269
struct dentry *dentry, u32 mask,
security/apparmor/lsm.c
272
struct path path = { .mnt = dir->mnt, .dentry = dentry };
security/apparmor/lsm.c
287
struct dentry *dentry, u32 mask)
security/apparmor/lsm.c
289
struct inode *inode = d_backing_inode(dentry);
security/apparmor/lsm.c
293
if (!inode || !path_mediated_fs(dentry))
security/apparmor/lsm.c
300
return common_perm_dir_dentry(op, dir, dentry, mask, &cond);
security/apparmor/lsm.c
314
struct dentry *dentry, u32 mask, umode_t mode)
security/apparmor/lsm.c
318
if (!path_mediated_fs(dir->dentry))
security/apparmor/lsm.c
321
return common_perm_dir_dentry(op, dir, dentry, mask, &cond);
security/apparmor/lsm.c
324
static int apparmor_path_unlink(const struct path *dir, struct dentry *dentry)
security/apparmor/lsm.c
326
return common_perm_rm(OP_UNLINK, dir, dentry, AA_MAY_DELETE);
security/apparmor/lsm.c
329
static int apparmor_path_mkdir(const struct path *dir, struct dentry *dentry,
security/apparmor/lsm.c
332
return common_perm_create(OP_MKDIR, dir, dentry, AA_MAY_CREATE,
security/apparmor/lsm.c
336
static int apparmor_path_rmdir(const struct path *dir, struct dentry *dentry)
security/apparmor/lsm.c
338
return common_perm_rm(OP_RMDIR, dir, dentry, AA_MAY_DELETE);
security/apparmor/lsm.c
341
static int apparmor_path_mknod(const struct path *dir, struct dentry *dentry,
security/apparmor/lsm.c
344
return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode);
security/apparmor/lsm.c
357
static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry,
security/apparmor/lsm.c
360
return common_perm_create(OP_SYMLINK, dir, dentry, AA_MAY_CREATE,
security/apparmor/lsm.c
364
static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir,
security/apparmor/lsm.c
365
struct dentry *new_dentry)
security/apparmor/lsm.c
382
static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry,
security/apparmor/lsm.c
383
const struct path *new_dir, struct dentry *new_dentry,
security/apparmor/lsm.c
399
.dentry = old_dentry };
security/apparmor/lsm.c
401
.dentry = new_dentry };
security/apparmor/lsm.c
467
if (!path_mediated_fs(file->f_path.dentry))
security/apparmor/mount.c
287
(S_ISDIR(path->dentry->d_inode->i_mode) ? PATH_IS_DIR : 0);
security/apparmor/mount.c
406
binary = path->dentry->d_sb->s_type->fs_flags & FS_BINARY_MOUNTDATA;
security/apparmor/mount.c
641
struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
security/apparmor/path.c
105
if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC &&
security/apparmor/path.c
140
res = dentry_path_raw(path->dentry, buf, buflen);
security/apparmor/path.c
160
if (d_unlinked(path->dentry) && d_is_positive(path->dentry) &&
security/apparmor/path.c
99
res = dentry_path(path->dentry, buf, buflen);
security/apparmor/policy.c
1309
struct dentry *parent;
security/apparmor/policy_ns.c
217
struct dentry *dir)
security/apparmor/policy_ns.c
259
struct dentry *dir)
security/commoncap.c
1025
int cap_inode_setxattr(struct dentry *dentry, const char *name,
security/commoncap.c
1028
struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
security/commoncap.c
1067
struct dentry *dentry, const char *name)
security/commoncap.c
1069
struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
security/commoncap.c
1078
struct inode *inode = d_backing_inode(dentry);
security/commoncap.c
326
int cap_inode_need_killpriv(struct dentry *dentry)
security/commoncap.c
328
struct inode *inode = d_backing_inode(dentry);
security/commoncap.c
331
error = __vfs_getxattr(dentry, inode, XATTR_NAME_CAPS, NULL, 0);
security/commoncap.c
351
int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry)
security/commoncap.c
355
error = __vfs_removexattr(idmap, dentry, XATTR_NAME_CAPS);
security/commoncap.c
432
struct dentry *dentry;
security/commoncap.c
438
dentry = d_find_any_alias(inode);
security/commoncap.c
439
if (!dentry)
security/commoncap.c
441
size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf,
security/commoncap.c
443
dput(dentry);
security/commoncap.c
569
int cap_convert_nscap(struct mnt_idmap *idmap, struct dentry *dentry,
security/commoncap.c
576
struct inode *inode = d_backing_inode(dentry);
security/commoncap.c
676
const struct dentry *dentry,
security/commoncap.c
679
struct inode *inode = d_backing_inode(dentry);
security/commoncap.c
694
size = __vfs_getxattr((struct dentry *)dentry, inode,
security/commoncap.c
786
file->f_path.dentry, &vcaps);
security/inode.c
109
static struct dentry *securityfs_create_dentry(const char *name, umode_t mode,
security/inode.c
110
struct dentry *parent, void *data,
security/inode.c
114
struct dentry *dentry;
security/inode.c
134
dentry = ERR_PTR(-ENOMEM);
security/inode.c
140
dentry = simple_start_creating(parent, name);
security/inode.c
141
if (IS_ERR(dentry)) {
security/inode.c
160
d_make_persistent(dentry, inode);
security/inode.c
161
simple_done_creating(dentry);
security/inode.c
162
return dentry; // borrowed
security/inode.c
167
return dentry;
security/inode.c
195
struct dentry *securityfs_create_file(const char *name, umode_t mode,
security/inode.c
196
struct dentry *parent, void *data,
security/inode.c
223
struct dentry *securityfs_create_dir(const char *name, struct dentry *parent)
security/inode.c
255
struct dentry *securityfs_create_symlink(const char *name,
security/inode.c
256
struct dentry *parent,
security/inode.c
260
struct dentry *dent;
security/inode.c
277
static void remove_one(struct dentry *victim)
security/inode.c
299
void securityfs_remove(struct dentry *dentry)
security/inode.c
301
if (IS_ERR_OR_NULL(dentry))
security/inode.c
305
simple_recursive_removal(dentry, remove_one);
security/inode.c
313
static struct dentry *lsm_dentry;
security/integrity/evm/evm.h
72
int evm_update_evmxattr(struct dentry *dentry,
security/integrity/evm/evm.h
76
int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name,
security/integrity/evm/evm.h
80
int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name,
security/integrity/evm/evm_crypto.c
221
static int evm_calc_hmac_or_hash(struct dentry *dentry,
security/integrity/evm/evm_crypto.c
228
struct inode *inode = d_inode(d_real(dentry, D_REAL_METADATA));
security/integrity/evm/evm_crypto.c
275
size = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, xattr->name,
security/integrity/evm/evm_crypto.c
284
user_space_size = vfs_getxattr(&nop_mnt_idmap, dentry,
security/integrity/evm/evm_crypto.c
288
dentry->d_name.name, xattr->name, size,
security/integrity/evm/evm_crypto.c
300
if (inode != d_backing_inode(dentry) && iint) {
security/integrity/evm/evm_crypto.c
316
int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name,
security/integrity/evm/evm_crypto.c
320
return evm_calc_hmac_or_hash(dentry, req_xattr_name, req_xattr_value,
security/integrity/evm/evm_crypto.c
325
int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name,
security/integrity/evm/evm_crypto.c
329
return evm_calc_hmac_or_hash(dentry, req_xattr_name, req_xattr_value,
security/integrity/evm/evm_crypto.c
333
static int evm_is_immutable(struct dentry *dentry, struct inode *inode)
security/integrity/evm/evm_crypto.c
344
rc = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, XATTR_NAME_EVM,
security/integrity/evm/evm_crypto.c
367
int evm_update_evmxattr(struct dentry *dentry, const char *xattr_name,
security/integrity/evm/evm_crypto.c
370
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_crypto.c
379
rc = evm_is_immutable(dentry, inode);
security/integrity/evm/evm_crypto.c
386
rc = evm_calc_hmac(dentry, xattr_name, xattr_value,
security/integrity/evm/evm_crypto.c
390
rc = __vfs_setxattr_noperm(&nop_mnt_idmap, dentry,
security/integrity/evm/evm_crypto.c
395
rc = __vfs_removexattr(&nop_mnt_idmap, dentry, XATTR_NAME_EVM);
security/integrity/evm/evm_main.c
1092
static void evm_post_path_mknod(struct mnt_idmap *idmap, struct dentry *dentry)
security/integrity/evm/evm_main.c
1094
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
131
static int evm_find_protected_xattrs(struct dentry *dentry)
security/integrity/evm/evm_main.c
133
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
142
error = __vfs_getxattr(dentry, inode, xattr->name, NULL, 0);
security/integrity/evm/evm_main.c
154
static int is_unsupported_hmac_fs(struct dentry *dentry)
security/integrity/evm/evm_main.c
156
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
178
static enum integrity_status evm_verify_hmac(struct dentry *dentry,
security/integrity/evm/evm_main.c
187
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
200
is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
206
rc = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, XATTR_NAME_EVM,
security/integrity/evm/evm_main.c
211
rc = evm_find_protected_xattrs(dentry);
security/integrity/evm/evm_main.c
233
rc = evm_calc_hmac(dentry, xattr_name, xattr_value,
security/integrity/evm/evm_main.c
254
rc = evm_calc_hash(dentry, xattr_name, xattr_value,
security/integrity/evm/evm_main.c
270
!is_unsupported_hmac_fs(dentry)) {
security/integrity/evm/evm_main.c
271
evm_update_evmxattr(dentry, xattr_name,
security/integrity/evm/evm_main.c
351
int evm_read_protected_xattrs(struct dentry *dentry, u8 *buffer,
security/integrity/evm/evm_main.c
358
rc = __vfs_getxattr(dentry, d_backing_inode(dentry),
security/integrity/evm/evm_main.c
387
rc = __vfs_getxattr(dentry,
security/integrity/evm/evm_main.c
388
d_backing_inode(dentry), xattr->name,
security/integrity/evm/evm_main.c
421
enum integrity_status evm_verifyxattr(struct dentry *dentry,
security/integrity/evm/evm_main.c
428
return evm_verify_hmac(dentry, xattr_name, xattr_value,
security/integrity/evm/evm_main.c
440
static enum integrity_status evm_verify_current_integrity(struct dentry *dentry)
security/integrity/evm/evm_main.c
442
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
446
return evm_verify_hmac(dentry, NULL, NULL, 0);
security/integrity/evm/evm_main.c
462
struct dentry *dentry, const char *xattr_name,
security/integrity/evm/evm_main.c
468
rc = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, xattr_name, &xattr_data,
security/integrity/evm/evm_main.c
498
struct dentry *dentry, const char *xattr_name,
security/integrity/evm/evm_main.c
506
if (is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
511
if (is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
514
evm_status = evm_verify_current_integrity(dentry);
security/integrity/evm/evm_main.c
519
} else if (is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
522
evm_status = evm_verify_current_integrity(dentry);
security/integrity/evm/evm_main.c
530
iint = evm_iint_inode(d_backing_inode(dentry));
security/integrity/evm/evm_main.c
535
if (dentry->d_sb->s_magic == TMPFS_MAGIC
security/integrity/evm/evm_main.c
536
|| dentry->d_sb->s_magic == SYSFS_MAGIC)
security/integrity/evm/evm_main.c
540
dentry->d_inode, dentry->d_name.name,
security/integrity/evm/evm_main.c
559
!evm_xattr_change(idmap, dentry, xattr_name, xattr_value,
security/integrity/evm/evm_main.c
565
integrity_audit_msg(AUDIT_INTEGRITY_METADATA, d_backing_inode(dentry),
security/integrity/evm/evm_main.c
566
dentry->d_name.name, "appraise_metadata",
security/integrity/evm/evm_main.c
587
static int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/evm/evm_main.c
606
return evm_protect_xattr(idmap, dentry, xattr_name, xattr_value,
security/integrity/evm/evm_main.c
619
static int evm_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/evm/evm_main.c
628
return evm_protect_xattr(idmap, dentry, xattr_name, NULL, 0);
security/integrity/evm/evm_main.c
633
struct dentry *dentry, const char *name,
security/integrity/evm/evm_main.c
639
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
652
struct dentry *dentry,
security/integrity/evm/evm_main.c
673
static int evm_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/evm/evm_main.c
684
evm_status = evm_verify_current_integrity(dentry);
security/integrity/evm/evm_main.c
702
!evm_inode_set_acl_change(idmap, dentry, acl_name, kacl))
security/integrity/evm/evm_main.c
706
integrity_audit_msg(AUDIT_INTEGRITY_METADATA, d_backing_inode(dentry),
security/integrity/evm/evm_main.c
707
dentry->d_name.name, "appraise_metadata",
security/integrity/evm/evm_main.c
725
static int evm_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/evm/evm_main.c
728
return evm_inode_set_acl(idmap, dentry, acl_name, NULL);
security/integrity/evm/evm_main.c
804
static void evm_inode_post_setxattr(struct dentry *dentry,
security/integrity/evm/evm_main.c
813
evm_reset_status(dentry->d_inode);
security/integrity/evm/evm_main.c
821
if (is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
824
evm_update_evmxattr(dentry, xattr_name, xattr_value, xattr_value_len);
security/integrity/evm/evm_main.c
836
static void evm_inode_post_set_acl(struct dentry *dentry, const char *acl_name,
security/integrity/evm/evm_main.c
839
return evm_inode_post_setxattr(dentry, acl_name, NULL, 0, 0);
security/integrity/evm/evm_main.c
852
static void evm_inode_post_removexattr(struct dentry *dentry,
security/integrity/evm/evm_main.c
858
evm_reset_status(dentry->d_inode);
security/integrity/evm/evm_main.c
866
evm_update_evmxattr(dentry, xattr_name, NULL, 0);
security/integrity/evm/evm_main.c
879
struct dentry *dentry,
security/integrity/evm/evm_main.c
882
evm_inode_post_removexattr(dentry, acl_name);
security/integrity/evm/evm_main.c
886
struct dentry *dentry, struct iattr *attr)
security/integrity/evm/evm_main.c
888
struct inode *inode = d_backing_inode(dentry);
security/integrity/evm/evm_main.c
908
static int evm_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/evm/evm_main.c
920
if (is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
926
evm_status = evm_verify_current_integrity(dentry);
security/integrity/evm/evm_main.c
939
!evm_attr_change(idmap, dentry, attr))
security/integrity/evm/evm_main.c
942
integrity_audit_msg(AUDIT_INTEGRITY_METADATA, d_backing_inode(dentry),
security/integrity/evm/evm_main.c
943
dentry->d_name.name, "appraise_metadata",
security/integrity/evm/evm_main.c
961
struct dentry *dentry, int ia_valid)
security/integrity/evm/evm_main.c
966
evm_reset_status(dentry->d_inode);
security/integrity/evm/evm_main.c
971
if (is_unsupported_hmac_fs(dentry))
security/integrity/evm/evm_main.c
975
evm_update_evmxattr(dentry, NULL, NULL, 0);
security/integrity/evm/evm_main.c
978
static int evm_inode_copy_up_xattr(struct dentry *src, const char *name)
security/integrity/evm/evm_secfs.c
19
static struct dentry *evm_dir;
security/integrity/evm/evm_secfs.c
20
static struct dentry *evm_symlink;
security/integrity/evm/evm_secfs.c
23
static struct dentry *evm_xattrs;
security/integrity/evm/evm_secfs.c
303
struct dentry *dentry;
security/integrity/evm/evm_secfs.c
315
dentry = securityfs_create_file("evm", 0660,
security/integrity/evm/evm_secfs.c
317
if (IS_ERR(dentry)) {
security/integrity/iint.c
15
struct dentry *integrity_dir;
security/integrity/ima/ima.h
453
int ima_read_xattr(struct dentry *dentry,
security/integrity/ima/ima.h
500
static inline int ima_read_xattr(struct dentry *dentry,
security/integrity/ima/ima_api.c
324
take_dentry_name_snapshot(&filename, file->f_path.dentry);
security/integrity/ima/ima_api.c
457
take_dentry_name_snapshot(&filename, path->dentry);
security/integrity/ima/ima_appraise.c
101
rc = __vfs_setxattr_noperm(&nop_mnt_idmap, dentry, XATTR_NAME_IMA,
security/integrity/ima/ima_appraise.c
225
int ima_read_xattr(struct dentry *dentry,
security/integrity/ima/ima_appraise.c
230
ret = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, XATTR_NAME_IMA,
security/integrity/ima/ima_appraise.c
490
struct dentry *dentry = file_dentry(file);
security/integrity/ima/ima_appraise.c
491
struct inode *inode = d_backing_inode(dentry);
security/integrity/ima/ima_appraise.c
534
status = evm_verifyxattr(dentry, XATTR_NAME_IMA, xattr_value,
security/integrity/ima/ima_appraise.c
592
if (!ima_fix_xattr(dentry, iint))
security/integrity/ima/ima_appraise.c
620
struct dentry *dentry = file_dentry(file);
security/integrity/ima/ima_appraise.c
636
ima_fix_xattr(dentry, iint);
security/integrity/ima/ima_appraise.c
652
struct dentry *dentry, int ia_valid)
security/integrity/ima/ima_appraise.c
654
struct inode *inode = d_backing_inode(dentry);
security/integrity/ima/ima_appraise.c
676
static int ima_protect_xattr(struct dentry *dentry, const char *xattr_name,
security/integrity/ima/ima_appraise.c
727
static int validate_hash_algo(struct dentry *dentry,
security/integrity/ima/ima_appraise.c
764
path = dentry_path(dentry, pathbuf, PATH_MAX);
security/integrity/ima/ima_appraise.c
766
integrity_audit_msg(AUDIT_INTEGRITY_DATA, d_inode(dentry), path,
security/integrity/ima/ima_appraise.c
774
static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/ima/ima_appraise.c
783
result = ima_protect_xattr(dentry, xattr_name, xattr_value,
security/integrity/ima/ima_appraise.c
789
err = validate_hash_algo(dentry, xvalue, xattr_value_len);
security/integrity/ima/ima_appraise.c
800
ima_reset_appraise_flags(d_backing_inode(dentry), digsig);
security/integrity/ima/ima_appraise.c
807
static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/ima/ima_appraise.c
811
ima_reset_appraise_flags(d_backing_inode(dentry), -1);
security/integrity/ima/ima_appraise.c
816
static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/ima/ima_appraise.c
821
result = ima_protect_xattr(dentry, xattr_name, NULL, 0);
security/integrity/ima/ima_appraise.c
825
ima_reset_appraise_flags(d_backing_inode(dentry), digsig);
security/integrity/ima/ima_appraise.c
832
static int ima_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry,
security/integrity/ima/ima_appraise.c
835
return ima_inode_set_acl(idmap, dentry, acl_name, NULL);
security/integrity/ima/ima_appraise.c
88
static int ima_fix_xattr(struct dentry *dentry, struct ima_iint_cache *iint)
security/integrity/ima/ima_fs.c
377
static struct dentry *ima_dir;
security/integrity/ima/ima_fs.c
378
static struct dentry *ima_symlink;
security/integrity/ima/ima_fs.c
405
struct dentry *dentry;
security/integrity/ima/ima_fs.c
409
dentry = securityfs_create_file(file_name, S_IRUSR | S_IRGRP,
security/integrity/ima/ima_fs.c
412
if (IS_ERR(dentry))
security/integrity/ima/ima_fs.c
413
return PTR_ERR(dentry);
security/integrity/ima/ima_fs.c
417
dentry = securityfs_create_file(file_name, S_IRUSR | S_IRGRP,
security/integrity/ima/ima_fs.c
420
if (IS_ERR(dentry))
security/integrity/ima/ima_fs.c
421
return PTR_ERR(dentry);
security/integrity/ima/ima_fs.c
480
securityfs_remove(file->f_path.dentry);
security/integrity/ima/ima_fs.c
499
struct dentry *dentry;
security/integrity/ima/ima_fs.c
523
dentry = securityfs_create_symlink("binary_runtime_measurements", ima_dir,
security/integrity/ima/ima_fs.c
525
if (IS_ERR(dentry)) {
security/integrity/ima/ima_fs.c
526
ret = PTR_ERR(dentry);
security/integrity/ima/ima_fs.c
530
dentry = securityfs_create_symlink("ascii_runtime_measurements", ima_dir,
security/integrity/ima/ima_fs.c
532
if (IS_ERR(dentry)) {
security/integrity/ima/ima_fs.c
533
ret = PTR_ERR(dentry);
security/integrity/ima/ima_fs.c
537
dentry = securityfs_create_file("runtime_measurements_count",
security/integrity/ima/ima_fs.c
540
if (IS_ERR(dentry)) {
security/integrity/ima/ima_fs.c
541
ret = PTR_ERR(dentry);
security/integrity/ima/ima_fs.c
545
dentry = securityfs_create_file("violations", S_IRUSR | S_IRGRP,
security/integrity/ima/ima_fs.c
547
if (IS_ERR(dentry)) {
security/integrity/ima/ima_fs.c
548
ret = PTR_ERR(dentry);
security/integrity/ima/ima_fs.c
552
dentry = securityfs_create_file("policy", POLICY_FILE_FLAGS,
security/integrity/ima/ima_fs.c
555
if (IS_ERR(dentry)) {
security/integrity/ima/ima_fs.c
556
ret = PTR_ERR(dentry);
security/integrity/ima/ima_main.c
827
static void ima_post_path_mknod(struct mnt_idmap *idmap, struct dentry *dentry)
security/integrity/ima/ima_main.c
830
struct inode *inode = dentry->d_inode;
security/integrity/ima/ima_template_lib.c
511
event_data->file->f_path.dentry);
security/integrity/integrity.h
126
extern struct dentry *integrity_dir;
security/ipe/eval.c
105
ino = d_real_inode(file->f_path.dentry);
security/ipe/fs.c
15
static struct dentry *root __ro_after_init;
security/ipe/fs.c
16
struct dentry *policy_root __ro_after_init;
security/ipe/fs.c
200
struct dentry *dentry;
security/ipe/fs.c
209
dentry = securityfs_create_file("success_audit", 0600, root,
security/ipe/fs.c
211
if (IS_ERR(dentry)) {
security/ipe/fs.c
212
rc = PTR_ERR(dentry);
security/ipe/fs.c
216
dentry = securityfs_create_file("enforce", 0600, root, NULL,
security/ipe/fs.c
218
if (IS_ERR(dentry)) {
security/ipe/fs.c
219
rc = PTR_ERR(dentry);
security/ipe/fs.c
236
dentry = securityfs_create_file("new_policy", 0200, root, NULL, &np_fops);
security/ipe/fs.c
237
if (IS_ERR(dentry)) {
security/ipe/fs.c
238
rc = PTR_ERR(dentry);
security/ipe/fs.h
11
extern struct dentry *policy_root __ro_after_init;
security/ipe/policy.h
87
struct dentry *policyfs;
security/ipe/policy_fs.c
134
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
174
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
226
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
264
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
317
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
366
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
455
struct dentry *policyfs = NULL;
security/ipe/policy_fs.c
457
struct dentry *d = NULL;
security/ipe/policy_fs.c
54
root = d_inode(f->f_path.dentry->d_parent);
security/ipe/policy_fs.c
97
root = d_inode(f->f_path.dentry->d_parent);
security/keys/big_key.c
185
payload->path.dentry = NULL;
security/keys/big_key.c
36
#define BIG_KEY_FILE_THRESHOLD (sizeof(struct inode) + sizeof(struct dentry))
security/landlock/fs.c
1000
return d_is_dir(dentry) ? LANDLOCK_ACCESS_FS_REMOVE_DIR :
security/landlock/fs.c
1030
const struct dentry *const mnt_root,
security/landlock/fs.c
1031
struct dentry *dir,
security/landlock/fs.c
1047
struct dentry *parent_dentry;
security/landlock/fs.c
1128
static int current_check_refer_path(struct dentry *const old_dentry,
security/landlock/fs.c
1130
struct dentry *const new_dentry,
security/landlock/fs.c
1138
struct dentry *old_parent;
security/landlock/fs.c
1164
if (old_dentry->d_parent == new_dir->dentry) {
security/landlock/fs.c
1188
mnt_dir.dentry = new_dir->mnt->mnt_root;
security/landlock/fs.c
1196
old_parent = (old_dentry == mnt_dir.dentry) ? old_dentry :
security/landlock/fs.c
1200
allow_parent1 = collect_domain_accesses(subject->domain, mnt_dir.dentry,
security/landlock/fs.c
1203
allow_parent2 = collect_domain_accesses(subject->domain, mnt_dir.dentry,
security/landlock/fs.c
1204
new_dir->dentry,
security/landlock/fs.c
1224
request1.audit.u.path.dentry = old_parent;
security/landlock/fs.c
1228
request2.audit.u.path.dentry = new_dir->dentry;
security/landlock/fs.c
1390
struct dentry *const dentry)
security/landlock/fs.c
1396
.u.dentry = dentry,
security/landlock/fs.c
1508
static int hook_path_link(struct dentry *const old_dentry,
security/landlock/fs.c
1510
struct dentry *const new_dentry)
security/landlock/fs.c
1517
struct dentry *const old_dentry,
security/landlock/fs.c
1519
struct dentry *const new_dentry,
security/landlock/fs.c
1528
struct dentry *const dentry, const umode_t mode)
security/landlock/fs.c
1534
struct dentry *const dentry, const umode_t mode,
security/landlock/fs.c
1541
struct dentry *const dentry,
security/landlock/fs.c
1548
struct dentry *const dentry)
security/landlock/fs.c
1554
struct dentry *const dentry)
security/landlock/fs.c
333
if (!d_is_dir(path->dentry) &&
security/landlock/fs.c
342
id.key.object = get_inode_object(d_backing_inode(path->dentry));
security/landlock/fs.c
365
const struct dentry *const dentry)
security/landlock/fs.c
374
if (d_is_negative(dentry))
security/landlock/fs.c
377
inode = d_backing_inode(dentry);
security/landlock/fs.c
390
static bool is_nouser_or_private(const struct dentry *dentry)
security/landlock/fs.c
392
return (dentry->d_sb->s_flags & SB_NOUSER) ||
security/landlock/fs.c
393
(d_is_positive(dentry) &&
security/landlock/fs.c
394
unlikely(IS_PRIVATE(d_backing_inode(dentry))));
security/landlock/fs.c
747
struct dentry *const dentry_child1,
security/landlock/fs.c
751
struct dentry *const dentry_child2)
security/landlock/fs.c
767
if (is_nouser_or_private(path->dentry))
security/landlock/fs.c
866
rule = find_rule(domain, walker_path.dentry);
security/landlock/fs.c
879
if (walker_path.dentry == walker_path.mnt->mnt_root) {
security/landlock/fs.c
892
if (unlikely(IS_ROOT(walker_path.dentry))) {
security/landlock/fs.c
908
dput(walker_path.dentry);
security/landlock/fs.c
909
walker_path.dentry = walker_path.mnt->mnt_root;
security/landlock/fs.c
910
dget(walker_path.dentry);
security/landlock/fs.c
912
struct dentry *const parent_dentry =
security/landlock/fs.c
913
dget_parent(walker_path.dentry);
security/landlock/fs.c
915
dput(walker_path.dentry);
security/landlock/fs.c
916
walker_path.dentry = parent_dentry;
security/landlock/fs.c
996
static access_mask_t maybe_remove(const struct dentry *const dentry)
security/landlock/fs.c
998
if (d_is_negative(dentry))
security/landlock/syscalls.c
308
(fd_file(f)->f_path.dentry->d_sb->s_flags & SB_NOUSER) ||
security/landlock/syscalls.c
309
IS_PRIVATE(d_backing_inode(fd_file(f)->f_path.dentry)))
security/loadpin/loadpin.c
408
struct dentry *loadpin_dir, *dentry;
security/loadpin/loadpin.c
417
dentry = securityfs_create_file("dm-verity", 0600, loadpin_dir,
security/loadpin/loadpin.c
419
if (IS_ERR(dentry)) {
security/loadpin/loadpin.c
421
PTR_ERR(dentry));
security/loadpin/loadpin.c
422
return PTR_ERR(dentry);
security/lockdown/lockdown.c
157
struct dentry *dentry;
security/lockdown/lockdown.c
159
dentry = securityfs_create_file("lockdown", 0644, NULL, NULL,
security/lockdown/lockdown.c
161
return PTR_ERR_OR_ZERO(dentry);
security/lsm_audit.c
201
inode = d_backing_inode(a->u.path.dentry);
security/lsm_audit.c
227
inode = a->u.op->path.dentry->d_inode;
security/lsm_audit.c
241
spin_lock(&a->u.dentry->d_lock);
security/lsm_audit.c
242
audit_log_untrustedstring(ab, a->u.dentry->d_name.name);
security/lsm_audit.c
243
spin_unlock(&a->u.dentry->d_lock);
security/lsm_audit.c
245
inode = d_backing_inode(a->u.dentry);
security/lsm_audit.c
254
struct dentry *dentry;
security/lsm_audit.c
259
dentry = d_find_alias_rcu(inode);
security/lsm_audit.c
260
if (dentry) {
security/lsm_audit.c
262
spin_lock(&dentry->d_lock);
security/lsm_audit.c
263
audit_log_untrustedstring(ab, dentry->d_name.name);
security/lsm_audit.c
264
spin_unlock(&dentry->d_lock);
security/lsm_audit.c
323
if (u->path.dentry) {
security/safesetid/securityfs.c
314
struct dentry *policy_dir;
security/safesetid/securityfs.c
315
struct dentry *uid_policy_file;
security/safesetid/securityfs.c
316
struct dentry *gid_policy_file;
security/security.c
1038
int security_sb_statfs(struct dentry *dentry)
security/security.c
1040
return call_int_hook(sb_statfs, dentry);
security/security.c
1245
int security_dentry_init_security(struct dentry *dentry, int mode,
security/security.c
1250
return call_int_hook(dentry_init_security, dentry, mode, name,
security/security.c
1270
int security_dentry_create_files_as(struct dentry *dentry, int mode,
security/security.c
1274
return call_int_hook(dentry_create_files_as, dentry, mode,
security/security.c
1387
int security_path_mknod(const struct path *dir, struct dentry *dentry,
security/security.c
1390
if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
security/security.c
1392
return call_int_hook(path_mknod, dir, dentry, mode, dev);
security/security.c
1403
void security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry)
security/security.c
1405
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1407
call_void_hook(path_post_mknod, idmap, dentry);
security/security.c
1420
int security_path_mkdir(const struct path *dir, struct dentry *dentry,
security/security.c
1423
if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
security/security.c
1425
return call_int_hook(path_mkdir, dir, dentry, mode);
security/security.c
1438
int security_path_rmdir(const struct path *dir, struct dentry *dentry)
security/security.c
1440
if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
security/security.c
1442
return call_int_hook(path_rmdir, dir, dentry);
security/security.c
1454
int security_path_unlink(const struct path *dir, struct dentry *dentry)
security/security.c
1456
if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
security/security.c
1458
return call_int_hook(path_unlink, dir, dentry);
security/security.c
1472
int security_path_symlink(const struct path *dir, struct dentry *dentry,
security/security.c
1475
if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
security/security.c
1477
return call_int_hook(path_symlink, dir, dentry, old_name);
security/security.c
1490
int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
security/security.c
1491
struct dentry *new_dentry)
security/security.c
1510
int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
security/security.c
1511
const struct path *new_dir, struct dentry *new_dentry,
security/security.c
1536
if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
security/security.c
1554
if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
security/security.c
1571
if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
security/security.c
1600
int security_inode_create(struct inode *dir, struct dentry *dentry,
security/security.c
1605
return call_int_hook(inode_create, dir, dentry, mode);
security/security.c
1634
int security_inode_link(struct dentry *old_dentry, struct inode *dir,
security/security.c
1635
struct dentry *new_dentry)
security/security.c
1651
int security_inode_unlink(struct inode *dir, struct dentry *dentry)
security/security.c
1653
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1655
return call_int_hook(inode_unlink, dir, dentry);
security/security.c
1668
int security_inode_symlink(struct inode *dir, struct dentry *dentry,
security/security.c
1673
return call_int_hook(inode_symlink, dir, dentry, old_name);
security/security.c
1687
int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
security/security.c
1691
return call_int_hook(inode_mkdir, dir, dentry, mode);
security/security.c
1704
int security_inode_rmdir(struct inode *dir, struct dentry *dentry)
security/security.c
1706
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1708
return call_int_hook(inode_rmdir, dir, dentry);
security/security.c
1725
int security_inode_mknod(struct inode *dir, struct dentry *dentry,
security/security.c
1730
return call_int_hook(inode_mknod, dir, dentry, mode, dev);
security/security.c
1745
int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
security/security.c
1746
struct inode *new_dir, struct dentry *new_dentry,
security/security.c
1773
int security_inode_readlink(struct dentry *dentry)
security/security.c
1775
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1777
return call_int_hook(inode_readlink, dentry);
security/security.c
1791
int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
security/security.c
1796
return call_int_hook(inode_follow_link, dentry, inode, rcu);
security/security.c
1834
struct dentry *dentry, struct iattr *attr)
security/security.c
1836
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1838
return call_int_hook(inode_setattr, idmap, dentry, attr);
security/security.c
1850
void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/security.c
1853
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1855
call_void_hook(inode_post_setattr, idmap, dentry, ia_valid);
security/security.c
1868
if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
security/security.c
1900
struct dentry *dentry, const char *name,
security/security.c
1905
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1910
rc = cap_inode_setxattr(dentry, name, value, size, flags);
security/security.c
1915
return call_int_hook(inode_setxattr, idmap, dentry, name, value, size,
security/security.c
1932
struct dentry *dentry, const char *acl_name,
security/security.c
1935
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1937
return call_int_hook(inode_set_acl, idmap, dentry, acl_name, kacl);
security/security.c
1949
void security_inode_post_set_acl(struct dentry *dentry, const char *acl_name,
security/security.c
1952
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1954
call_void_hook(inode_post_set_acl, dentry, acl_name, kacl);
security/security.c
1969
struct dentry *dentry, const char *acl_name)
security/security.c
1971
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1973
return call_int_hook(inode_get_acl, idmap, dentry, acl_name);
security/security.c
1988
struct dentry *dentry, const char *acl_name)
security/security.c
1990
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
1992
return call_int_hook(inode_remove_acl, idmap, dentry, acl_name);
security/security.c
2005
struct dentry *dentry, const char *acl_name)
security/security.c
2007
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
2009
call_void_hook(inode_post_remove_acl, idmap, dentry, acl_name);
security/security.c
2022
void security_inode_post_setxattr(struct dentry *dentry, const char *name,
security/security.c
2025
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
2027
call_void_hook(inode_post_setxattr, dentry, name, value, size, flags);
security/security.c
2040
int security_inode_getxattr(struct dentry *dentry, const char *name)
security/security.c
2042
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
2044
return call_int_hook(inode_getxattr, dentry, name);
security/security.c
2056
int security_inode_listxattr(struct dentry *dentry)
security/security.c
2058
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
2060
return call_int_hook(inode_listxattr, dentry);
security/security.c
2087
struct dentry *dentry, const char *name)
security/security.c
2091
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
2096
rc = cap_inode_removexattr(idmap, dentry, name);
security/security.c
2101
return call_int_hook(inode_removexattr, idmap, dentry, name);
security/security.c
2111
void security_inode_post_removexattr(struct dentry *dentry, const char *name)
security/security.c
2113
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/security.c
2115
call_void_hook(inode_post_removexattr, dentry, name);
security/security.c
2128
int security_inode_file_setattr(struct dentry *dentry, struct file_kattr *fa)
security/security.c
2130
return call_int_hook(inode_file_setattr, dentry, fa);
security/security.c
2143
int security_inode_file_getattr(struct dentry *dentry, struct file_kattr *fa)
security/security.c
2145
return call_int_hook(inode_file_getattr, dentry, fa);
security/security.c
2159
int security_inode_need_killpriv(struct dentry *dentry)
security/security.c
2161
return call_int_hook(inode_need_killpriv, dentry);
security/security.c
2176
struct dentry *dentry)
security/security.c
2178
return call_int_hook(inode_killpriv, idmap, dentry);
security/security.c
2279
int security_inode_copy_up(struct dentry *src, struct cred **new)
security/security.c
2298
int security_inode_copy_up_xattr(struct dentry *src, const char *name)
security/security.c
3598
void security_d_instantiate(struct dentry *dentry, struct inode *inode)
security/security.c
3602
call_void_hook(d_instantiate, dentry, inode);
security/security.c
3946
int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
security/security.c
3948
return call_int_hook(inode_setsecctx, dentry, ctx, ctxlen);
security/security.c
662
int security_quota_on(struct dentry *dentry)
security/security.c
664
return call_int_hook(quota_on, dentry);
security/selinux/hooks.c
1129
struct dentry *root = sb->s_root;
security/selinux/hooks.c
1330
static int selinux_genfs_get_sid(struct dentry *dentry,
security/selinux/hooks.c
1336
struct super_block *sb = dentry->d_sb;
security/selinux/hooks.c
1343
path = dentry_path_raw(dentry, buffer, PAGE_SIZE);
security/selinux/hooks.c
1368
static int inode_doinit_use_xattr(struct inode *inode, struct dentry *dentry,
security/selinux/hooks.c
1382
rc = __vfs_getxattr(dentry, inode, XATTR_NAME_SELINUX, context, len);
security/selinux/hooks.c
1387
rc = __vfs_getxattr(dentry, inode, XATTR_NAME_SELINUX, NULL, 0);
security/selinux/hooks.c
1397
rc = __vfs_getxattr(dentry, inode, XATTR_NAME_SELINUX,
security/selinux/hooks.c
1430
static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dentry)
security/selinux/hooks.c
1436
struct dentry *dentry;
security/selinux/hooks.c
1482
dentry = dget(opt_dentry);
security/selinux/hooks.c
1490
dentry = d_find_alias(inode);
security/selinux/hooks.c
1491
if (!dentry)
security/selinux/hooks.c
1492
dentry = d_find_any_alias(inode);
security/selinux/hooks.c
1494
if (!dentry) {
security/selinux/hooks.c
1507
rc = inode_doinit_use_xattr(inode, dentry, sbsec->def_sid,
security/selinux/hooks.c
1509
dput(dentry);
security/selinux/hooks.c
1541
dentry = dget(opt_dentry);
security/selinux/hooks.c
1547
dentry = d_find_alias(inode);
security/selinux/hooks.c
1548
if (!dentry)
security/selinux/hooks.c
1549
dentry = d_find_any_alias(inode);
security/selinux/hooks.c
1560
if (!dentry)
security/selinux/hooks.c
1562
rc = selinux_genfs_get_sid(dentry, sclass,
security/selinux/hooks.c
1565
dput(dentry);
security/selinux/hooks.c
1571
rc = inode_doinit_use_xattr(inode, dentry,
security/selinux/hooks.c
1574
dput(dentry);
security/selinux/hooks.c
1578
dput(dentry);
security/selinux/hooks.c
1698
struct dentry *dentry,
security/selinux/hooks.c
1702
struct inode *inode = d_backing_inode(dentry);
security/selinux/hooks.c
1706
ad.u.dentry = dentry;
security/selinux/hooks.c
1709
__inode_security_revalidate(inode, dentry, true);
security/selinux/hooks.c
1721
struct inode *inode = d_backing_inode(path->dentry);
security/selinux/hooks.c
1728
__inode_security_revalidate(inode, path->dentry, true);
security/selinux/hooks.c
1823
struct dentry *dentry,
security/selinux/hooks.c
1839
ad.u.dentry = dentry;
security/selinux/hooks.c
1847
rc = selinux_determine_inode_label(crsec, dir, &dentry->d_name, tclass,
security/selinux/hooks.c
1867
struct dentry *dentry,
security/selinux/hooks.c
1878
isec = backing_inode_security(dentry);
security/selinux/hooks.c
1881
ad.u.dentry = dentry;
security/selinux/hooks.c
1910
struct dentry *old_dentry,
security/selinux/hooks.c
1912
struct dentry *new_dentry)
security/selinux/hooks.c
1928
ad.u.dentry = old_dentry;
security/selinux/hooks.c
1944
ad.u.dentry = new_dentry;
security/selinux/hooks.c
2085
struct dentry *dentry = file->f_path.dentry;
security/selinux/hooks.c
2108
if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
security/selinux/hooks.c
2111
isec = backing_inode_security(dentry);
security/selinux/hooks.c
2203
static int selinux_quota_on(struct dentry *dentry)
security/selinux/hooks.c
2207
return dentry_has_perm(cred, dentry, FILE__QUOTAON);
security/selinux/hooks.c
272
static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dentry);
security/selinux/hooks.c
2767
ad.u.dentry = sb->s_root;
security/selinux/hooks.c
2771
static int selinux_sb_statfs(struct dentry *dentry)
security/selinux/hooks.c
2777
ad.u.dentry = dentry->d_sb->s_root;
security/selinux/hooks.c
2778
return superblock_has_perm(cred, dentry->d_sb, FILESYSTEM__GETATTR, &ad);
security/selinux/hooks.c
2790
return superblock_has_perm(cred, path->dentry->d_sb,
security/selinux/hooks.c
281
struct dentry *dentry,
security/selinux/hooks.c
2896
static int selinux_dentry_init_security(struct dentry *dentry, int mode,
security/selinux/hooks.c
2905
d_inode(dentry->d_parent), name,
security/selinux/hooks.c
2918
static int selinux_dentry_create_files_as(struct dentry *dentry, int mode,
security/selinux/hooks.c
2928
d_inode(dentry->d_parent), name,
security/selinux/hooks.c
298
inode_doinit_with_dentry(inode, dentry);
security/selinux/hooks.c
3050
static int selinux_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode)
security/selinux/hooks.c
3052
return may_create(dir, dentry, SECCLASS_FILE);
security/selinux/hooks.c
3055
static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry)
security/selinux/hooks.c
3060
static int selinux_inode_unlink(struct inode *dir, struct dentry *dentry)
security/selinux/hooks.c
3062
return may_link(dir, dentry, MAY_UNLINK);
security/selinux/hooks.c
3065
static int selinux_inode_symlink(struct inode *dir, struct dentry *dentry, const char *name)
security/selinux/hooks.c
3067
return may_create(dir, dentry, SECCLASS_LNK_FILE);
security/selinux/hooks.c
3070
static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mask)
security/selinux/hooks.c
3072
return may_create(dir, dentry, SECCLASS_DIR);
security/selinux/hooks.c
3075
static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry)
security/selinux/hooks.c
3077
return may_link(dir, dentry, MAY_RMDIR);
security/selinux/hooks.c
3080
static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
security/selinux/hooks.c
3082
return may_create(dir, dentry, inode_mode_to_security_class(mode));
security/selinux/hooks.c
3085
static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry,
security/selinux/hooks.c
3086
struct inode *new_inode, struct dentry *new_dentry)
security/selinux/hooks.c
3091
static int selinux_inode_readlink(struct dentry *dentry)
security/selinux/hooks.c
3095
return dentry_has_perm(cred, dentry, FILE__READ);
security/selinux/hooks.c
3098
static int selinux_inode_follow_link(struct dentry *dentry, struct inode *inode,
security/selinux/hooks.c
3106
ad.u.dentry = dentry;
security/selinux/hooks.c
3278
static int selinux_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/selinux/hooks.c
3282
struct inode *inode = d_backing_inode(dentry);
security/selinux/hooks.c
3296
return dentry_has_perm(cred, dentry, FILE__SETATTR);
security/selinux/hooks.c
3304
return dentry_has_perm(cred, dentry, av);
security/selinux/hooks.c
3349
struct dentry *dentry, const char *name,
security/selinux/hooks.c
3352
struct inode *inode = d_backing_inode(dentry);
security/selinux/hooks.c
336
static inline struct inode_security_struct *backing_inode_security_novalidate(struct dentry *dentry)
security/selinux/hooks.c
3361
return dentry_has_perm(current_cred(), dentry, FILE__SETATTR);
security/selinux/hooks.c
3374
ad.u.dentry = dentry;
security/selinux/hooks.c
3376
isec = backing_inode_security(dentry);
security/selinux/hooks.c
338
return selinux_inode(d_backing_inode(dentry));
security/selinux/hooks.c
3435
struct dentry *dentry, const char *acl_name,
security/selinux/hooks.c
3438
return dentry_has_perm(current_cred(), dentry, FILE__SETATTR);
security/selinux/hooks.c
344
static inline struct inode_security_struct *backing_inode_security(struct dentry *dentry)
security/selinux/hooks.c
3442
struct dentry *dentry, const char *acl_name)
security/selinux/hooks.c
3444
return dentry_has_perm(current_cred(), dentry, FILE__GETATTR);
security/selinux/hooks.c
3448
struct dentry *dentry, const char *acl_name)
security/selinux/hooks.c
3450
return dentry_has_perm(current_cred(), dentry, FILE__SETATTR);
security/selinux/hooks.c
3453
static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name,
security/selinux/hooks.c
3457
struct inode *inode = d_backing_inode(dentry);
security/selinux/hooks.c
346
struct inode *inode = d_backing_inode(dentry);
security/selinux/hooks.c
3485
isec = backing_inode_security(dentry);
security/selinux/hooks.c
3493
static int selinux_inode_getxattr(struct dentry *dentry, const char *name)
security/selinux/hooks.c
3497
return dentry_has_perm(cred, dentry, FILE__GETATTR);
security/selinux/hooks.c
3500
static int selinux_inode_listxattr(struct dentry *dentry)
security/selinux/hooks.c
3504
return dentry_has_perm(cred, dentry, FILE__GETATTR);
security/selinux/hooks.c
3508
struct dentry *dentry, const char *name)
security/selinux/hooks.c
3512
return dentry_has_perm(current_cred(), dentry, FILE__SETATTR);
security/selinux/hooks.c
352
__inode_security_revalidate(inode, dentry, true);
security/selinux/hooks.c
3522
static int selinux_inode_file_setattr(struct dentry *dentry,
security/selinux/hooks.c
3525
return dentry_has_perm(current_cred(), dentry, FILE__SETATTR);
security/selinux/hooks.c
3528
static int selinux_inode_file_getattr(struct dentry *dentry,
security/selinux/hooks.c
3531
return dentry_has_perm(current_cred(), dentry, FILE__GETATTR);
security/selinux/hooks.c
3555
ret = superblock_has_perm(current_cred(), path->dentry->d_sb,
security/selinux/hooks.c
3682
static int selinux_inode_copy_up(struct dentry *src, struct cred **new)
security/selinux/hooks.c
3702
static int selinux_inode_copy_up_xattr(struct dentry *dentry, const char *name)
security/selinux/hooks.c
517
struct dentry *root = sb->s_root;
security/selinux/hooks.c
566
struct dentry *root = sb->s_root;
security/selinux/hooks.c
646
struct dentry *root = sb->s_root;
security/selinux/hooks.c
6547
static void selinux_d_instantiate(struct dentry *dentry, struct inode *inode)
security/selinux/hooks.c
6550
inode_doinit_with_dentry(inode, dentry);
security/selinux/hooks.c
6883
static int selinux_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
security/selinux/hooks.c
6885
return __vfs_setxattr_locked(&nop_mnt_idmap, dentry, XATTR_NAME_SELINUX,
security/selinux/hooks.c
7147
sb = path.dentry->d_sb;
security/selinux/selinuxfs.c
1213
static struct dentry *sel_attach(struct dentry *parent, const char *name,
security/selinux/selinuxfs.c
1216
struct dentry *dentry = d_alloc_name(parent, name);
security/selinux/selinuxfs.c
1217
if (unlikely(!dentry)) {
security/selinux/selinuxfs.c
1221
d_make_persistent(dentry, inode);
security/selinux/selinuxfs.c
1222
dput(dentry);
security/selinux/selinuxfs.c
1223
return dentry;
security/selinux/selinuxfs.c
1226
static int sel_attach_file(struct dentry *parent, const char *name,
security/selinux/selinuxfs.c
1229
struct dentry *dentry = sel_attach(parent, name, inode);
security/selinux/selinuxfs.c
1230
return PTR_ERR_OR_ZERO(dentry);
security/selinux/selinuxfs.c
1242
const char *name = filep->f_path.dentry->d_name.name;
security/selinux/selinuxfs.c
1274
const char *name = filep->f_path.dentry->d_name.name;
security/selinux/selinuxfs.c
1373
static int sel_make_bools(struct selinux_policy *newpolicy, struct dentry *bool_dir,
security/selinux/selinuxfs.c
1604
static int sel_make_avc_files(struct dentry *dir)
security/selinux/selinuxfs.c
1635
static int sel_make_ss_files(struct dentry *dir)
security/selinux/selinuxfs.c
1683
static int sel_make_initcon_files(struct dentry *dir)
security/selinux/selinuxfs.c
1776
struct dentry *dir)
security/selinux/selinuxfs.c
1809
struct dentry *dir)
security/selinux/selinuxfs.c
1813
struct dentry *dentry = NULL;
security/selinux/selinuxfs.c
1828
dentry = sel_make_dir(dir, "perms", &fsi->last_class_ino);
security/selinux/selinuxfs.c
1829
if (IS_ERR(dentry))
security/selinux/selinuxfs.c
1830
return PTR_ERR(dentry);
security/selinux/selinuxfs.c
1832
return sel_make_perm_files(newpolicy, classname, index, dentry);
security/selinux/selinuxfs.c
1836
struct dentry *class_dir,
security/selinux/selinuxfs.c
1851
struct dentry *class_name_dir;
security/selinux/selinuxfs.c
1874
static int sel_make_policycap(struct dentry *dir)
security/selinux/selinuxfs.c
1901
static struct dentry *sel_make_dir(struct dentry *dir, const char *name,
security/selinux/selinuxfs.c
1931
static struct dentry *sel_make_swapover_dir(struct super_block *sb,
security/selinux/selinuxfs.c
1934
struct dentry *dentry = d_alloc_name(sb->s_root, ".swapover");
security/selinux/selinuxfs.c
1937
if (!dentry)
security/selinux/selinuxfs.c
1942
dput(dentry);
security/selinux/selinuxfs.c
1951
d_make_persistent(dentry, inode);
security/selinux/selinuxfs.c
1954
dput(dentry);
security/selinux/selinuxfs.c
1955
return dentry; // borrowed
security/selinux/selinuxfs.c
1964
struct dentry *dentry;
security/selinux/selinuxfs.c
2023
dentry = sel_make_dir(sb->s_root, "avc", &fsi->last_ino);
security/selinux/selinuxfs.c
2024
if (IS_ERR(dentry)) {
security/selinux/selinuxfs.c
2025
ret = PTR_ERR(dentry);
security/selinux/selinuxfs.c
2029
ret = sel_make_avc_files(dentry);
security/selinux/selinuxfs.c
2033
dentry = sel_make_dir(sb->s_root, "ss", &fsi->last_ino);
security/selinux/selinuxfs.c
2034
if (IS_ERR(dentry)) {
security/selinux/selinuxfs.c
2035
ret = PTR_ERR(dentry);
security/selinux/selinuxfs.c
2039
ret = sel_make_ss_files(dentry);
security/selinux/selinuxfs.c
2043
dentry = sel_make_dir(sb->s_root, "initial_contexts", &fsi->last_ino);
security/selinux/selinuxfs.c
2044
if (IS_ERR(dentry)) {
security/selinux/selinuxfs.c
2045
ret = PTR_ERR(dentry);
security/selinux/selinuxfs.c
2049
ret = sel_make_initcon_files(dentry);
security/selinux/selinuxfs.c
2060
dentry = sel_make_dir(sb->s_root, "policy_capabilities", &fsi->last_ino);
security/selinux/selinuxfs.c
2061
if (IS_ERR(dentry)) {
security/selinux/selinuxfs.c
2062
ret = PTR_ERR(dentry);
security/selinux/selinuxfs.c
2066
ret = sel_make_policycap(dentry);
security/selinux/selinuxfs.c
2136
selinux_null.dentry = try_lookup_noperm(&null_name,
security/selinux/selinuxfs.c
2138
if (IS_ERR(selinux_null.dentry)) {
security/selinux/selinuxfs.c
2140
err = PTR_ERR(selinux_null.dentry);
security/selinux/selinuxfs.c
2141
selinux_null.dentry = NULL;
security/selinux/selinuxfs.c
327
static int sel_make_bools(struct selinux_policy *newpolicy, struct dentry *bool_dir,
security/selinux/selinuxfs.c
331
struct dentry *class_dir,
security/selinux/selinuxfs.c
335
static struct dentry *sel_make_dir(struct dentry *dir, const char *name,
security/selinux/selinuxfs.c
339
static struct dentry *sel_make_swapover_dir(struct super_block *sb,
security/selinux/selinuxfs.c
508
struct dentry *tmp_parent, *tmp_bool_dir, *tmp_class_dir;
security/selinux/selinuxfs.c
73
struct dentry *bool_dir;
security/selinux/selinuxfs.c
77
struct dentry *class_dir;
security/smack/smack.h
493
struct dentry *d)
security/smack/smack.h
495
a->a.u.dentry = d;
security/smack/smack.h
524
struct dentry *d)
security/smack/smack_lsm.c
1089
static int smack_inode_link(struct dentry *old_dentry, struct inode *dir,
security/smack/smack_lsm.c
1090
struct dentry *new_dentry)
security/smack/smack_lsm.c
1121
static int smack_inode_unlink(struct inode *dir, struct dentry *dentry)
security/smack/smack_lsm.c
1123
struct inode *ip = d_backing_inode(dentry);
security/smack/smack_lsm.c
1128
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1155
static int smack_inode_rmdir(struct inode *dir, struct dentry *dentry)
security/smack/smack_lsm.c
1161
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1166
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad);
security/smack/smack_lsm.c
1167
rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc);
security/smack/smack_lsm.c
1194
struct dentry *old_dentry,
security/smack/smack_lsm.c
1196
struct dentry *new_dentry)
security/smack/smack_lsm.c
1264
static int smack_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
security/smack/smack_lsm.c
1276
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1278
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad);
security/smack/smack_lsm.c
1279
rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc);
security/smack/smack_lsm.c
1292
struct inode *inode = d_backing_inode(path->dentry);
security/smack/smack_lsm.c
1343
struct dentry *dentry, const char *name,
security/smack/smack_lsm.c
1352
umode_t const i_mode = d_backing_inode(dentry)->i_mode;
security/smack/smack_lsm.c
1397
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1400
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad);
security/smack/smack_lsm.c
1401
rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc);
security/smack/smack_lsm.c
1418
static void smack_inode_post_setxattr(struct dentry *dentry, const char *name,
security/smack/smack_lsm.c
1422
struct inode_smack *isp = smack_inode(d_backing_inode(dentry));
security/smack/smack_lsm.c
1453
static int smack_inode_getxattr(struct dentry *dentry, const char *name)
security/smack/smack_lsm.c
1459
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1461
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_READ, &ad);
security/smack/smack_lsm.c
1462
rc = smk_bu_inode(d_backing_inode(dentry), MAY_READ, rc);
security/smack/smack_lsm.c
1477
struct dentry *dentry, const char *name)
security/smack/smack_lsm.c
1497
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1499
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad);
security/smack/smack_lsm.c
1500
rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc);
security/smack/smack_lsm.c
1504
isp = smack_inode(d_backing_inode(dentry));
security/smack/smack_lsm.c
1512
if (!S_ISSOCK(d_backing_inode(dentry)->i_mode)) {
security/smack/smack_lsm.c
1513
struct super_block *sbp = dentry->d_sb;
security/smack/smack_lsm.c
1538
struct dentry *dentry, const char *acl_name,
security/smack/smack_lsm.c
1545
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1547
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad);
security/smack/smack_lsm.c
1548
rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc);
security/smack/smack_lsm.c
1561
struct dentry *dentry, const char *acl_name)
security/smack/smack_lsm.c
1567
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1569
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_READ, &ad);
security/smack/smack_lsm.c
1570
rc = smk_bu_inode(d_backing_inode(dentry), MAY_READ, rc);
security/smack/smack_lsm.c
1583
struct dentry *dentry, const char *acl_name)
security/smack/smack_lsm.c
1589
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/smack/smack_lsm.c
1591
rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad);
security/smack/smack_lsm.c
1592
rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc);
security/smack/smack_lsm.c
276
struct dentry *dp)
security/smack/smack_lsm.c
3504
static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)
security/smack/smack_lsm.c
3515
struct dentry *dp;
security/smack/smack_lsm.c
4955
static int smack_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
security/smack/smack_lsm.c
4957
return __vfs_setxattr_locked(&nop_mnt_idmap, dentry, XATTR_NAME_SMACK,
security/smack/smack_lsm.c
4971
static int smack_inode_copy_up(struct dentry *dentry, struct cred **new)
security/smack/smack_lsm.c
4990
isp = smack_inode(d_inode(dentry));
security/smack/smack_lsm.c
4997
static int smack_inode_copy_up_xattr(struct dentry *src, const char *name)
security/smack/smack_lsm.c
5008
static int smack_dentry_create_files_as(struct dentry *dentry, int mode,
security/smack/smack_lsm.c
5026
isp = smack_inode(d_inode(dentry->d_parent));
security/smack/smack_lsm.c
785
struct dentry *root = sb->s_root;
security/smack/smack_lsm.c
877
static int smack_sb_statfs(struct dentry *dentry)
security/smack/smack_lsm.c
879
struct superblock_smack *sbp = smack_superblock(dentry->d_sb);
security/smack/smack_lsm.c
884
smk_ad_setfield_u_fs_path_dentry(&ad, dentry);
security/tomoyo/condition.c
716
struct dentry *dentry = NULL;
security/tomoyo/condition.c
723
dentry = obj->path1.dentry;
security/tomoyo/condition.c
724
if (!dentry)
security/tomoyo/condition.c
728
dentry = obj->path2.dentry;
security/tomoyo/condition.c
729
if (!dentry)
security/tomoyo/condition.c
733
if (!dentry)
security/tomoyo/condition.c
735
dentry = dget_parent(dentry);
security/tomoyo/condition.c
738
inode = d_backing_inode(dentry);
security/tomoyo/condition.c
751
dput(dentry);
security/tomoyo/file.c
718
.path1 = { .mnt = path->mnt, .dentry = path->dentry },
security/tomoyo/file.c
766
.path1 = { .mnt = path->mnt, .dentry = path->dentry },
security/tomoyo/file.c
812
.path1 = { .mnt = path->mnt, .dentry = path->dentry },
security/tomoyo/file.c
869
.path1 = { .mnt = path->mnt, .dentry = path->dentry },
security/tomoyo/file.c
916
.path1 = { .mnt = path1->mnt, .dentry = path1->dentry },
security/tomoyo/file.c
917
.path2 = { .mnt = path2->mnt, .dentry = path2->dentry }
security/tomoyo/file.c
933
if (!d_is_dir(path1->dentry))
security/tomoyo/mount.c
177
if (obj.path1.dentry)
security/tomoyo/realpath.c
103
struct inode *inode = d_backing_inode(path->dentry);
security/tomoyo/realpath.c
125
static char *tomoyo_get_dentry_path(struct dentry *dentry, char * const buffer,
security/tomoyo/realpath.c
131
pos = dentry_path_raw(dentry, buffer, buflen - 1);
security/tomoyo/realpath.c
133
struct inode *inode = d_backing_inode(dentry);
security/tomoyo/realpath.c
153
static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer,
security/tomoyo/realpath.c
156
struct super_block *sb = dentry->d_sb;
security/tomoyo/realpath.c
157
char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen);
security/tomoyo/realpath.c
242
struct dentry *dentry = path->dentry;
security/tomoyo/realpath.c
243
struct super_block *sb = dentry->d_sb;
security/tomoyo/realpath.c
257
if (dentry->d_op && dentry->d_op->d_dname) {
security/tomoyo/realpath.c
258
pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1);
security/tomoyo/realpath.c
267
pos = tomoyo_get_local_path(path->dentry, buf,
security/tomoyo/realpath.c
277
pos = tomoyo_get_local_path(path->dentry, buf,
security/tomoyo/securityfs_if.c
225
struct dentry *parent, const u8 key)
security/tomoyo/securityfs_if.c
239
struct dentry *tomoyo_dir;
security/tomoyo/tomoyo.c
158
static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry)
security/tomoyo/tomoyo.c
160
struct path path = { .mnt = parent->mnt, .dentry = dentry };
security/tomoyo/tomoyo.c
174
static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry,
security/tomoyo/tomoyo.c
177
struct path path = { .mnt = parent->mnt, .dentry = dentry };
security/tomoyo/tomoyo.c
191
static int tomoyo_path_rmdir(const struct path *parent, struct dentry *dentry)
security/tomoyo/tomoyo.c
193
struct path path = { .mnt = parent->mnt, .dentry = dentry };
security/tomoyo/tomoyo.c
207
static int tomoyo_path_symlink(const struct path *parent, struct dentry *dentry,
security/tomoyo/tomoyo.c
210
struct path path = { .mnt = parent->mnt, .dentry = dentry };
security/tomoyo/tomoyo.c
225
static int tomoyo_path_mknod(const struct path *parent, struct dentry *dentry,
security/tomoyo/tomoyo.c
228
struct path path = { .mnt = parent->mnt, .dentry = dentry };
security/tomoyo/tomoyo.c
264
static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir,
security/tomoyo/tomoyo.c
265
struct dentry *new_dentry)
security/tomoyo/tomoyo.c
267
struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry };
security/tomoyo/tomoyo.c
268
struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry };
security/tomoyo/tomoyo.c
285
struct dentry *old_dentry,
security/tomoyo/tomoyo.c
287
struct dentry *new_dentry,
security/tomoyo/tomoyo.c
290
struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry };
security/tomoyo/tomoyo.c
291
struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry };
security/tomoyo/tomoyo.c
428
struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
sound/core/jack.c
25
struct dentry *jack_debugfs_root; /* jack_kctl debugfs root */
sound/core/sound.c
44
struct dentry *sound_debugfs_root;
sound/drivers/pcmtest.c
73
static struct dentry *driver_debug_dir;
sound/hda/codecs/side-codecs/cs35l56_hda.h
21
struct dentry;
sound/hda/codecs/side-codecs/cs35l56_hda.h
42
struct dentry *debugfs_root;
sound/soc/codecs/cs-amp-lib.c
832
struct dentry *cs_amp_create_debugfs(struct device *dev)
sound/soc/codecs/cs-amp-lib.c
834
struct dentry *dir;
sound/soc/codecs/cs35l56.c
1240
struct dentry *debugfs_root = component->debugfs_root;
sound/soc/codecs/tas2781-i2c.c
1628
struct dentry *debugfs_root = comp->debugfs_root;
sound/soc/fsl/fsl_ssi.h
272
struct dentry *dbg_dir;
sound/soc/fsl/imx-audmux.c
32
static struct dentry *audmux_debugfs_root;
sound/soc/intel/avs/avs.h
169
struct dentry *debugfs_root;
sound/soc/mediatek/mt8195/mt8195-afe-common.h
131
struct dentry **debugfs_dentry;
sound/soc/mediatek/mt8365/mt8365-afe-common.h
348
struct dentry *debugfs_dentry[MT8365_AFE_DEBUGFS_NUM];
sound/soc/renesas/rcar/debugfs.c
71
struct dentry *dir;
sound/soc/soc-core.c
131
struct dentry *snd_soc_debugfs_root;
sound/soc/soc-dapm.c
2556
struct dentry *parent)
sound/soc/soc-dapm.c
2596
struct dentry *parent)
sound/soc/soc-dapm.c
60
struct dentry *debugfs_dapm;
sound/soc/sof/debug.c
321
struct dentry *fw_profile;
sound/soc/sof/ipc4-mtrace.c
126
ret = debugfs_file_get(file->f_path.dentry);
sound/soc/sof/ipc4-mtrace.c
132
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/ipc4-mtrace.c
139
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/ipc4-mtrace.c
276
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/ipc4-mtrace.c
378
struct dentry *dfs_root;
sound/soc/sof/sof-client-ipc-flood-test.c
261
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-flood-test.c
289
struct dentry *debugfs_root = sof_client_get_debugfs_root(cdev);
sound/soc/sof/sof-client-ipc-flood-test.c
31
struct dentry *dfs_root;
sound/soc/sof/sof-client-ipc-flood-test.c
32
struct dentry *dfs_link[2];
sound/soc/sof/sof-client-ipc-flood-test.c
44
ret = debugfs_file_get(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-flood-test.c
50
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-kernel-injector.c
20
struct dentry *kernel_dfs_file;
sound/soc/sof/sof-client-ipc-kernel-injector.c
28
int ret = debugfs_file_get(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-kernel-injector.c
35
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-kernel-injector.c
79
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-kernel-injector.c
96
struct dentry *debugfs_root = sof_client_get_debugfs_root(cdev);
sound/soc/sof/sof-client-ipc-msg-injector.c
229
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-msg-injector.c
25
struct dentry *dfs_file;
sound/soc/sof/sof-client-ipc-msg-injector.c
258
struct dentry *debugfs_root = sof_client_get_debugfs_root(cdev);
sound/soc/sof/sof-client-ipc-msg-injector.c
41
ret = debugfs_file_get(file->f_path.dentry);
sound/soc/sof/sof-client-ipc-msg-injector.c
47
debugfs_file_put(file->f_path.dentry);
sound/soc/sof/sof-client-probes.c
435
struct dentry *dfsroot = sof_client_get_debugfs_root(cdev);
sound/soc/sof/sof-client-probes.h
62
struct dentry *dfs_points;
sound/soc/sof/sof-client-probes.h
63
struct dentry *dfs_points_remove;
sound/soc/sof/sof-client.c
441
struct dentry *sof_client_get_debugfs_root(struct sof_client_dev *cdev)
sound/soc/sof/sof-client.h
14
struct dentry;
sound/soc/sof/sof-client.h
47
struct dentry *sof_client_get_debugfs_root(struct sof_client_dev *cdev);
sound/soc/sof/sof-priv.h
611
struct dentry *debugfs_root;
tools/testing/selftests/bpf/bpf_kfuncs.h
82
struct dentry;
tools/testing/selftests/bpf/bpf_kfuncs.h
88
extern int bpf_get_dentry_xattr(struct dentry *dentry, const char *name,
tools/testing/selftests/bpf/bpf_kfuncs.h
91
extern int bpf_set_dentry_xattr(struct dentry *dentry, const char *name__str,
tools/testing/selftests/bpf/bpf_kfuncs.h
93
extern int bpf_remove_dentry_xattr(struct dentry *dentry, const char *name__str) __ksym __weak;
tools/testing/selftests/bpf/progs/find_vma.c
28
vma->vm_file->f_path.dentry->d_shortname.string);
tools/testing/selftests/bpf/progs/local_storage.c
102
int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry,
tools/testing/selftests/bpf/progs/local_storage.c
103
struct inode *new_dir, struct dentry *new_dentry,
tools/testing/selftests/bpf/progs/local_storage.c
62
int BPF_PROG(unlink_hook, struct inode *dir, struct dentry *victim)
tools/testing/selftests/bpf/progs/map_kptr.c
230
int BPF_PROG(test_task_map_kptr, struct inode *inode, struct dentry *victim)
tools/testing/selftests/bpf/progs/map_kptr.c
245
int BPF_PROG(test_inode_map_kptr, struct inode *inode, struct dentry *victim)
tools/testing/selftests/bpf/progs/profiler.inc.h
476
read_absolute_file_path_from_dentry(struct dentry* filp_dentry, void* payload)
tools/testing/selftests/bpf/progs/profiler.inc.h
480
struct dentry* parent_dentry;
tools/testing/selftests/bpf/progs/profiler.inc.h
505
is_ancestor_in_allowed_inodes(struct dentry* filp_dentry)
tools/testing/selftests/bpf/progs/profiler.inc.h
507
struct dentry* parent_dentry;
tools/testing/selftests/bpf/progs/profiler.inc.h
525
static INLINE bool is_dentry_allowed_for_filemod(struct dentry* file_dentry,
tools/testing/selftests/bpf/progs/profiler.inc.h
580
BPF_CORE_READ(filp, f_path.dentry,
tools/testing/selftests/bpf/progs/profiler.inc.h
775
struct dentry* filp_dentry = BPF_CORE_READ(filp, f_path.dentry);
tools/testing/selftests/bpf/progs/profiler.inc.h
819
struct dentry* old_dentry, struct mnt_idmap *idmap,
tools/testing/selftests/bpf/progs/profiler.inc.h
820
struct inode* dir, struct dentry* new_dentry,
tools/testing/selftests/bpf/progs/profiler.inc.h
878
int BPF_KPROBE(kprobe__vfs_symlink, struct inode* dir, struct dentry* dentry,
tools/testing/selftests/bpf/progs/profiler.inc.h
886
if (!is_dentry_allowed_for_filemod(dentry, &dst_device_id, &dst_file_ino))
tools/testing/selftests/bpf/progs/profiler.inc.h
917
len = read_absolute_file_path_from_dentry(dentry, payload);
tools/testing/selftests/bpf/progs/test_get_xattr.c
59
int BPF_PROG(test_inode_getxattr, struct dentry *dentry, char *name)
tools/testing/selftests/bpf/progs/test_get_xattr.c
72
ret = bpf_get_dentry_xattr(dentry, xattr_names[i], &value_ptr);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
109
ret = bpf_get_dentry_xattr(dentry, xattr_bar, &value_ptr);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
115
ret = bpf_set_dentry_xattr(dentry, xattr_bar, &value_ptr, 0);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
118
ret = bpf_set_dentry_xattr(dentry, xattr_selinux, &value_ptr, 0);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
123
ret = bpf_remove_dentry_xattr(dentry, xattr_bar);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
127
ret = bpf_remove_dentry_xattr(dentry, xattr_selinux);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
36
int BPF_PROG(test_inode_getxattr, struct dentry *dentry, char *name)
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
53
ret = bpf_get_dentry_xattr(dentry, xattr_bar, &value_ptr);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
59
ret = bpf_set_dentry_xattr(dentry, xattr_bar, &value_ptr, 0);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
62
ret = bpf_set_dentry_xattr(dentry, xattr_selinux, &value_ptr, 0);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
67
ret = bpf_remove_dentry_xattr(dentry, xattr_bar);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
71
ret = bpf_remove_dentry_xattr(dentry, xattr_selinux);
tools/testing/selftests/bpf/progs/test_set_remove_xattr.c
91
struct dentry *dentry, const char *name,
tools/testing/selftests/bpf/progs/verifier_vfs_accept.c
88
int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry,
tools/testing/selftests/bpf/progs/verifier_vfs_accept.c
89
struct inode *new_dir, struct dentry *new_dentry,
tools/testing/selftests/bpf/progs/verifier_vfs_reject.c
164
int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry,
tools/testing/selftests/bpf/progs/verifier_vfs_reject.c
165
struct inode *new_dir, struct dentry *new_dentry,
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
643
uprobe.uprobe = uprobe_register(d_real_inode(uprobe.path.dentry),
virt/kvm/guest_memfd.c
545
static int kvm_gmem_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
virt/kvm/kvm_main.c
1010
struct dentry *dent;
virt/kvm/kvm_main.c
119
static struct dentry *kvm_debugfs_dir;
virt/kvm/kvm_main.c
4139
struct dentry *debugfs_dentry;