]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: EXPERIMENTAL patch from josef to combat long commit intervals
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 12 Feb 2020 16:32:42 +0000 (11:32 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 12 Feb 2020 23:48:49 +0000 (18:48 -0500)
(cherry picked from commit add02ef51bebdea81e4244491de248944e68eb32)

  Conflicts:
  fs/btrfs/extent-tree.c

fs/btrfs/extent-tree.c

index b55ae18aacd199735712412766e05b3da321bde9..46c2555d724fe68fd70e7ba5d0ce8a76c66f7daa 100644 (file)
@@ -3000,7 +3000,8 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
 
        delayed_refs = &trans->transaction->delayed_refs;
        if (count == 0)
-               count = atomic_read(&delayed_refs->num_entries) * 2;
+               // count = atomic_read(&delayed_refs->num_entries) * 2;
+               count = delayed_refs->num_heads * 2;
 
 again:
 #ifdef SCRAMBLE_DELAYED_REFS