diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-24 02:18:08 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-26 02:46:08 -0500 |
commit | 3dadecce20603aa380023c65e6f55f108fd5e952 (patch) | |
tree | 9c6b1540787ba3c0c2342447bf1b35836b1e4314 /fs/nfsd/nfsproc.c | |
parent | e72837e3e7bae3f182c4ac63c9424e86f1158dd0 (diff) |
switch vfs_getattr() to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r-- | fs/nfsd/nfsproc.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index aad6d457b9e8..54c6b3d3cc79 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c | |||
@@ -26,17 +26,13 @@ static __be32 | |||
26 | nfsd_return_attrs(__be32 err, struct nfsd_attrstat *resp) | 26 | nfsd_return_attrs(__be32 err, struct nfsd_attrstat *resp) |
27 | { | 27 | { |
28 | if (err) return err; | 28 | if (err) return err; |
29 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt, | 29 | return fh_getattr(&resp->fh, &resp->stat); |
30 | resp->fh.fh_dentry, | ||
31 | &resp->stat)); | ||
32 | } | 30 | } |
33 | static __be32 | 31 | static __be32 |
34 | nfsd_return_dirop(__be32 err, struct nfsd_diropres *resp) | 32 | nfsd_return_dirop(__be32 err, struct nfsd_diropres *resp) |
35 | { | 33 | { |
36 | if (err) return err; | 34 | if (err) return err; |
37 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt, | 35 | return fh_getattr(&resp->fh, &resp->stat); |
38 | resp->fh.fh_dentry, | ||
39 | &resp->stat)); | ||
40 | } | 36 | } |
41 | /* | 37 | /* |
42 | * Get a file's attributes | 38 | * Get a file's attributes |
@@ -150,9 +146,7 @@ nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp, | |||
150 | &resp->count); | 146 | &resp->count); |
151 | 147 | ||
152 | if (nfserr) return nfserr; | 148 | if (nfserr) return nfserr; |
153 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt, | 149 | return fh_getattr(&resp->fh, &resp->stat); |
154 | resp->fh.fh_dentry, | ||
155 | &resp->stat)); | ||
156 | } | 150 | } |
157 | 151 | ||
158 | /* | 152 | /* |