commit | 0aa2ee5f0a341a7fc081a499b221d29784ed711d | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Apr 21 18:47:27 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue May 29 23:28:31 2012 -0400 |
tree | 0b147d65e3bcaa7f82638d0b9d711fd86f3ae2af | |
parent | bdc689594bf3ce967bc3a17ba5db3f23222dede0 [diff] [blame] |
switch statfs to fget_light/fput_light Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/statfs.c b/fs/statfs.c index 43e6b6f..95ad5c0 100644 --- a/fs/statfs.c +++ b/fs/statfs.c
@@ -87,11 +87,12 @@ int fd_statfs(int fd, struct kstatfs *st) { - struct file *file = fget(fd); + int fput_needed; + struct file *file = fget_light(fd, &fput_needed); int error = -EBADF; if (file) { error = vfs_statfs(&file->f_path, st); - fput(file); + fput_light(file, fput_needed); } return error; }