Lines Matching refs:path
36 struct path path; member
55 return (unsigned long)dcs->path.dentry; in dcookie_value()
93 static struct dcookie_struct *alloc_dcookie(struct path *path) in alloc_dcookie() argument
101 d = path->dentry; in alloc_dcookie()
106 dcs->path = *path; in alloc_dcookie()
107 path_get(path); in alloc_dcookie()
116 int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument
128 if (path->dentry->d_flags & DCACHE_COOKIE) { in get_dcookie()
129 dcs = find_dcookie((unsigned long)path->dentry); in get_dcookie()
131 dcs = alloc_dcookie(path); in get_dcookie()
154 char * path; in SYSCALL_DEFINE3() local
180 path = d_path(&dcs->path, kbuf, PAGE_SIZE); in SYSCALL_DEFINE3()
184 if (IS_ERR(path)) { in SYSCALL_DEFINE3()
185 err = PTR_ERR(path); in SYSCALL_DEFINE3()
191 pathlen = kbuf + PAGE_SIZE - path; in SYSCALL_DEFINE3()
194 if (copy_to_user(buf, path, pathlen)) in SYSCALL_DEFINE3()
273 struct dentry *d = dcs->path.dentry; in free_dcookie()
279 path_put(&dcs->path); in free_dcookie()