diff options
Diffstat (limited to 'fs/utimes.c')
-rw-r--r-- | fs/utimes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/utimes.c b/fs/utimes.c index b9912ecbee24..b18da9c0b97f 100644 --- a/fs/utimes.c +++ b/fs/utimes.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | #include <linux/stat.h> | 7 | #include <linux/stat.h> |
8 | #include <linux/utime.h> | 8 | #include <linux/utime.h> |
9 | #include <linux/syscalls.h> | ||
9 | #include <asm/uaccess.h> | 10 | #include <asm/uaccess.h> |
10 | #include <asm/unistd.h> | 11 | #include <asm/unistd.h> |
11 | 12 | ||
@@ -83,7 +84,7 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags | |||
83 | if (error) | 84 | if (error) |
84 | goto out; | 85 | goto out; |
85 | 86 | ||
86 | dentry = nd.dentry; | 87 | dentry = nd.path.dentry; |
87 | } | 88 | } |
88 | 89 | ||
89 | inode = dentry->d_inode; | 90 | inode = dentry->d_inode; |
@@ -137,7 +138,7 @@ dput_and_out: | |||
137 | if (f) | 138 | if (f) |
138 | fput(f); | 139 | fput(f); |
139 | else | 140 | else |
140 | path_release(&nd); | 141 | path_put(&nd.path); |
141 | out: | 142 | out: |
142 | return error; | 143 | return error; |
143 | } | 144 | } |