diff options
Diffstat (limited to 'fs/nfsd/nfsxdr.c')
-rw-r--r-- | fs/nfsd/nfsxdr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfsd/nfsxdr.c b/fs/nfsd/nfsxdr.c index 4201ede0ec91..9c769a47ac5a 100644 --- a/fs/nfsd/nfsxdr.c +++ b/fs/nfsd/nfsxdr.c | |||
@@ -4,6 +4,7 @@ | |||
4 | * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> | 4 | * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "vfs.h" | ||
7 | #include "xdr.h" | 8 | #include "xdr.h" |
8 | #include "auth.h" | 9 | #include "auth.h" |
9 | 10 | ||
@@ -196,11 +197,9 @@ encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, | |||
196 | } | 197 | } |
197 | 198 | ||
198 | /* Helper function for NFSv2 ACL code */ | 199 | /* Helper function for NFSv2 ACL code */ |
199 | __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) | 200 | __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) |
200 | { | 201 | { |
201 | struct kstat stat; | 202 | return encode_fattr(rqstp, p, fhp, stat); |
202 | vfs_getattr(fhp->fh_export->ex_path.mnt, fhp->fh_dentry, &stat); | ||
203 | return encode_fattr(rqstp, p, fhp, &stat); | ||
204 | } | 203 | } |
205 | 204 | ||
206 | /* | 205 | /* |