]> git.hungrycats.org Git - linux/commitdiff
Revert "Btrfs: don't bother kicking async if there's nothing to reclaim"
authorZygo Blaxell <zblaxell@thirteen.furryterror.org>
Fri, 19 Aug 2016 04:17:12 +0000 (00:17 -0400)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Fri, 19 Aug 2016 04:17:32 +0000 (00:17 -0400)
because this apparently causes self-deadlocks and a panic on 4.5.7.

This reverts commit 9dd8e72eb5e376c6c16e975384e467224c568345.

fs/btrfs/extent-tree.c

index ec563315302ae6d14d5861e8b3d6709b991f13eb..727d86de29f32f7fa47e4e497bde581c7d624eb5 100644 (file)
@@ -4870,9 +4870,6 @@ static inline int need_do_async_reclaim(struct btrfs_space_info *space_info,
        if (space_info->bytes_used >= thresh)
                return 0;
 
-       if (!btrfs_calc_reclaim_metadata_size(fs_info->fs_root, space_info))
-               return 0;
-
        return (used >= thresh && !btrfs_fs_closing(fs_info) &&
                !test_bit(BTRFS_FS_STATE_REMOUNTING, &fs_info->fs_state));
 }