Lines Matching refs:path
37 struct path path; member
56 return (unsigned long)dcs->path.dentry; in dcookie_value()
94 static struct dcookie_struct *alloc_dcookie(const struct path *path) in alloc_dcookie() argument
102 d = path->dentry; in alloc_dcookie()
107 dcs->path = *path; in alloc_dcookie()
108 path_get(path); in alloc_dcookie()
117 int get_dcookie(const struct path *path, unsigned long *cookie) in get_dcookie() argument
129 if (path->dentry->d_flags & DCACHE_COOKIE) { in get_dcookie()
130 dcs = find_dcookie((unsigned long)path->dentry); in get_dcookie()
132 dcs = alloc_dcookie(path); in get_dcookie()
155 char * path; in do_lookup_dcookie() local
181 path = d_path(&dcs->path, kbuf, PAGE_SIZE); in do_lookup_dcookie()
185 if (IS_ERR(path)) { in do_lookup_dcookie()
186 err = PTR_ERR(path); in do_lookup_dcookie()
192 pathlen = kbuf + PAGE_SIZE - path; in do_lookup_dcookie()
195 if (copy_to_user(buf, path, pathlen)) in do_lookup_dcookie()
279 struct dentry *d = dcs->path.dentry; in free_dcookie()
285 path_put(&dcs->path); in free_dcookie()