diff options
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 3c111120b619..f6f1a718642f 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -2019,8 +2019,14 @@ out: | |||
2019 | __be32 | 2019 | __be32 |
2020 | nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) | 2020 | nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) |
2021 | { | 2021 | { |
2022 | __be32 err = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP | access); | 2022 | struct path path = { |
2023 | if (!err && vfs_statfs(fhp->fh_dentry,stat)) | 2023 | .mnt = fhp->fh_export->ex_path.mnt, |
2024 | .dentry = fhp->fh_dentry, | ||
2025 | }; | ||
2026 | __be32 err; | ||
2027 | |||
2028 | err = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP | access); | ||
2029 | if (!err && vfs_statfs(&path, stat)) | ||
2024 | err = nfserr_io; | 2030 | err = nfserr_io; |
2025 | return err; | 2031 | return err; |
2026 | } | 2032 | } |