tracefs: Updates for v7.1
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(-)
---------------------------
The pull request you sent on Wed, 15 Apr 2026 09:49:09 -0400:
The pull request you sent on Wed, 15 Apr 2026 09:49:09 -0400:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.gittracefs-v7.1-v2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b7f84966b6f17626a8129723894dc315a076b391
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html