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>

authored by Jeff Layton and committed by Chuck Lever 261e3bbf 38762580

+1 -1
+1 -1
fs/nfsd/nfs4state.c
··· 4815 static unsigned long 4816 nfsd4_state_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) 4817 { 4818 - int count; 4819 struct nfsd_net *nn = shrink->private_data; 4820 4821 count = atomic_read(&nn->nfsd_courtesy_clients); 4822 if (!count)
··· 4815 static unsigned long 4816 nfsd4_state_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) 4817 { 4818 struct nfsd_net *nn = shrink->private_data; 4819 + long count; 4820 4821 count = atomic_read(&nn->nfsd_courtesy_clients); 4822 if (!count)