]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: use a long for the count in nfsd4_state_shrinker_count()
authorJeff Layton <jlayton@kernel.org>
Mon, 3 Mar 2025 17:26:03 +0000 (12:26 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 10 Mar 2025 13:11:12 +0000 (09:11 -0400)
commit261e3bbf9747e9c7c87b3bce519df94754e24ed8
treee9787ef918d8f64ba7aaa97fccce5e4ec0fed568
parent387625808c45ccd46350440436f4a2f5cec4d04a
nfsd: use a long for the count in nfsd4_state_shrinker_count()

If there are no courtesy clients then the return value from the
atomic_long_read() could overflow an int. Use a long to store the value
instead.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c