slab,slub: don't enable interrupts during early boot
[sfrench/cifs-2.6.git] / include / linux / gfp.h
index 0bbc15f5453642e2c5057028322b29738cbf8a47..3760e7c5de0264aaec173486daca51035e80b252 100644 (file)
@@ -85,6 +85,9 @@ struct vm_area_struct;
                        __GFP_NOWARN|__GFP_REPEAT|__GFP_NOFAIL|\
                        __GFP_NORETRY|__GFP_NOMEMALLOC)
 
+/* Control slab gfp mask during early boot */
+#define SLAB_GFP_BOOT_MASK __GFP_BITS_MASK & ~(__GFP_WAIT|__GFP_IO|__GFP_FS)
+
 /* Control allocation constraints */
 #define GFP_CONSTRAINT_MASK (__GFP_HARDWALL|__GFP_THISNODE)