Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFS: rename nfs_client_kset to nfs_kset

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>

authored by

Benjamin Coddington and committed by
Trond Myklebust
8b18a2ed c8407f2e

+8 -8
+8 -8
fs/nfs/sysfs.c
··· 18 18 #include "sysfs.h" 19 19 20 20 struct kobject *nfs_client_kobj; 21 - static struct kset *nfs_client_kset; 21 + static struct kset *nfs_kset; 22 22 23 23 static void nfs_netns_object_release(struct kobject *kobj) 24 24 { ··· 55 55 56 56 int nfs_sysfs_init(void) 57 57 { 58 - nfs_client_kset = kset_create_and_add("nfs", NULL, fs_kobj); 59 - if (!nfs_client_kset) 58 + nfs_kset = kset_create_and_add("nfs", NULL, fs_kobj); 59 + if (!nfs_kset) 60 60 return -ENOMEM; 61 - nfs_client_kobj = nfs_netns_object_alloc("net", nfs_client_kset, NULL); 61 + nfs_client_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL); 62 62 if (!nfs_client_kobj) { 63 - kset_unregister(nfs_client_kset); 64 - nfs_client_kset = NULL; 63 + kset_unregister(nfs_kset); 64 + nfs_kset = NULL; 65 65 return -ENOMEM; 66 66 } 67 67 return 0; ··· 70 70 void nfs_sysfs_exit(void) 71 71 { 72 72 kobject_put(nfs_client_kobj); 73 - kset_unregister(nfs_client_kset); 73 + kset_unregister(nfs_kset); 74 74 } 75 75 76 76 static ssize_t nfs_netns_identifier_show(struct kobject *kobj, ··· 159 159 p = kzalloc(sizeof(*p), GFP_KERNEL); 160 160 if (p) { 161 161 p->net = net; 162 - p->kobject.kset = nfs_client_kset; 162 + p->kobject.kset = nfs_kset; 163 163 if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type, 164 164 parent, "nfs_client") == 0) 165 165 return p;