From: Steven Rostedt <rostedt@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Andrew Morton <akpm@linux-foundation.org>,
Mark Rutland <mark.rutland@arm.com>,
Manuel Ebner <manuelebnerli@mailbox.org>
Subject: [for-next][PATCH 1/2] eventfs: Add kernel doc to eventfs_root_lookup_ro()
Date: Thu, 03 Dec 2026 14:18:38 -0500 [thread overview]
Message-ID: <20261203191857.798917388@kernel.org> (raw)
In-Reply-To: 20261203191837.131735108@kernel.org
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.
Link: https://patch.msgid.link/20261130154158.30cfa3d5@gandalf.local.home
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
next prev parent reply other threads:[~2026-12-03 19:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 19:18 [for-next][PATCH 0/2] eventfs: Fixes for v7.5 Steven Rostedt
2026-12-03 19:18 ` Steven Rostedt [this message]
2026-12-03 19:18 ` [for-next][PATCH 2/2] tracefs: Fix typo in a comment of eventfs_entry kerneldoc Steven Rostedt
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=20261203191857.798917388@kernel.org \
--to=rostedt@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manuelebnerli@mailbox.org \
--cc=mark.rutland@arm.com \
--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 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.