aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/memcontrol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index bd9b5d73bc2b..2298122e71ad 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -554,6 +554,11 @@ memcg_kmem_get_cache(struct kmem_cache *cachep, gfp_t gfp)
554 return __memcg_kmem_get_cache(cachep, gfp); 554 return __memcg_kmem_get_cache(cachep, gfp);
555} 555}
556#else 556#else
557static inline bool memcg_kmem_enabled(void)
558{
559 return false;
560}
561
557static inline bool 562static inline bool
558memcg_kmem_newpage_charge(gfp_t gfp, struct mem_cgroup **memcg, int order) 563memcg_kmem_newpage_charge(gfp_t gfp, struct mem_cgroup **memcg, int order)
559{ 564{