]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
btrfs: qgroup: Add new qgroup calculation function
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 16 Apr 2015 07:37:33 +0000 (15:37 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:25:49 +0000 (09:25 -0700)
commit550d7a2ed5db35756222ec17cff3376ff38d78e2
treec8b60650e4ac8facdf25f498e2901b7eebb3f4ae
parent21633fc6037f8ceb2bb927dacc3f9ef46ccae891
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>
fs/btrfs/extent-tree.h [new file with mode: 0644]
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h