btrfs: qgroup: Add trace point for qgroup reserved space
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 13 Mar 2017 07:52:08 +0000 (15:52 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:26 +0000 (14:07 +0200)
commit3159fe7baef3a50fc332455e252d8a01a18f1ff1
treeca26143b362f515627de469a0422e4045a1a4232
parent825ad4c96432a3908625dd1a79d6528e969e1a09
btrfs: qgroup: Add trace point for qgroup reserved space

Introduce the following trace points:
qgroup_update_reserve
qgroup_meta_reserve

These trace points are handy to trace qgroup reserve space related
problems.

Also export btrfs_qgroup structure, as now we directly pass btrfs_qgroup
structure to trace points, so that structure needs to be exported.

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