summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-tree.h
AgeCommit message (Collapse)Author
2015-06-10btrfs: qgroup: Add new qgroup calculation functionQu Wenruo
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>