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>
This commit is contained in:
Josef Bacik
2015-02-18 08:06:57 -08:00
committed by Chris Mason
parent 28f75a0e6c
commit cb723e4919
3 changed files with 11 additions and 3 deletions

View File

@@ -64,6 +64,7 @@ struct btrfs_transaction {
struct list_head pending_ordered;
struct list_head switch_commits;
struct list_head dirty_bgs;
u64 num_dirty_bgs;
spinlock_t dirty_bgs_lock;
struct btrfs_delayed_ref_root delayed_refs;
int aborted;