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_kobj to nfs_net_kobj

Match the variable names to the sysfs structure.

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
d5082ace 8b18a2ed

+6 -6
+5 -5
fs/nfs/sysfs.c
··· 17 17 #include "netns.h" 18 18 #include "sysfs.h" 19 19 20 - struct kobject *nfs_client_kobj; 20 + struct kobject *nfs_net_kobj; 21 21 static struct kset *nfs_kset; 22 22 23 23 static void nfs_netns_object_release(struct kobject *kobj) ··· 58 58 nfs_kset = kset_create_and_add("nfs", NULL, fs_kobj); 59 59 if (!nfs_kset) 60 60 return -ENOMEM; 61 - nfs_client_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL); 62 - if (!nfs_client_kobj) { 61 + nfs_net_kobj = nfs_netns_object_alloc("net", nfs_kset, NULL); 62 + if (!nfs_net_kobj) { 63 63 kset_unregister(nfs_kset); 64 64 nfs_kset = NULL; 65 65 return -ENOMEM; ··· 69 69 70 70 void nfs_sysfs_exit(void) 71 71 { 72 - kobject_put(nfs_client_kobj); 72 + kobject_put(nfs_net_kobj); 73 73 kset_unregister(nfs_kset); 74 74 } 75 75 ··· 172 172 { 173 173 struct nfs_netns_client *clp; 174 174 175 - clp = nfs_netns_client_alloc(nfs_client_kobj, net); 175 + clp = nfs_netns_client_alloc(nfs_net_kobj, net); 176 176 if (clp) { 177 177 netns->nfs_client = clp; 178 178 kobject_uevent(&clp->kobject, KOBJ_ADD);
+1 -1
fs/nfs/sysfs.h
··· 14 14 const char __rcu *identifier; 15 15 }; 16 16 17 - extern struct kobject *nfs_client_kobj; 17 + extern struct kobject *nfs_net_kobj; 18 18 19 19 extern int nfs_sysfs_init(void); 20 20 extern void nfs_sysfs_exit(void);