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>
This commit is contained in:
@ -455,7 +455,7 @@ static struct rpc_program cb_program = {
|
||||
|
||||
static int max_cb_time(void)
|
||||
{
|
||||
return max(NFSD_LEASE_TIME/10, (time_t)1) * HZ;
|
||||
return max(nfsd4_lease/10, (time_t)1) * HZ;
|
||||
}
|
||||
|
||||
/* Reference counting, callback cleanup, etc., all look racy as heck.
|
||||
|
Reference in New Issue
Block a user