Message ID | 20200820212150.0xnBC1KKQ%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | + mm-thp-swap-fix-allocating-cluster-for-swapfile-by-mistake.patch added to -mm tree | expand |
--- a/mm/swapfile.c~mm-thp-swap-fix-allocating-cluster-for-swapfile-by-mistake +++ a/mm/swapfile.c @@ -1078,7 +1078,7 @@ start_over: 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,