Lines Matching refs:path
7 * Persistent cookie-path mappings. These are used by
28 #include <linux/path.h>
37 struct path path;
56 return (unsigned long)dcs->path.dentry;
94 static struct dcookie_struct *alloc_dcookie(const struct path *path)
102 d = path->dentry;
107 dcs->path = *path;
108 path_get(path);
117 int get_dcookie(const struct path *path, unsigned long *cookie)
129 if (path->dentry->d_flags & DCACHE_COOKIE) {
130 dcs = find_dcookie((unsigned long)path->dentry);
132 dcs = alloc_dcookie(path);
148 * to retrieve the path.
155 char * path;
159 /* we could leak path information to users
181 path = d_path(&dcs->path, kbuf, PAGE_SIZE);
185 if (IS_ERR(path)) {
186 err = PTR_ERR(path);
192 pathlen = kbuf + PAGE_SIZE - path;
195 if (copy_to_user(buf, path, pathlen))
279 struct dentry *d = dcs->path.dentry;
285 path_put(&dcs->path);