From: Chris Mason Date: Mon, 23 Jul 2012 19:23:45 +0000 (-0400) Subject: Btrfs: don't wait around for new log writers on an SSD X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e39e64ac0cdeca3798a6bf186f873be20e2f57b4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Btrfs: don't wait around for new log writers on an SSD Waiting on spindles improves performance, but ssds want all the IO as quickly as we can push it down. Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index b72b068183ec..8c35847d0fee 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1330,7 +1330,8 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, spin_unlock(&root->fs_info->trans_lock); } - if (now < cur_trans->start_time || now - cur_trans->start_time < 1) + if (!btrfs_test_opt(root, SSD) && + (now < cur_trans->start_time || now - cur_trans->start_time < 1)) should_grow = 1; do {