NFS: Open-code the nfs_kset kset_create_and_add()
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 15 Jun 2023 18:07:24 +0000 (14:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 18:59:07 +0000 (14:59 -0400)
commit943aef2dbcf75f81c4574903131bd9559cee4fd1
tree5427b6c571e1b7d4fed5295531e6c49ef1467784
parentd5082ace6c8ddefd19b8f7b7164580d972fdb103
NFS: Open-code the nfs_kset kset_create_and_add()

In preparation to make objects below /sys/fs/nfs namespace aware, we need
to define our own kobj_type for the nfs kset so that we can add the
.child_ns_type member in a following patch.  No functional change here, only
the unrolling of kset_create_and_add().

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/sysfs.c