hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/coda/pioctl.c
....@@ -20,8 +20,7 @@
2020 #include <linux/uaccess.h>
2121
2222 #include <linux/coda.h>
23
-#include <linux/coda_psdev.h>
24
-
23
+#include "coda_psdev.h"
2524 #include "coda_linux.h"
2625
2726 /* pioctl ops */
....@@ -64,11 +63,8 @@
6463 * Look up the pathname. Note that the pathname is in
6564 * user memory, and namei takes care of this
6665 */
67
- if (data.follow)
68
- error = user_path(data.path, &path);
69
- else
70
- error = user_lpath(data.path, &path);
71
-
66
+ error = user_path_at(AT_FDCWD, data.path,
67
+ data.follow ? LOOKUP_FOLLOW : 0, &path);
7268 if (error)
7369 return error;
7470