All of lore.kernel.org
 help / color / mirror / Atom feed
* [for-next][PATCH 0/2] eventfs: Fixes for v7.5
@ 2026-12-03 19:18 Steven Rostedt
  2026-12-03 19:18 ` [for-next][PATCH 1/2] eventfs: Add kernel doc to eventfs_root_lookup_ro() Steven Rostedt
  2026-12-03 19:18 ` [for-next][PATCH 2/2] tracefs: Fix typo in a comment of eventfs_entry kerneldoc Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Rostedt @ 2026-12-03 19:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masami Hiramatsu, Mathieu Desnoyers, Andrew Morton, Mark Rutland

  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
eventfs/for-next

Head SHA1: b6c62c58070a5753effc31e813b19959a095470a


Steven Rostedt (1):
      eventfs: Add kernel doc to eventfs_root_lookup_ro()

Youling Tang (1):
      tracefs: Fix typo in a comment of eventfs_entry kerneldoc

----
 fs/tracefs/event_inode.c | 34 +++++++++++++++++++++++-----------
 include/linux/tracefs.h  |  2 +-
 2 files changed, 24 insertions(+), 12 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [for-next][PATCH 1/2] eventfs: Add kernel doc to eventfs_root_lookup_ro()
  2026-12-03 19:18 [for-next][PATCH 0/2] eventfs: Fixes for v7.5 Steven Rostedt
@ 2026-12-03 19:18 ` Steven Rostedt
  2026-12-03 19:18 ` [for-next][PATCH 2/2] tracefs: Fix typo in a comment of eventfs_entry kerneldoc Steven Rostedt
  1 sibling, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2026-12-03 19:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masami Hiramatsu, Mathieu Desnoyers, Andrew Morton, Mark Rutland,
	Manuel Ebner

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [for-next][PATCH 2/2] tracefs: Fix typo in a comment of eventfs_entry kerneldoc
  2026-12-03 19:18 [for-next][PATCH 0/2] eventfs: Fixes for v7.5 Steven Rostedt
  2026-12-03 19:18 ` [for-next][PATCH 1/2] eventfs: Add kernel doc to eventfs_root_lookup_ro() Steven Rostedt
@ 2026-12-03 19:18 ` Steven Rostedt
  1 sibling, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2026-12-03 19:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masami Hiramatsu, Mathieu Desnoyers, Andrew Morton, Mark Rutland,
	Youling Tang

From: Youling Tang <youling.tang@linux.dev>

Fix a typo "evenfs_callback" to "eventfs_callback" in a comment.

Link: https://patch.msgid.link/20261201071721.918308-1-youling.tang@linux.dev
Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 include/linux/tracefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/tracefs.h b/include/linux/tracefs.h
index 61b0ef3a5efd..f6c77b910bae 100644
--- a/include/linux/tracefs.h
+++ b/include/linux/tracefs.h
@@ -71,7 +71,7 @@ typedef void (*eventfs_release)(const char *name, void *data);
  * @release:	The callback when the fops of the file is released
  * @read_only:	Set if this file can be part of the read-only eventfs file system
  *
- * See evenfs_callback() typedef for how to set up @callback.
+ * See eventfs_callback() typedef for how to set up @callback.
  */
 struct eventfs_entry {
 	const char			*name;
-- 
2.53.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 19:18 [for-next][PATCH 0/2] eventfs: Fixes for v7.5 Steven Rostedt
2026-12-03 19:18 ` [for-next][PATCH 1/2] eventfs: Add kernel doc to eventfs_root_lookup_ro() Steven Rostedt
2026-12-03 19:18 ` [for-next][PATCH 2/2] tracefs: Fix typo in a comment of eventfs_entry kerneldoc Steven Rostedt

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.