diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/memcontrol.h | 5 |
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 |
| 557 | static inline bool memcg_kmem_enabled(void) | ||
| 558 | { | ||
| 559 | return false; | ||
| 560 | } | ||
| 561 | |||
| 557 | static inline bool | 562 | static inline bool |
| 558 | memcg_kmem_newpage_charge(gfp_t gfp, struct mem_cgroup **memcg, int order) | 563 | memcg_kmem_newpage_charge(gfp_t gfp, struct mem_cgroup **memcg, int order) |
| 559 | { | 564 | { |
