[GIT PULL v2] tracefs: Updates for v7.1
From: Steven Rostedt
Date: Wed Apr 15 2026 - 09:50:06 EST
Linus,
tracefs updates for 7.1:
- Simplify error handling with guards()
Use guards() to simplify the handling of releasing locks in exit paths.
- Use dentry name snapshots instead of allocation
Instead of allocating a temp buffer to store the dentry name to use in
mkdir() and rmdir() use take_dentry_name_snapshot().
- Fix default permissions not being applied at boot
The default permissions for tracefs was 0700 to only allow root having
access. But after a change to fix other mount options the update to
permissions ignored the defined default and used the system default of
0755. This is a regression and is fixed.
Changes since v1: https://lore.kernel.org/all/20260414075753.2a036358@robin/
- Removed unused 'ret' variable in eventfs_iterate()
Please pull the latest tracefs-v7.1-v2 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
tracefs-v7.1-v2
Tag SHA1: c36d45ffeeebaebebf9da442dfc7873239da93bc
Head SHA1: 43cec30c44764c4b1401fdeb48bfd18c3fc7eff8
AnishMulay (1):
tracefs: Use dentry name snapshots instead of heap allocation
David Carlier (1):
tracefs: Fix default permissions not being applied on initial mount
Steven Rostedt (2):
eventfs: Simplify code using guard()s
tracefs: Removed unused 'ret' variable in eventfs_iterate()
----
fs/tracefs/event_inode.c | 98 ++++++++++++++++++------------------------------
fs/tracefs/inode.c | 40 +++++---------------
2 files changed, 45 insertions(+), 93 deletions(-)
---------------------------