[PATCH v2 05/14] mm: khugepaged: __collapse_huge_page_swapin() use pte_offset_map_ro_nolock()

Muchun Song muchun.song at linux.dev
Thu Aug 29 17:25:19 AEST 2024



> On Aug 22, 2024, at 15:13, Qi Zheng <zhengqi.arch at bytedance.com> wrote:
> 
> In __collapse_huge_page_swapin(), we just use the ptl for pte_same() check
> in do_swap_page(). In other places, we directly use pte_offset_map_lock(),
> so convert it to using pte_offset_map_ro_nolock().
> 
> Signed-off-by: Qi Zheng <zhengqi.arch at bytedance.com>

Reviewed-by: Muchun Song <muchun.song at linux.dev>




More information about the Linuxppc-dev mailing list