All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Coddington <bcodding@redhat.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 1/9] NFS: rename nfs_client_kset to nfs_kset
Date: Fri, 21 Apr 2023 13:18:31 -0400	[thread overview]
Message-ID: <698994379a2d17dded9f853bbdf3649345808126.1682097420.git.bcodding@redhat.com> (raw)
In-Reply-To: <cover.1682097420.git.bcodding@redhat.com>

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>
---
 fs/nfs/sysfs.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c
index 0cbcd2dfa732..81d98727b79f 100644
--- a/fs/nfs/sysfs.c
+++ b/fs/nfs/sysfs.c
@@ -18,7 +18,7 @@
 #include "sysfs.h"
 
 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)
 {
@@ -55,13 +55,13 @@ static struct kobject *nfs_netns_object_alloc(const char *name,
 
 int nfs_sysfs_init(void)
 {
-	nfs_client_kset = kset_create_and_add("nfs", NULL, fs_kobj);
-	if (!nfs_client_kset)
+	nfs_kset = kset_create_and_add("nfs", NULL, fs_kobj);
+	if (!nfs_kset)
 		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) {
-		kset_unregister(nfs_client_kset);
-		nfs_client_kset = NULL;
+		kset_unregister(nfs_kset);
+		nfs_kset = NULL;
 		return -ENOMEM;
 	}
 	return 0;
@@ -70,7 +70,7 @@ int nfs_sysfs_init(void)
 void nfs_sysfs_exit(void)
 {
 	kobject_put(nfs_client_kobj);
-	kset_unregister(nfs_client_kset);
+	kset_unregister(nfs_kset);
 }
 
 static ssize_t nfs_netns_identifier_show(struct kobject *kobj,
@@ -159,7 +159,7 @@ static struct nfs_netns_client *nfs_netns_client_alloc(struct kobject *parent,
 	p = kzalloc(sizeof(*p), GFP_KERNEL);
 	if (p) {
 		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,
 					parent, "nfs_client") == 0)
 			return p;
-- 
2.39.2


  reply	other threads:[~2023-04-21 17:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 17:18 [PATCH 0/9 RFC v3] NFS sysfs scaffolding Benjamin Coddington
2023-04-21 17:18 ` Benjamin Coddington [this message]
2023-04-21 17:18 ` [PATCH 2/9] NFS: rename nfs_client_kobj to nfs_net_kobj Benjamin Coddington
2023-04-21 17:18 ` [PATCH 3/9] NFS: add superblock sysfs entries Benjamin Coddington
2023-04-21 17:18 ` [PATCH 4/9] NFS: Add sysfs links to sunrpc clients for nfs_clients Benjamin Coddington
2023-04-21 17:18 ` [PATCH 5/9] NFS: add a sysfs link to the lockd rpc_client Benjamin Coddington
2023-04-21 17:18 ` [PATCH 6/9] NFS: add a sysfs link to the acl rpc_client Benjamin Coddington
2023-04-21 17:18 ` [PATCH 7/9] NFS: add sysfs shutdown knob Benjamin Coddington
2023-04-21 17:18 ` [PATCH 8/9] NFS: Cancel all existing RPC tasks when shutdown Benjamin Coddington
2023-04-21 17:18 ` [PATCH 9/9] NFSv4: Clean up some shutdown loops Benjamin Coddington
  -- strict thread matches above, loose matches on Subject: below --
2023-04-21 17:08 [PATCH 0/9 RFC v2] NFS sysfs scaffolding Benjamin Coddington
2023-04-21 17:08 ` [PATCH 1/9] NFS: rename nfs_client_kset to nfs_kset Benjamin Coddington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=698994379a2d17dded9f853bbdf3649345808126.1682097420.git.bcodding@redhat.com \
    --to=bcodding@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.