Messages in this thread Patch in this message | | | Date | Tue, 12 Apr 2005 22:48:07 +1000 | From | Nick Piggin <> | Subject | [patch 1/9] GFP_ZERO fix |
| |
1/9
-- SUSE Labs, Novell Inc. __GFP_ZERO really shouldn't tempt fate.
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Index: linux-2.6/include/linux/gfp.h =================================================================== --- linux-2.6.orig/include/linux/gfp.h 2005-04-12 22:05:49.000000000 +1000 +++ linux-2.6/include/linux/gfp.h 2005-04-12 22:26:10.000000000 +1000 @@ -44,8 +44,8 @@ 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_NO_GROW|__GFP_COMP) + __GFP_COLD|__GFP_NOWARN|__GFP_REPEAT|__GFP_NOFAIL| \ + __GFP_NORETRY|__GFP_NO_GROW|__GFP_COMP|__GFP_ZERO) #define GFP_ATOMIC (__GFP_HIGH) #define GFP_NOIO (__GFP_WAIT) | |