summaryrefslogtreecommitdiff
path: root/fs/nfs/sysfs.h
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2023-06-15 21:07:25 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2023-06-19 21:59:51 +0300
commite96f9268eea626126021641eefeed02f8669f584 (patch)
treef053c06918c5b97ff6654ab324429934e0c75932 /fs/nfs/sysfs.h
parent943aef2dbcf75f81c4574903131bd9559cee4fd1 (diff)
downloadlinux-e96f9268eea626126021641eefeed02f8669f584.tar.xz
NFS: Make all of /sys/fs/nfs network-namespace unique
Expand the NFS network-namespaced sysfs from /sys/fs/nfs/net down one level into /sys/fs/nfs by moving the "net" kobject onto struct nfs_netns_client and setting it up during network namespace init. This prepares the way for superblock kobjects within /sys/fs/nfs that will only be visible to matching network namespaces. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/sysfs.h')
-rw-r--r--fs/nfs/sysfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/sysfs.h b/fs/nfs/sysfs.h
index 0423aaf388c9..dc4cc9809d1b 100644
--- a/fs/nfs/sysfs.h
+++ b/fs/nfs/sysfs.h
@@ -10,6 +10,7 @@
struct nfs_netns_client {
struct kobject kobject;
+ struct kobject nfs_net_kobj;
struct net *net;
const char __rcu *identifier;
};