]> git.hungrycats.org Git - linux/commitdiff
Revert "btrfs: check reclaim_size in need_preemptive_reclaim"
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 9 Dec 2020 15:31:46 +0000 (10:31 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 9 Dec 2020 15:31:46 +0000 (10:31 -0500)
This reverts commit 11aa461939a79a44d7e2815b0ea1b234cd4d3814.

fs/btrfs/space-info.c

index 80b3335835cf7acef1a87481478d17f049b84680..0a0bdee1c74df7f03cab4eb394e3e88b8a34cb01 100644 (file)
@@ -806,13 +806,6 @@ static inline bool need_preemptive_reclaim(struct btrfs_fs_info *fs_info,
        if ((space_info->bytes_used + space_info->bytes_reserved) >= thresh)
                return 0;
 
-       /*
-        * We have tickets queued, bail so we don't compete with the async
-        * flushers.
-        */
-       if (space_info->reclaim_size)
-               return 0;
-
        if (!btrfs_calc_reclaim_metadata_size(fs_info, space_info))
                return 0;