summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2015-02-18 08:06:57 -0800
committerChris Mason <clm@fb.com>2015-04-10 14:06:48 -0700
commitcb723e491955ac11a1591ae25cada7c3b1470609 (patch)
tree58200c48343b87ddb04048aca34e06e43e1f6b2f /fs/btrfs/transaction.h
parent28f75a0e6cdfbce8115487ecbc0968a2c4e01806 (diff)
downloadop-kernel-dev-cb723e491955ac11a1591ae25cada7c3b1470609.zip
op-kernel-dev-cb723e491955ac11a1591ae25cada7c3b1470609.tar.gz
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.h')
-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 96b189b..4cb0ae2 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;
OpenPOWER on IntegriCloud