X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fnfsd%2Fnfsxdr.c;h=9c769a47ac5ab7efc9a2b939305ffbad45ed988f;hb=7cebefe6cca5e8ff6ec9ba13ff9edb03d3c19fc7;hp=4201ede0ec910bcd85ecf02cfa27d9da75c94bce;hpb=6515925b8259549b7f2187e25d3260306e3e85e5;p=mirror_ubuntu-zesty-kernel.git 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 @@ * Copyright (C) 1995, 1996 Olaf Kirch */ +#include "vfs.h" #include "xdr.h" #include "auth.h" @@ -196,11 +197,9 @@ encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, } /* Helper function for NFSv2 ACL code */ -__be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) +__be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) { - struct kstat stat; - vfs_getattr(fhp->fh_export->ex_path.mnt, fhp->fh_dentry, &stat); - return encode_fattr(rqstp, p, fhp, &stat); + return encode_fattr(rqstp, p, fhp, stat); } /*