diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-06-28 12:04:55 -0400 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-07-12 04:54:37 -0400 |
commit | edf39272db4810282360f7362d43ade1d524c913 (patch) | |
tree | 930d440538a3ab719234dfff0d6aec7968f15b7f /fs/btrfs/extent-tree.c | |
parent | bed92eae26ccf280d1a2168b7509447b56675a27 (diff) |
Btrfs: call the qgroup accounting functions
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1a63b830846d..c08337a83ace 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -2479,6 +2479,8 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, | |||
2479 | 2 * 1024 * 1024, btrfs_get_alloc_profile(root, 0), | 2479 | 2 * 1024 * 1024, btrfs_get_alloc_profile(root, 0), |
2480 | CHUNK_ALLOC_NO_FORCE); | 2480 | CHUNK_ALLOC_NO_FORCE); |
2481 | 2481 | ||
2482 | btrfs_delayed_refs_qgroup_accounting(trans, root->fs_info); | ||
2483 | |||
2482 | delayed_refs = &trans->transaction->delayed_refs; | 2484 | delayed_refs = &trans->transaction->delayed_refs; |
2483 | INIT_LIST_HEAD(&cluster); | 2485 | INIT_LIST_HEAD(&cluster); |
2484 | again: | 2486 | again: |
@@ -2588,6 +2590,7 @@ again: | |||
2588 | } | 2590 | } |
2589 | out: | 2591 | out: |
2590 | spin_unlock(&delayed_refs->lock); | 2592 | spin_unlock(&delayed_refs->lock); |
2593 | assert_qgroups_uptodate(trans); | ||
2591 | return 0; | 2594 | return 0; |
2592 | } | 2595 | } |
2593 | 2596 | ||