Re: [PATCH v2] mm: introduce PAGEFLAGS_MASK to replace ((1UL << NR_PAGEFLAGS) - 1)

Johannes Weiner
2021-08-19T18:08:47Z

On Thu, Aug 19, 2021 at 11:07:12PM +0800, Muchun Song wrote:
> Instead of hard-coding ((1UL << NR_PAGEFLAGS) - 1) everywhere, introducing
> PAGEFLAGS_MASK to make the code clear to get the page flags.
>
> Signed-off-by: Muchun Song <songmuchun@bytedance.com>

LGTM.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>