mm: memcontrol: move kmem accounting code to CONFIG_MEMCG
[cascardo/linux.git] / include / linux / slab.h
index 3ffee74..3627d5c 100644 (file)
@@ -86,7 +86,7 @@
 #else
 # define SLAB_FAILSLAB         0x00000000UL
 #endif
-#ifdef CONFIG_MEMCG_KMEM
+#if defined(CONFIG_MEMCG) && !defined(CONFIG_SLOB)
 # define SLAB_ACCOUNT          0x04000000UL    /* Account to memcg */
 #else
 # define SLAB_ACCOUNT          0x00000000UL