projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kmsg - kmsg_dump() use iterator to receive log buffer content
[firefly-linux-kernel-4.4.55.git]
/
fs
/
statfs.c
diff --git
a/fs/statfs.c
b/fs/statfs.c
index 43e6b6fe4e855684a197c48ed6bb8dee70f95467..95ad5c0e586c9f64fe492e141387b5092956d553 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)
{
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);
int error = -EBADF;
if (file) {
error = vfs_statfs(&file->f_path, st);
- fput
(file
);
+ fput
_light(file, fput_needed
);
}
return error;
}
}
return error;
}