]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: qgroup: Switch rescan to new mechanism.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 13 Apr 2015 03:02:16 +0000 (11:02 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:25:54 +0000 (09:25 -0700)
commitbe207796a73e3208279ef93da78a94f58f448a0a
tree5e95f0958a90f38f6c7f50bdd78e6baa59a9dd20
parente1d90738fe1a15688af4693b245ce4648372b56b
btrfs: qgroup: Switch rescan to new mechanism.

Switch rescan to use the new new extent oriented mechanism.

As rescan is also based on extent, new mechanism is just a perfect match
for rescan.

With re-designed internal functions, rescan is quite easy, just call
btrfs_find_all_roots() and then btrfs_qgroup_account_one_extent().

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