diff --git a/mm/swapfile.c b/mm/swapfile.c index 6c87ef6c2b9206..b0a9071cfe1dae 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -941,7 +941,7 @@ static void swap_range_alloc(struct swap_info_struct *si, unsigned long offset, si->highest_bit = 0; del_from_avail_list(si); - if (vm_swap_full()) + if (si->cluster_info && vm_swap_full()) schedule_work(&si->reclaim_work); } }