fs: nfsd: use group allocation/free of per-cpu counters API
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 25 Mar 2024 13:21:39 +0000 (21:21 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 6 May 2024 13:07:17 +0000 (09:07 -0400)
commit7d12cce8784c66ad9351e91743cd68a573850732
tree4d10f74878228341f78fc7567c8848d2ad863ebb
parent33a1e6ea73e5f1defe6706f006c0930a82ebdaaa
fs: nfsd: use group allocation/free of per-cpu counters API

Use group allocation/free of per-cpu counters api to accelerate
nfsd percpu_counters init/destroy(), and also squash the
nfsd_percpu_counters_init/reset/destroy() and nfsd_counters_init/destroy()
into callers to simplify code.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/export.c
fs/nfsd/nfsctl.c
fs/nfsd/stats.c
fs/nfsd/stats.h