Skip to contentSkip to conversation

in non-NUMA case mark GFP_THISNODE gfp_t

PATCH New Al Viro 1 participant 1 message Feb 9, 2007

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 in non-NUMA case mark GFP_THISNODE gfp_t

... operations with it are OK as is, but flags & ~0 will have no idea that this ~0 is meant to be ~gfp_t.

---
 include/linux/gfp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/gfp.h +1 -1
index 00c314a..063799e 100644
@@ -70,7 +70,7 @@ struct vm_area_struct;
 #ifdef CONFIG_NUMA
 #define GFP_THISNODE	(__GFP_THISNODE | __GFP_NOWARN | __GFP_NORETRY)
 #else
-#define GFP_THISNODE	0
+#define GFP_THISNODE	((__force gfp_t)0)
 #endif
 
 
Signature · 1 line
1.5.0-rc2.GIT