Re: [PATCH 02/11] mm: Pass order to __alloc_pages_nodemask in GFP flags

Kirill A. Shutemov
2019-05-14T13:17:01Z

On Mon, May 06, 2019 at 09:06:00PM -0700, Matthew Wilcox wrote:
> +/*
> + * Extract the order from a GFP bitmask.
> + * Must be the top bits to avoid an AND operation. Don't let
> + * __GFP_BITS_SHIFT get over 27

Should we have BUILD_BUG_ON() for this?