projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc6895
)
switch statfs to fget_light/fput_light
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 21 Apr 2012 22:47:27 +0000
(18:47 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 30 May 2012 03:28:31 +0000
(23:28 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/statfs.c
patch
|
blob
|
history
diff --git
a/fs/statfs.c
b/fs/statfs.c
index
43e6b6f
..
95ad5c0
100644
(file)
--- a/
fs/statfs.c
+++ b/
fs/statfs.c
@@
-87,11
+87,12
@@
int user_statfs(const char __user *pathname, struct kstatfs *st)
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;
}