btrfs: qgroup: Allow trace_btrfs_qgroup_account_extent() to record its transid
authorQu Wenruo <wqu@suse.com>
Thu, 3 May 2018 01:59:02 +0000 (09:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:30 +0000 (18:07 +0200)
commitc9f6f3cd1c6fc4df959ce2bce15e5e6ce660bfd4
tree5c00feff81afe60902b45f1f20c72365ded6949e
parentf5686e3acdfd8b2559ed6988f85374c36e1fed4c
btrfs: qgroup: Allow trace_btrfs_qgroup_account_extent() to record its transid

When debugging quota rescan race, some times btrfs rescan could account
some old (committed) leaf and then re-account newly committed leaf
in next generation.

This race needs extra transid to locate, so add @transid for
trace_btrfs_qgroup_account_extent() for such debug.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c
include/trace/events/btrfs.h