mm: Extend gfp masking to the page allocator
[deliverable/linux.git] / include / linux / gfp.h
index cfdb35d71bcab52831d4de557312122d72a11810..7c777a0da17ab5d245b175a9eaa342a1556fb0a7 100644 (file)
@@ -99,7 +99,7 @@ struct vm_area_struct;
                        __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)
+#define GFP_BOOT_MASK __GFP_BITS_MASK & ~(__GFP_WAIT|__GFP_IO|__GFP_FS)
 
 /* Control allocation constraints */
 #define GFP_CONSTRAINT_MASK (__GFP_HARDWALL|__GFP_THISNODE)
@@ -348,4 +348,11 @@ static inline void oom_killer_enable(void)
        oom_killer_disabled = false;
 }
 
+extern gfp_t gfp_allowed_mask;
+
+static inline void set_gfp_allowed_mask(gfp_t mask)
+{
+       gfp_allowed_mask = mask;
+}
+
 #endif /* __LINUX_GFP_H */
This page took 0.024248 seconds and 5 git commands to generate.