aboutsummaryrefslogtreecommitdiffstats
path: root/fs/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/utimes.c')
-rw-r--r--fs/utimes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/utimes.c b/fs/utimes.c
index af059d5cb485..14d3edbb3d7c 100644
--- a/fs/utimes.c
+++ b/fs/utimes.c
@@ -102,6 +102,10 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags
102 if (error) 102 if (error)
103 goto dput_and_out; 103 goto dput_and_out;
104 104
105 if (times && times[0].tv_nsec == UTIME_NOW &&
106 times[1].tv_nsec == UTIME_NOW)
107 times = NULL;
108
105 /* Don't worry, the checks are done in inode_change_ok() */ 109 /* Don't worry, the checks are done in inode_change_ok() */
106 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME; 110 newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME;
107 if (times) { 111 if (times) {