diff options
Diffstat (limited to 'fs/nfsd/nfs3proc.c')
-rw-r--r-- | fs/nfsd/nfs3proc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c index 1fc02dfdc5c4..401289913130 100644 --- a/fs/nfsd/nfs3proc.c +++ b/fs/nfsd/nfs3proc.c | |||
@@ -43,7 +43,6 @@ static __be32 | |||
43 | nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, | 43 | nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, |
44 | struct nfsd3_attrstat *resp) | 44 | struct nfsd3_attrstat *resp) |
45 | { | 45 | { |
46 | int err; | ||
47 | __be32 nfserr; | 46 | __be32 nfserr; |
48 | 47 | ||
49 | dprintk("nfsd: GETATTR(3) %s\n", | 48 | dprintk("nfsd: GETATTR(3) %s\n", |
@@ -55,9 +54,7 @@ nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, | |||
55 | if (nfserr) | 54 | if (nfserr) |
56 | RETURN_STATUS(nfserr); | 55 | RETURN_STATUS(nfserr); |
57 | 56 | ||
58 | err = vfs_getattr(resp->fh.fh_export->ex_path.mnt, | 57 | nfserr = fh_getattr(&resp->fh, &resp->stat); |
59 | resp->fh.fh_dentry, &resp->stat); | ||
60 | nfserr = nfserrno(err); | ||
61 | 58 | ||
62 | RETURN_STATUS(nfserr); | 59 | RETURN_STATUS(nfserr); |
63 | } | 60 | } |