linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add __GFP_ZERP to GFP_LEVEL_MASK
@ 2007-07-23 10:03 Peter Zijlstra
  2007-07-23 11:21 ` Mel Gorman
  2007-07-23 18:37 ` [PATCH] add __GFP_ZERP " Andrew Morton
  0 siblings, 2 replies; 28+ messages in thread
From: Peter Zijlstra @ 2007-07-23 10:03 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds, linux-kernel
  Cc: Christoph Lameter, Daniel Phillips, linux-mm

Daniel recently spotted that __GFP_ZERO is not (and has never been)
part of GFP_LEVEL_MASK. I could not find a reason for this in the
original patch: 3977971c7f09ce08ed1b8d7a67b2098eb732e4cd in the -bk
tree.

This of course is in stark contradiction with the comment accompanying
GFP_LEVEL_MASK.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
 include/linux/gfp.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-2/include/linux/gfp.h
===================================================================
--- linux-2.6-2.orig/include/linux/gfp.h
+++ linux-2.6-2/include/linux/gfp.h
@@ -56,7 +56,7 @@ struct vm_area_struct;
 /* if you forget to add the bitmask here kernel will crash, period */
 #define GFP_LEVEL_MASK (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_FS| \
 			__GFP_COLD|__GFP_NOWARN|__GFP_REPEAT| \
-			__GFP_NOFAIL|__GFP_NORETRY|__GFP_COMP| \
+			__GFP_NOFAIL|__GFP_NORETRY|__GFP_COMP|__GFP_ZERO \
 			__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_THISNODE| \
 			__GFP_MOVABLE)
 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2007-07-25 13:06 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-23 10:03 [PATCH] add __GFP_ZERP to GFP_LEVEL_MASK Peter Zijlstra
2007-07-23 11:21 ` Mel Gorman
2007-07-23 11:38   ` [PATCH] add __GFP_ZERO " Peter Zijlstra
2007-07-23 12:30     ` Mel Gorman
2007-07-23 23:17     ` Christoph Lameter
2007-07-24  6:01       ` Peter Zijlstra
2007-07-24  6:48         ` Peter Zijlstra
2007-07-24  7:14           ` Christoph Lameter
2007-07-24  7:09         ` Christoph Lameter
2007-07-24  7:24           ` Peter Zijlstra
2007-07-24  7:35             ` Christoph Lameter
2007-07-24 19:07               ` Christoph Lameter
2007-07-24 19:25                 ` Andrew Morton
2007-07-24 19:36                   ` Christoph Lameter
2007-07-24 22:10                     ` Andrew Morton
2007-07-24 23:00                       ` Christoph Lameter
2007-07-24 23:12                         ` Andrew Morton
2007-07-24 23:58                           ` Christoph Lameter
2007-07-25  0:06                             ` Andrew Morton
2007-07-25 13:06                   ` Mel Gorman
2007-07-23 18:37 ` [PATCH] add __GFP_ZERP " Andrew Morton
2007-07-23 18:40   ` Peter Zijlstra
2007-07-23 21:43     ` Christoph Lameter
2007-07-23 22:13       ` Andrew Morton
2007-07-23 22:41         ` Linus Torvalds
2007-07-23 22:56           ` Andrew Morton
2007-07-23 23:00             ` Christoph Lameter
2007-07-23 22:50         ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox