Lines Matching refs:dentry
15 static char *ns_dname(struct dentry *dentry, char *buffer, int buflen) in ns_dname() argument
17 struct inode *inode = d_inode(dentry); in ns_dname()
18 const struct proc_ns_operations *ns_ops = dentry->d_fsdata; in ns_dname()
20 return dynamic_dname(dentry, buffer, buflen, "%s:[%lu]", in ns_dname()
24 static void ns_prune_dentry(struct dentry *dentry) in ns_prune_dentry() argument
26 struct inode *inode = d_inode(dentry); in ns_prune_dentry()
52 struct dentry *dentry; in ns_get_path() local
67 dentry = (struct dentry *)d; in ns_get_path()
68 if (!lockref_get_not_dead(&dentry->d_lockref)) in ns_get_path()
74 path->dentry = dentry; in ns_get_path()
91 dentry = d_alloc_pseudo(mnt->mnt_sb, &qname); in ns_get_path()
92 if (!dentry) { in ns_get_path()
97 d_instantiate(dentry, inode); in ns_get_path()
98 dentry->d_fsdata = (void *)ns_ops; in ns_get_path()
99 d = atomic_long_cmpxchg(&ns->stashed, 0, (unsigned long)dentry); in ns_get_path()
101 d_delete(dentry); /* make sure ->d_prune() does nothing */ in ns_get_path()
102 dput(dentry); in ns_get_path()
140 static int nsfs_show_path(struct seq_file *seq, struct dentry *dentry) in nsfs_show_path() argument
142 struct inode *inode = d_inode(dentry); in nsfs_show_path()
143 const struct proc_ns_operations *ns_ops = dentry->d_fsdata; in nsfs_show_path()
154 static struct dentry *nsfs_mount(struct file_system_type *fs_type, in nsfs_mount()