diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2010-02-28 23:20:19 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2010-03-06 15:02:01 -0500 |
commit | cf07d2ea43e5c22149435ee9002cb737eac20eca (patch) | |
tree | be8af254331398b2be20090b2b61da432229f109 /fs/nfsd/nfs4xdr.c | |
parent | 4ea41e2de5bba756858bb40f964e3490b6d1a25c (diff) |
nfsd4: simplify references to nfsd4 lease time
Instead of accessing the lease time directly, some users call
nfs4_lease_time(), and some a macro, NFSD_LEASE_TIME, defined as
nfs4_lease_time(). Neither layer of indirection serves any purpose.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index c458fb11c957..f61bd736152b 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -1899,7 +1899,7 @@ nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp, | |||
1899 | if (bmval0 & FATTR4_WORD0_LEASE_TIME) { | 1899 | if (bmval0 & FATTR4_WORD0_LEASE_TIME) { |
1900 | if ((buflen -= 4) < 0) | 1900 | if ((buflen -= 4) < 0) |
1901 | goto out_resource; | 1901 | goto out_resource; |
1902 | WRITE32(NFSD_LEASE_TIME); | 1902 | WRITE32(nfsd4_lease); |
1903 | } | 1903 | } |
1904 | if (bmval0 & FATTR4_WORD0_RDATTR_ERROR) { | 1904 | if (bmval0 & FATTR4_WORD0_RDATTR_ERROR) { |
1905 | if ((buflen -= 4) < 0) | 1905 | if ((buflen -= 4) < 0) |