From: Steven Rostedt <rostedt@goodmis.org>
To: LKML <linux-kernel@vger.kernel.org>,
Linux Trace Kernel <linux-trace-kernel@vger.kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Manuel Ebner <manuelebnerli@mailbox.org>
Subject: [PATCH] eventfs: Add kernel doc to eventfs_root_lookup_ro()
Date: Mon, 30 Nov 2026 15:41:58 -0500 [thread overview]
Message-ID: <20261130154158.30cfa3d5@gandalf.local.home> (raw)
From: Steven Rostedt <rostedt@goodmis.org>
When eventfs_root_lookup() was split to have a read-only version, the
kerneldoc stayed with the helper function and just added the @ro
parameter. But what really should have been done was add a kerneldoc to
the new eventfs_root_lookup_ro() function.
Also fix up the description to mention the creation of inodes and
dentries.
Reported-by: Manuel Ebner <manuelebnerli@mailbox.org>
Link: https://lore.kernel.org/all/20261130195627.1893730-1-manuelebnerli@mailbox.org/
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
fs/tracefs/event_inode.c | 34 +++++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c
index e57c962ca441..8f5e714f267e 100644
--- a/fs/tracefs/event_inode.c
+++ b/fs/tracefs/event_inode.c
@@ -650,17 +650,6 @@ lookup_file_dentry(struct dentry *dentry,
return lookup_file(ei, dentry, mode, attr, data, fops, ro);
}
-/**
- * eventfs_root_lookup - lookup routine to create file/dir
- * @dir: in which a lookup is being done
- * @dentry: file/dir dentry
- * @flags: Just passed to simple_lookup()
- * @ro: Denote if this is from a read-only eventfs
- *
- * Used to create dynamic file/dir with-in @dir, search with-in @ei
- * list, if @dentry found go ahead and create the file/dir
- */
-
static struct dentry *__eventfs_root_lookup(struct inode *dir,
struct dentry *dentry,
unsigned int flags,
@@ -712,6 +701,16 @@ static struct dentry *__eventfs_root_lookup(struct inode *dir,
return NULL;
}
+/**
+ * eventfs_root_lookup - lookup routine to create file/dir
+ * @dir: in which a lookup is being done
+ * @dentry: file/dir dentry
+ * @flags: Just passed to simple_lookup()
+ *
+ * Used to create dynamic file/dir with-in @dir, search with-in @ei
+ * list, if @dentry found go ahead and create the file/dir inode and
+ * dentries.
+ */
static struct dentry *eventfs_root_lookup(struct inode *dir,
struct dentry *dentry,
unsigned int flags)
@@ -719,6 +718,19 @@ static struct dentry *eventfs_root_lookup(struct inode *dir,
return __eventfs_root_lookup(dir, dentry, flags, false);
}
+/**
+ * eventfs_root_lookup_ro - lookup routine to create read only file/dir
+ * @dir: in which a lookup is being done
+ * @dentry: file/dir dentry
+ * @flags: Just passed to simple_lookup()
+ *
+ * Used to create dynamic file/dir with-in @dir, search with-in @ei
+ * list, if @dentry found go ahead and create the file/dir inode and
+ * dentries.
+ *
+ * This is used only for read only eventfs file system that displays
+ * only inframtion files for trace events.
+ */
static struct dentry *eventfs_root_lookup_ro(struct inode *dir,
struct dentry *dentry,
unsigned int flags)
--
2.53.0
reply other threads:[~2026-11-30 20:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261130154158.30cfa3d5@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=manuelebnerli@mailbox.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@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®