[patch 1/9] GFP_ZERO fix

Nick Piggin
2005-04-12T12:54:06Z

[-- Attachment #1: Type: text/plain, Size: 32 bytes --]

1/9

--
SUSE Labs, Novell Inc.

[-- Attachment #2: GFP_ZERO-fix.patch --]
[-- Type: text/plain, Size: 806 bytes --]

__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)