commit | 823ae5b8e340003dacbe7cd08a355efe018c9f1b | [log] [tgz] |
---|---|---|
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | Sun Apr 12 16:59:57 2015 +0800 |
committer | Chris Mason <clm@fb.com> | Wed Jun 10 09:25:28 2015 -0700 |
tree | efc852b58959ab5f163078708a14064e0c8cbbd2 | |
parent | d810ef2be5b8b15c9b6f88f9a09b1b4b16e30871 [diff] |
btrfs: qgroup: Add function qgroup_update_counters(). Add function qgroup_update_counters(), which will update related qgroups' rfer/excl according to old/new_roots. This is one of the two core functions for the new qgroup implement. This is based on btrfs_adjust_coutners() but with clearer logic and comment. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>