]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/slab_common.c
mm: memcontrol: zap memcg_kmem_online helper
[karo-tx-linux.git] / mm / slab_common.c
index 6afb2263a5c5f0dd6066831e0d70701227b78894..8addc3c4df37ecc8923098f793215724559386e9 100644 (file)
@@ -510,7 +510,7 @@ void memcg_create_kmem_cache(struct mem_cgroup *memcg,
         * The memory cgroup could have been offlined while the cache
         * creation work was pending.
         */
-       if (!memcg_kmem_online(memcg))
+       if (memcg->kmem_state != KMEM_ONLINE)
                goto out_unlock;
 
        idx = memcg_cache_id(memcg);