eventfs: Read ei->entries before ei->children in eventfs_iterate()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 4 Jan 2024 21:57:14 +0000 (16:57 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 4 Jan 2024 22:11:58 +0000 (17:11 -0500)
commit704f960dbee2f1634f4b4e16f208cb16eaf41c1e
tree46c0ff0987ba4d65f80a2fdadbf56d6930643bdb
parent1e4624eb5a0ecaae0d2c4e3019bece119725bb98
eventfs: Read ei->entries before ei->children in eventfs_iterate()

In order to apply a shortcut to skip over the current ctx->pos
immediately, by using the ei->entries array, the reading of that array
should be first. Moving the array reading before the linked list reading
will make the shortcut change diff nicer to read.

Link: https://lore.kernel.org/all/CAHk-=wiKwDUDv3+jCsv-uacDcHDVTYsXtBR9=6sGM5mqX+DhOg@mail.gmail.com/
Link: https://lore.kernel.org/linux-trace-kernel/20240104220048.333115095@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
fs/tracefs/event_inode.c