Re: [PATCH] mm/page_alloc: Add a reason for reserved pages in has_unmovable_pages()

From: Qian Cai
Date: Thu Oct 03 2019 - 07:19:18 EST




> On Oct 3, 2019, at 5:32 AM, Anshuman Khandual <Anshuman.Khandual@xxxxxxx> wrote:
>
> Even though page flags does contain reserved bit information, the problem
> is that we are explicitly printing the reason for this page dump. In this
> case it is caused by the fact that it is a reserved page.
>
> page dumped because: <reason>
>
> The proposed change makes it explicit that the dump is caused because a
> non movable page with reserved bit set. It also helps in differentiating
> between reserved bit condition and the last one "if (found > count)".

Then, someone later would like to add a reason for every different page flags just because they *think* they are special.