mm/slab: move pre/post-alloc hooks from slab.h to slub.c
[sfrench/cifs-2.6.git] / mm / slab_common.c
index 63b8411db7ce6a6321a3583ced3763e4ddf5c6c9..bbc2e3f061f1363c114f381f96dea0ba62803773 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/swiotlb.h>
 #include <linux/proc_fs.h>
 #include <linux/debugfs.h>
+#include <linux/kmemleak.h>
 #include <linux/kasan.h>
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>
@@ -1470,10 +1471,3 @@ EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc);
 EXPORT_TRACEPOINT_SYMBOL(kfree);
 EXPORT_TRACEPOINT_SYMBOL(kmem_cache_free);
 
-int should_failslab(struct kmem_cache *s, gfp_t gfpflags)
-{
-       if (__should_failslab(s, gfpflags))
-               return -ENOMEM;
-       return 0;
-}
-ALLOW_ERROR_INJECTION(should_failslab, ERRNO);