[PATCH -V5 09/21] swap: Swapin a THP in one piece

2018-09-03 Thread Huang Ying
With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP in one piece. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page() is added in

[PATCH -V5 09/21] swap: Swapin a THP in one piece

2018-09-03 Thread Huang Ying
With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP in one piece. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page() is added in