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.
Please pull the latest tracefs-v7.1 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
tracefs-v7.1
Tag SHA1: e5d58661152be92434e3ef6ebcd4e9b4ceaec6dd Head SHA1: e8368d1f4bedbb0cce4cfe33a1d2664bb0fd4f27
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 (1):
eventfs: Simplify code using guard()s
----
fs/tracefs/event_inode.c | 96 ++++++++++++++++++------------------------------ fs/tracefs/inode.c | 40 +++++--------------- 2 files changed, 45 insertions(+), 91 deletions(-)
---------------------------
Quoted 3 lines · On Tue, 14 Apr 2026 07:57:53 -0400 Steven Rostedt <[email protected]> wrote:
Linus,
tracefs updates for 7.1:
Hi Linus,
Hold off on pulling this. I just noticed that kernel test robot found a set but not used variable in the code. I want to fix that before it gets pulled in.
-- Steve
The pull request you sent on Tue, 14 Apr 2026 07:57:53 -0400:
The pull request you sent on Tue, 14 Apr 2026 07:57:53 -0400:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.gittracefs-v7.1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/43cec30c44764c4b1401fdeb48bfd18c3fc7eff8
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html