mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jack <jacktangsc@icloud.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Tejun Heo <tj@kernel.org>
Cc: driver-core@lists.linux.dev, linux-kernel@vger.kernel.org,
	Jack <jacktangsc@icloud.com>
Subject: [PATCH] kernfs: fix stale comment referencing old @sd
Date: Mon,  2 Nov 2026 23:57:15 +0800	[thread overview]
Message-ID: <20261102155715.6633-1-jacktangsc@icloud.com> (raw)

The comment still refers to old @sd which was a sysfs_dirent.
Update it to @kn to match the current function argument.

No functional change.

Signed-off-by: Jack <jacktangsc@icloud.com>
---
 fs/kernfs/kernfs-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h
index f1e93b09e..0fd8dea0b 100644
--- a/fs/kernfs/kernfs-internal.h
+++ b/fs/kernfs/kernfs-internal.h
@@ -72,7 +72,7 @@ struct kernfs_root {
 static inline struct kernfs_root *kernfs_root(const struct kernfs_node *kn)
 {
 	const struct kernfs_node *knp;
-	/* if parent exists, it's always a dir; otherwise, @sd is a dir */
+	/* if parent exists, it's always a dir; otherwise, @kn is a dir */
 	guard(rcu)();
 	knp = rcu_dereference(kn->__parent);
 	if (knp)
-- 
2.50.1 (Apple Git-155)


             reply	other threads:[~2026-11-02 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 15:57 Jack [this message]
2026-11-02 16:31 ` Greg Kroah-Hartman

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=20261102155715.6633-1-jacktangsc@icloud.com \
    --to=jacktangsc@icloud.com \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®