diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-02 22:28:36 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:53:07 -0500 |
commit | cf31e70d6cf93f19fe9bf1144966ef40991ac723 (patch) | |
tree | 39cdc07b9d46b17ef882ddeb5041f4faec808662 /fs/compat.c | |
parent | c972b4bc8331b432f51a5f1bc3ca7e020172717f (diff) |
vfs: new helper - vfs_ustat()
... and bury user_get_super()/statfs_by_dentry() - they are
purely internal now.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/compat.c b/fs/compat.c index c98787536bb8..9db5a6076610 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -342,16 +342,9 @@ asmlinkage long compat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct c | |||
342 | */ | 342 | */ |
343 | asmlinkage long compat_sys_ustat(unsigned dev, struct compat_ustat __user *u) | 343 | asmlinkage long compat_sys_ustat(unsigned dev, struct compat_ustat __user *u) |
344 | { | 344 | { |
345 | struct super_block *sb; | ||
346 | struct compat_ustat tmp; | 345 | struct compat_ustat tmp; |
347 | struct kstatfs sbuf; | 346 | struct kstatfs sbuf; |
348 | int err; | 347 | int err = vfs_ustat(new_decode_dev(dev), &sbuf); |
349 | |||
350 | sb = user_get_super(new_decode_dev(dev)); | ||
351 | if (!sb) | ||
352 | return -EINVAL; | ||
353 | err = statfs_by_dentry(sb->s_root, &sbuf); | ||
354 | drop_super(sb); | ||
355 | if (err) | 348 | if (err) |
356 | return err; | 349 | return err; |
357 | 350 | ||