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/nfs4callback.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/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 4bc22c763de7..ed12ad40828b 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -455,7 +455,7 @@ static struct rpc_program cb_program = { | |||
455 | 455 | ||
456 | static int max_cb_time(void) | 456 | static int max_cb_time(void) |
457 | { | 457 | { |
458 | return max(NFSD_LEASE_TIME/10, (time_t)1) * HZ; | 458 | return max(nfsd4_lease/10, (time_t)1) * HZ; |
459 | } | 459 | } |
460 | 460 | ||
461 | /* Reference counting, callback cleanup, etc., all look racy as heck. | 461 | /* Reference counting, callback cleanup, etc., all look racy as heck. |