]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: pass lease period in seconds to nfs4_set_lease_period()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Mon, 8 Dec 2025 20:15:03 +0000 (23:15 +0300)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 9 Feb 2026 18:39:39 +0000 (13:39 -0500)
commit3d57c44e918012db1f901d50bc9195a8812ad602
tree327d432b0e6f6bb20ca8a4fad4089e3cba6cdc4c
parentfdc0396b3cc05dc9b678627af23c3fdc7dbe930e
NFSv4: pass lease period in seconds to nfs4_set_lease_period()

There's no need to multiply the lease period by HZ at all the call sites of
nfs4_set_lease_period() -- it makes more sense to do that only once, inside
that function, by passing to it lease period as 32-bit # of seconds instead
of 32/64-bit *unsigned long* # of jiffies...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4renewd.c
fs/nfs/nfs4state.c