FILESYSTEM: switch do_fsync() to fget_light()

file:62f857c284dd06161b14887c3588dd1c5ed0cf72 -> file:944ab9f2c730db7965fc83bf09496a634aa24789
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -221,11 +221,12 @@ static int do_fsync(unsigned int fd, int
{
struct file *file;
int ret = -EBADF;
+ int fput_needed;
- file = fget(fd);
+ file = fget_light(fd, &fput_needed);
if (file) {
ret = vfs_fsync(file, datasync);
- fput(file);
+ fput_light(file, fput_needed);
}
return ret;
}