Re: [PATCH 06/12] mm, page_alloc: Use masks and shifts when converting GFP flags to migrate types

From: Vlastimil Babka
Date: Tue Aug 25 2015 - 10:36:23 EST

On 08/24/2015 02:09 PM, Mel Gorman wrote:
This patch redefines which GFP bits are used for specifying mobility and
the order of the migrate types. Once redefined it's possible to convert
GFP flags to a migrate type with a simple mask and shift. The only downside
is that readers of OOM kill messages and allocation failures may have been
used to the existing values but scripts/gfp-translate will help.

Yeah after patches 7 and 8, this is not much of a concern :)

Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at