summaryrefslogtreecommitdiff
path: root/fs/nfs/netns.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-02-15 14:57:32 -0500
committerTrond Myklebust <trond.myklebust@hammerspace.com>2024-03-09 09:14:51 -0500
commit1548036ef1204df65ca5a16e8b199c858cb80075 (patch)
treef62597e224aff73c9841e94be1e398e15e0b044e /fs/nfs/netns.h
parentd47151b79e3220e72ae323b8b8e9d6da20dc884e (diff)
nfs: make the rpc_stat per net namespace
Now that we're exposing the rpc stats on a per-network namespace basis, move this struct into struct nfs_net and use that to make sure only the per-network namespace stats are exposed. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/netns.h')
-rw-r--r--fs/nfs/netns.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h
index c8374f74dce1..a68b21603ea9 100644
--- a/fs/nfs/netns.h
+++ b/fs/nfs/netns.h
@@ -9,6 +9,7 @@
#include <linux/nfs4.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
+#include <linux/sunrpc/stats.h>
struct bl_dev_msg {
int32_t status;
@@ -34,6 +35,7 @@ struct nfs_net {
struct nfs_netns_client *nfs_client;
spinlock_t nfs_client_lock;
ktime_t boot_time;
+ struct rpc_stat rpcstats;
#ifdef CONFIG_PROC_FS
struct proc_dir_entry *proc_nfsfs;
#endif