commit | 550d7a2ed5db35756222ec17cff3376ff38d78e2 | [log] [tgz] |
---|---|---|
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | Thu Apr 16 15:37:33 2015 +0800 |
committer | Chris Mason <clm@fb.com> | Wed Jun 10 09:25:49 2015 -0700 |
tree | c8b60650e4ac8facdf25f498e2901b7eebb3f4ae | |
parent | 21633fc6037f8ceb2bb927dacc3f9ef46ccae891 [diff] |
btrfs: qgroup: Add new qgroup calculation function btrfs_qgroup_account_extents(). The new btrfs_qgroup_account_extents() function should be called in btrfs_commit_transaction() and it will update all the qgroup according to delayed_ref_root->dirty_extent_root. The new function can handle both normal operation during commit_transaction() or in rescan in a unified method with clearer logic. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>