linux/include/trace
Goldwyn Rodrigues 520e8b4bcf btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file()
[ Upstream commit a85b46db14 ]

If overlay is used on top of btrfs, dentry->d_sb translates to overlay's
super block and fsid assignment will lead to a crash.

Use file_inode(file)->i_sb to always get btrfs_sb.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-06-01 17:35:00 +02:00
..
events btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file() 2026-06-01 17:35:00 +02:00
misc NFSD: Remove NFSERR_EAGAIN 2026-01-19 13:10:18 +01:00
bpf_probe.h tracing: Introduce helpers to safely handle dynamic-sized sockaddrs 2023-05-24 17:36:50 +01:00
define_trace.h tracepoint: Optimize using static_call() 2020-09-01 09:58:06 +02:00
perf.h tracing: Introduce helpers to safely handle dynamic-sized sockaddrs 2023-05-24 17:36:50 +01:00
syscall.h tracepoints: Migrate to use SYSCALL_WORK flag 2020-11-16 21:53:15 +01:00
trace_events.h tracing: Introduce helpers to safely handle dynamic-sized sockaddrs 2023-05-24 17:36:50 +01:00