mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
vfs: new helper - vfs_ustat()
... and bury user_get_super()/statfs_by_dentry() - they are purely internal now. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
c972b4bc83
commit
cf31e70d6c
5 changed files with 17 additions and 26 deletions
|
|
@ -136,16 +136,9 @@ struct hpux_ustat {
|
|||
*/
|
||||
static int hpux_ustat(dev_t dev, struct hpux_ustat __user *ubuf)
|
||||
{
|
||||
struct super_block *s;
|
||||
struct hpux_ustat tmp; /* Changed to hpux_ustat */
|
||||
struct kstatfs sbuf;
|
||||
int err = -EINVAL;
|
||||
|
||||
s = user_get_super(dev);
|
||||
if (s == NULL)
|
||||
goto out;
|
||||
err = statfs_by_dentry(s->s_root, &sbuf);
|
||||
drop_super(s);
|
||||
int err = vfs_ustat(dev, &sbuf);
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue