]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: pass fs_info to trace_btrfs_transaction_commit
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:29 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:47 +0000 (15:09 +0100)
commitafc31b5c8d299085ed3b353c3c68ef236f7ddcc7
tree9bb8e166af10b2eae4d7cbf94a41d5c30ea31ff0
parent31727bad8007bf21a0ea2e1647b3e88944a5fe83
btrfs: pass fs_info to trace_btrfs_transaction_commit

The root on the trans->root can be anything, and generally we're
committing from the transaction kthread so it's usually the tree_root.
Change this to just take an fs_info, and to maintain compatibility
simply put the ROOT_TREE_OBJECTID as the root objectid for the
tracepoint.  This will allow use to remove trans->root.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/transaction.c
include/trace/events/btrfs.h