Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309981
b: refs/heads/master
c: 0aa2ee5
h: refs/heads/master
i:
  309979: e6346f3
v: v3
  • Loading branch information
Al Viro committed May 30, 2012
1 parent e4cee8d commit 153146a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdc689594bf3ce967bc3a17ba5db3f23222dede0
refs/heads/master: 0aa2ee5f0a341a7fc081a499b221d29784ed711d
5 changes: 3 additions & 2 deletions trunk/fs/statfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 153146a

Please sign in to comment.