]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: tracepoints: use btrfs_root_id() to get the id of a root
authorFilipe Manana <fdmanana@suse.com>
Thu, 3 Apr 2025 15:23:41 +0000 (16:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:31:20 +0000 (16:31 +0100)
commitec3695dd0acd5c724f15f2484b33f4ccc519c44d
tree331f5bbb46a78f9b0703fa410934e374e38b83c3
parent53df7a4c3a564556e17d8414adb9c2453621369c
btrfs: tracepoints: use btrfs_root_id() to get the id of a root

[ Upstream commit 0f987c099d22c3b8c7d94fd13f957792e46f79c9 ]

Instead of open coding btrfs_root_id() to get the ID of a root, use the
helper in the trace points, which also makes the code less verbose.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: f157dd661339 ("btrfs: fix NULL dereference on root when tracing inode eviction")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/trace/events/btrfs.h