Re: [PATCH 0/5] mm/mremap.c: cleanup move_page_tables() a little

From: Andrew Morton
Date: Sat Jan 18 2020 - 19:11:24 EST


On Sat, 18 Jan 2020 07:22:49 +0800 Wei Yang <richardw.yang@xxxxxxxxxxxxxxx> wrote:

> move_page_tables() tries to move page table by PMD or PTE.
>
> The root reason is if it tries to move PMD, both old and new range should
> be PMD aligned. But current code calculate old range and new range
> separately. This leads to some redundant check and calculation.
>
> This cleanup tries to consolidate the range check in one place to reduce
> some extra range handling.

Thanks, I grabbed these, aimed at 5.7-rc1.