X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Futimes.c;h=f4fb7eca10e832f5b9c4405092627b94f4a163dc;hb=233eb97fc9d0f44f2ea99fe48118aa3d2dc25d64;hp=bb0696a41735608512963ae1648a79a9d7b0bd27;hpb=b7e97d22113bcaafff93774e3085f5b567eaba9c;p=cascardo%2Flinux.git diff --git a/fs/utimes.c b/fs/utimes.c index bb0696a41735..f4fb7eca10e8 100644 --- a/fs/utimes.c +++ b/fs/utimes.c @@ -158,13 +158,17 @@ long do_utimes(int dfd, const char __user *filename, struct timespec *times, if (!(flags & AT_SYMLINK_NOFOLLOW)) lookup_flags |= LOOKUP_FOLLOW; - +retry: error = user_path_at(dfd, filename, lookup_flags, &path); if (error) goto out; error = utimes_common(&path, times); path_put(&path); + if (retry_estale(error, lookup_flags)) { + lookup_flags |= LOOKUP_REVAL; + goto retry; + } } out: