]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: remove unused stats counters
authorAmir Goldstein <amir73il@gmail.com>
Wed, 6 Jan 2021 07:52:34 +0000 (09:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:56 +0000 (14:52 +0200)
commitd1344de0d66da89f8df00969a17cdb3f76a95800
tree82572fb7686322f790bf66b68d8dc64b0f679f56
parent0a13baa6ab5a9e035e8e78618c8253e25299b5b2
nfsd: remove unused stats counters

[ Upstream commit 1b76d1df1a3683b6b23cd1c813d13c5e6a9d35e5 ]

Commit 501cb1849f86 ("nfsd: rip out the raparms cache") removed the
code that updates read-ahead cache stats counters,
commit 8bbfa9f3889b ("knfsd: remove the nfsd thread busy histogram")
removed code that updates the thread busy stats counters back in 2009
and code that updated filehandle cache stats was removed back in 2002.

Remove the unused stats counters from nfsd_stats struct and print
hardcoded zeros in /proc/net/rpc/nfsd.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/stats.c
fs/nfsd/stats.h