From: Qu Wenruo Date: Thu, 16 Apr 2015 07:37:33 +0000 (+0800) Subject: btrfs: qgroup: Add new qgroup calculation function X-Git-Tag: omap-for-v4.3/legacy-v2-signed~98^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=550d7a2ed5db35756222ec17cff3376ff38d78e2;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed