Commit 7b04d717 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds
Browse files


Introduce GFP_NOWAIT, as an alias for GFP_ATOMIC & ~__GFP_HIGH.

This also changes XFS, which is the only in-tree user of this idiom that I
could find.  The XFS piece is compile-tested only.
Signed-off-by: default avatarJeff Dike <>
Acked-by: default avatarNathan Scott <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a5d2f46a
......@@ -182,7 +182,7 @@ free_address(
a_list_t *aentry;
aentry = kmalloc(sizeof(a_list_t), GFP_ATOMIC & ~__GFP_HIGH);
aentry = kmalloc(sizeof(a_list_t), GFP_NOWAIT);
if (likely(aentry)) {
aentry->next = as_free_head;
......@@ -57,6 +57,8 @@ struct vm_area_struct;
/* This equals 0, but use constants in case they ever change */
/* GFP_ATOMIC means both !wait (__GFP_WAIT not set) and use emergency pool */
#define GFP_NOIO (__GFP_WAIT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment