From: Al Viro Date: Sat, 21 Apr 2012 22:47:57 +0000 (-0400) Subject: switch utimes() to fget_light/fput_light X-Git-Tag: upstream/snapshot3+hdmi~7309^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c217a2a004d98d09dfceec3a023c563ed800e833;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git switch utimes() to fget_light/fput_light Signed-off-by: Al Viro --- diff --git a/fs/utimes.c b/fs/utimes.c index ba653f3..fa4dbe4 100644 --- a/fs/utimes.c +++ b/fs/utimes.c @@ -140,18 +140,19 @@ long do_utimes(int dfd, const char __user *filename, struct timespec *times, goto out; if (filename == NULL && dfd != AT_FDCWD) { + int fput_needed; struct file *file; if (flags & AT_SYMLINK_NOFOLLOW) goto out; - file = fget(dfd); + file = fget_light(dfd, &fput_needed); error = -EBADF; if (!file) goto out; error = utimes_common(&file->f_path, times); - fput(file); + fput_light(file, fput_needed); } else { struct path path; int lookup_flags = 0;