btrfs: add tracepoints for ordered extents
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 9 Jun 2022 16:28:04 +0000 (09:28 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:34 +0000 (17:45 +0200)
commit5bea2508811ec76105b01c90c1f1661024c257a9
tree24e39c815ce0a5a4cb96a7640ea0706e190622c6
parent15dcccdb8b48fa3514c038bcaf0fa455fa6d89a0
btrfs: add tracepoints for ordered extents

When debugging a reference counting issue with ordered extents, I've found
we're lacking a lot of tracepoint coverage in the ordered extent code.

Close these gaps by adding tracepoints after every refcount_inc() in the
ordered extent code.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ordered-data.c
include/trace/events/btrfs.h