summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2015-02-18 17:06:57 +0100
committerChris Mason <clm@fb.com>2015-04-10 23:06:48 +0200
commitcb723e491955ac11a1591ae25cada7c3b1470609 (patch)
tree58200c48343b87ddb04048aca34e06e43e1f6b2f /fs/btrfs/transaction.h
parentBtrfs: refill block reserves during truncate (diff)
downloadlinux-cb723e491955ac11a1591ae25cada7c3b1470609.tar.xz
linux-cb723e491955ac11a1591ae25cada7c3b1470609.zip
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 '')
-rw-r--r--fs/btrfs/transaction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h
index 96b189b8898a..4cb0ae264534 100644
--- a/fs/btrfs/transaction.h
+++ b/fs/btrfs/transaction.h
@@ -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;