nfsd: count nfsd_file allocations
authorJeff Layton <jlayton@kernel.org>
Wed, 10 Jul 2024 13:05:33 +0000 (09:05 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 1 Sep 2024 14:04:54 +0000 (10:04 -0400)
commit700bb4ff912f954345286e065ff145753a1d5bbe
tree89b5235c744245fcf2c0e2895d5615d256329c32
parent8a7926176378460e0d91e02b03f0ff20a8709a60
nfsd: count nfsd_file allocations

We already count the frees (via nfsd_file_releases). Count the
allocations as well. Also switch the direct call to nfsd_file_slab_free
in nfsd_file_do_acquire to nfsd_file_free, so that the allocs and
releases match up.

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