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)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:42 +0000 (14:30 +0200)
commit0f987c099d22c3b8c7d94fd13f957792e46f79c9
treeb74ed6655cb94caf11f1afed4694e2156c12c30d
parent05efe3eb3b2ac139c4cfa3768c3adac7aeec8d3a
btrfs: tracepoints: use btrfs_root_id() to get the id of a root

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>
include/trace/events/btrfs.h