Re: [PATCH] mm/mempolicy: clean up the code logic in queue_pages_pte_range

From: David Rientjes
Date: Sun Apr 24 2022 - 15:23:43 EST

On Tue, 19 Apr 2022, Miaohe Lin wrote:

> Since commit e5947d23edd8 ("mm: mempolicy: don't have to split pmd for
> huge zero page"), THP is never splited in queue_pages_pmd. Thus 2 is
> never returned now. We can remove such unnecessary ret != 2 check and
> clean up the relevant comment. Minor improvements in readability.
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>