From 2fab3b4377035ee35169af24482cc13222f7c882 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 30 Sep 2019 15:19:05 -0700 Subject: [PATCH] scoutfs: allow larger 8MB transactions Try using larger transactions. This will probably be tweaked over time. Signed-off-by: Zach Brown --- kmod/src/trans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmod/src/trans.c b/kmod/src/trans.c index 3be2804f..deb25f20 100644 --- a/kmod/src/trans.c +++ b/kmod/src/trans.c @@ -296,8 +296,8 @@ static bool acquired_hold(struct super_block *sb, items = tri->reserved_items + cnt->items; vals = tri->reserved_vals + cnt->vals; - /* XXX just limit to 256K transactions */ - if (scoutfs_forest_dirty_bytes(sb) >= (256 * 1024)) { + /* XXX arbitrarily limit to 8 meg transactions */ + if (scoutfs_forest_dirty_bytes(sb) >= (8 * 1024 * 1024)) { scoutfs_inc_counter(sb, trans_commit_full); queue_trans_work(sbi); goto out;