diff options
author | Josef Bacik <jbacik@fb.com> | 2015-02-18 16:06:57 (GMT) |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-04-10 21:06:48 (GMT) |
commit | cb723e491955ac11a1591ae25cada7c3b1470609 (patch) | |
tree | 58200c48343b87ddb04048aca34e06e43e1f6b2f /fs/btrfs/transaction.c | |
parent | 28f75a0e6cdfbce8115487ecbc0968a2c4e01806 (diff) | |
download | linux-cb723e491955ac11a1591ae25cada7c3b1470609.tar.xz |
Btrfs: reserve space for block groups
This changes our delayed refs calculations to include the space needed
to write back dirty block groups.
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 8b9eea8..234d606 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -251,6 +251,7 @@ loop: INIT_LIST_HEAD(&cur_trans->switch_commits); INIT_LIST_HEAD(&cur_trans->pending_ordered); INIT_LIST_HEAD(&cur_trans->dirty_bgs); + cur_trans->num_dirty_bgs = 0; spin_lock_init(&cur_trans->dirty_bgs_lock); list_add_tail(&cur_trans->list, &fs_info->trans_list); extent_io_tree_init(&cur_trans->dirty_pages, |