Lines Matching refs:path
17 static long do_sys_name_to_handle(struct path *path, in do_sys_name_to_handle() argument
30 if (!path->dentry->d_sb->s_export_op || in do_sys_name_to_handle()
31 !path->dentry->d_sb->s_export_op->fh_to_dentry) in do_sys_name_to_handle()
49 retval = exportfs_encode_fh(path->dentry, in do_sys_name_to_handle()
72 if (put_user(real_mount(path->mnt)->mnt_id, mnt_id) || in do_sys_name_to_handle()
97 struct path path; in SYSCALL_DEFINE5() local
107 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
109 err = do_sys_name_to_handle(&path, handle, mnt_id); in SYSCALL_DEFINE5()
110 path_put(&path); in SYSCALL_DEFINE5()
140 struct path *path) in do_handle_to_path() argument
145 path->mnt = get_vfsmount_from_fd(mountdirfd); in do_handle_to_path()
146 if (IS_ERR(path->mnt)) { in do_handle_to_path()
147 retval = PTR_ERR(path->mnt); in do_handle_to_path()
152 path->dentry = exportfs_decode_fh(path->mnt, in do_handle_to_path()
156 if (IS_ERR(path->dentry)) { in do_handle_to_path()
157 retval = PTR_ERR(path->dentry); in do_handle_to_path()
162 mntput(path->mnt); in do_handle_to_path()
168 struct path *path) in handle_to_path() argument
207 retval = do_handle_to_path(mountdirfd, handle, path); in handle_to_path()
219 struct path path; in do_handle_open() local
223 retval = handle_to_path(mountdirfd, ufh, &path); in do_handle_open()
229 path_put(&path); in do_handle_open()
232 file = file_open_root(path.dentry, path.mnt, "", open_flag, 0); in do_handle_open()
241 path_put(&path); in do_handle_open()