diff options
| author | Josef Bacik <josef@toxicpanda.com> | 2024-02-15 14:57:32 -0500 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-03-09 09:14:51 -0500 |
| commit | 1548036ef1204df65ca5a16e8b199c858cb80075 (patch) | |
| tree | f62597e224aff73c9841e94be1e398e15e0b044e /fs/nfs/netns.h | |
| parent | nfs: expose /proc/net/sunrpc/nfs in net namespaces (diff) | |
| download | linux-1548036ef1204df65ca5a16e8b199c858cb80075.tar.gz linux-1548036ef1204df65ca5a16e8b199c858cb80075.zip | |
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.h | 2 |
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 |
