Lines Matching refs:dentry
14 static char *ns_dname(struct dentry *dentry, char *buffer, int buflen) in ns_dname() argument
16 struct inode *inode = d_inode(dentry); in ns_dname()
17 const struct proc_ns_operations *ns_ops = dentry->d_fsdata; in ns_dname()
19 return dynamic_dname(dentry, buffer, buflen, "%s:[%lu]", in ns_dname()
23 static void ns_prune_dentry(struct dentry *dentry) in ns_prune_dentry() argument
25 struct inode *inode = d_inode(dentry); in ns_prune_dentry()
51 struct dentry *dentry; in ns_get_path() local
66 dentry = (struct dentry *)d; in ns_get_path()
67 if (!lockref_get_not_dead(&dentry->d_lockref)) in ns_get_path()
73 path->dentry = dentry; in ns_get_path()
90 dentry = d_alloc_pseudo(mnt->mnt_sb, &qname); in ns_get_path()
91 if (!dentry) { in ns_get_path()
96 d_instantiate(dentry, inode); in ns_get_path()
97 dentry->d_fsdata = (void *)ns_ops; in ns_get_path()
98 d = atomic_long_cmpxchg(&ns->stashed, 0, (unsigned long)dentry); in ns_get_path()
100 d_delete(dentry); /* make sure ->d_prune() does nothing */ in ns_get_path()
101 dput(dentry); in ns_get_path()
143 static struct dentry *nsfs_mount(struct file_system_type *fs_type, in nsfs_mount()