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 /arch/parisc | |
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 'arch/parisc')
-rw-r--r-- | arch/parisc/hpux/sys_hpux.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/parisc/hpux/sys_hpux.c b/arch/parisc/hpux/sys_hpux.c index 6ab9580b0b00..d9dc6cd3b7d2 100644 --- a/arch/parisc/hpux/sys_hpux.c +++ b/arch/parisc/hpux/sys_hpux.c | |||
@@ -136,16 +136,9 @@ struct hpux_ustat { | |||
136 | */ | 136 | */ |
137 | static int hpux_ustat(dev_t dev, struct hpux_ustat __user *ubuf) | 137 | static int hpux_ustat(dev_t dev, struct hpux_ustat __user *ubuf) |
138 | { | 138 | { |
139 | struct super_block *s; | ||
140 | struct hpux_ustat tmp; /* Changed to hpux_ustat */ | 139 | struct hpux_ustat tmp; /* Changed to hpux_ustat */ |
141 | struct kstatfs sbuf; | 140 | struct kstatfs sbuf; |
142 | int err = -EINVAL; | 141 | int err = vfs_ustat(dev, &sbuf); |
143 | |||
144 | s = user_get_super(dev); | ||
145 | if (s == NULL) | ||
146 | goto out; | ||
147 | err = statfs_by_dentry(s->s_root, &sbuf); | ||
148 | drop_super(s); | ||
149 | if (err) | 142 | if (err) |
150 | goto out; | 143 | goto out; |
151 | 144 | ||