NFS: rename nfs_client_kset to nfs_kset
[ Upstream commit 8b18a2edecc0741b0eecf8b18fdb356a0f8682de ] Be brief and match the subsystem name. There's no need to distinguish this kset variable from the server. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Stable-dep-of: 956fd46f97d2 ("NFSv4: Fix a state manager thread deadlock regression") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
598539f38c
commit
ec4325e806
@ -18,7 +18,7 @@
|
|||||||
#include "sysfs.h"
|
#include "sysfs.h"
|
||||||
|
|
||||||
struct kobject *nfs_client_kobj;
|
struct kobject *nfs_client_kobj;
|
||||||
static struct kset *nfs_client_kset;
|
static struct kset *nfs_kset;
|
||||||
|
|
||||||
static void nfs_netns_object_release(struct kobject *kobj)
|
static void nfs_netns_object_release(struct kobject *kobj)
|
||||||
{
|
{
|
||||||
@ -55,13 +55,13 @@ static struct kobject *nfs_netns_object_alloc(const char *name,
|
|||||||
|
|
||||||
int nfs_sysfs_init(void)
|
int nfs_sysfs_init(void)
|
||||||
{
|
{
|
||||||
nfs_client_kset = kset_create_and_add("nfs", NULL, fs_kobj);
|
nfs_kset = kset_create_and_add("nfs", NULL, fs_kobj);
|
||||||
if (!nfs_client_kset)
|
if (!nfs_kset)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
nfs_client_kobj = nfs_netns_object_alloc("net", nfs_client_kset, NULL);
|
nfs_client_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL);
|
||||||
if (!nfs_client_kobj) {
|
if (!nfs_client_kobj) {
|
||||||
kset_unregister(nfs_client_kset);
|
kset_unregister(nfs_kset);
|
||||||
nfs_client_kset = NULL;
|
nfs_kset = NULL;
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -70,7 +70,7 @@ int nfs_sysfs_init(void)
|
|||||||
void nfs_sysfs_exit(void)
|
void nfs_sysfs_exit(void)
|
||||||
{
|
{
|
||||||
kobject_put(nfs_client_kobj);
|
kobject_put(nfs_client_kobj);
|
||||||
kset_unregister(nfs_client_kset);
|
kset_unregister(nfs_kset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t nfs_netns_identifier_show(struct kobject *kobj,
|
static ssize_t nfs_netns_identifier_show(struct kobject *kobj,
|
||||||
@ -158,7 +158,7 @@ static struct nfs_netns_client *nfs_netns_client_alloc(struct kobject *parent,
|
|||||||
p = kzalloc(sizeof(*p), GFP_KERNEL);
|
p = kzalloc(sizeof(*p), GFP_KERNEL);
|
||||||
if (p) {
|
if (p) {
|
||||||
p->net = net;
|
p->net = net;
|
||||||
p->kobject.kset = nfs_client_kset;
|
p->kobject.kset = nfs_kset;
|
||||||
if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type,
|
if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type,
|
||||||
parent, "nfs_client") == 0)
|
parent, "nfs_client") == 0)
|
||||||
return p;
|
return p;
|
||||||
|
Loading…
Reference in New Issue
Block a user