btrfs: qgroup: Switch self test to extent-oriented qgroup mechanism.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 16 Apr 2015 09:18:36 +0000 (17:18 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:26:05 +0000 (09:26 -0700)
commit442244c9633292a147ab2b29e7007a7c8a3909b2
tree7efb4367c1a249e0cbec14f32083a37f6c666922
parent0ed4792af0e8346cb670b4bc540df7594f4b2020
btrfs: qgroup: Switch self test to extent-oriented qgroup mechanism.

Since the self test transaction don't have delayed_ref_roots, so use
find_all_roots() and export btrfs_qgroup_account_extent() to simulate it

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h
fs/btrfs/tests/qgroup-tests.c