diff options
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 250171c5c311..b775366a0a68 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include "vfs.h" | 53 | #include "vfs.h" |
54 | #include "state.h" | 54 | #include "state.h" |
55 | #include "cache.h" | 55 | #include "cache.h" |
56 | #include "netns.h" | ||
56 | 57 | ||
57 | #define NFSDDBG_FACILITY NFSDDBG_XDR | 58 | #define NFSDDBG_FACILITY NFSDDBG_XDR |
58 | 59 | ||
@@ -2052,6 +2053,7 @@ nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp, | |||
2052 | .mnt = exp->ex_path.mnt, | 2053 | .mnt = exp->ex_path.mnt, |
2053 | .dentry = dentry, | 2054 | .dentry = dentry, |
2054 | }; | 2055 | }; |
2056 | struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); | ||
2055 | 2057 | ||
2056 | BUG_ON(bmval1 & NFSD_WRITEONLY_ATTRS_WORD1); | 2058 | BUG_ON(bmval1 & NFSD_WRITEONLY_ATTRS_WORD1); |
2057 | BUG_ON(bmval0 & ~nfsd_suppattrs0(minorversion)); | 2059 | BUG_ON(bmval0 & ~nfsd_suppattrs0(minorversion)); |
@@ -2212,7 +2214,7 @@ nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp, | |||
2212 | if (bmval0 & FATTR4_WORD0_LEASE_TIME) { | 2214 | if (bmval0 & FATTR4_WORD0_LEASE_TIME) { |
2213 | if ((buflen -= 4) < 0) | 2215 | if ((buflen -= 4) < 0) |
2214 | goto out_resource; | 2216 | goto out_resource; |
2215 | WRITE32(nfsd4_lease); | 2217 | WRITE32(nn->nfsd4_lease); |
2216 | } | 2218 | } |
2217 | if (bmval0 & FATTR4_WORD0_RDATTR_ERROR) { | 2219 | if (bmval0 & FATTR4_WORD0_RDATTR_ERROR) { |
2218 | if ((buflen -= 4) < 0) | 2220 | if ((buflen -= 4) < 0) |