]> git.hungrycats.org Git - linux/commitdiff
Revert "btrfs: delayed refs pre-flushing should only run the heads we have"
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 5 Dec 2021 08:07:35 +0000 (03:07 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 5 Dec 2021 08:07:35 +0000 (03:07 -0500)
This reverts commit 254b10f1c0bc96ff19e7aa784da0777824b53071.

fs/btrfs/extent-tree.c

index 5f4d0416ce99c9a4faa0f369c75db7ca60682134..26db0d505b035948fd939fef8bfb915211bd64da 100644 (file)
@@ -2126,7 +2126,7 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
 
        delayed_refs = &trans->transaction->delayed_refs;
        if (count == 0)
-               count = delayed_refs->num_heads_ready;
+               count = atomic_read(&delayed_refs->num_entries) * 2;
 
 again:
 #ifdef SCRAMBLE_DELAYED_REFS