[PATCH] kernfs: fix stale comment referencing old @sd

From: Jack

Date: Mon Nov 02 2026 - 15:15:30 EST


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@xxxxxxxxxx>
---
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)