2/6

mm: factor out generic PTE batch detection from swap_pte_batch()

[mm: factor out generic PTE batch detection from swap_pte_batch()] Factor out the generic PTE batch detection logic from swap_pte_batch() into softleaf_pte_batch() helper, so that it can be reused by