diff --git a/mm/swapfile.c b/mm/swapfile.c index 765fca3451d2cf6073258cca3f87047686dcdd69..46e6b0c06f095e994315d3e49dc5da7fb1230e59 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1000,7 +1000,7 @@ int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int entry_size) goto nextsi; } if (size == SWAPFILE_CLUSTER) { - if (!(si->flags & SWP_FS)) + if (si->flags & SWP_BLKDEV) n_ret = swap_alloc_cluster(si, swp_entries); } else n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE,