btrfs: qgroup: Introduce trace event to analyse the number of dirty extents accounted
authorQu Wenruo <wqu@suse.com>
Thu, 27 Sep 2018 06:42:29 +0000 (14:42 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:36 +0000 (17:23 +0200)
commitc337e7b02f71c4b2f6f2138807a284d2c4e1ac5e
tree136cbe7591e6c48aa1b61a6d470d68e1dcdbe0a1
parentfa6ac71524f206c33accfc12294fd35e17478fe0
btrfs: qgroup: Introduce trace event to analyse the number of dirty extents accounted

Number of qgroup dirty extents is directly linked to the performance
overhead, so add a new trace event, trace_qgroup_num_dirty_extents(), to
record how many dirty extents is processed in
btrfs_qgroup_account_extents().

This will be pretty handy to analyze later balance performance
improvement.

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