]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
btrfs: qgroup: Add function qgroup_update_counters().
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Sun, 12 Apr 2015 08:59:57 +0000 (16:59 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:25:28 +0000 (09:25 -0700)
commit823ae5b8e340003dacbe7cd08a355efe018c9f1b
treeefc852b58959ab5f163078708a14064e0c8cbbd2
parentd810ef2be5b8b15c9b6f88f9a09b1b4b16e30871
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>
fs/btrfs/qgroup.c