File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,11 @@ struct mem_cgroup {
318318
319319extern struct mem_cgroup * root_mem_cgroup ;
320320
321+ static inline bool mem_cgroup_is_root (struct mem_cgroup * memcg )
322+ {
323+ return (memcg == root_mem_cgroup );
324+ }
325+
321326static inline bool mem_cgroup_disabled (void )
322327{
323328 return !cgroup_subsys_enabled (memory_cgrp_subsys );
@@ -784,6 +789,11 @@ void mem_cgroup_split_huge_fixup(struct page *head);
784789
785790struct mem_cgroup ;
786791
792+ static inline bool mem_cgroup_is_root (struct mem_cgroup * memcg )
793+ {
794+ return true;
795+ }
796+
787797static inline bool mem_cgroup_disabled (void )
788798{
789799 return true;
Original file line number Diff line number Diff line change @@ -261,11 +261,6 @@ struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr)
261261 return & container_of (vmpr , struct mem_cgroup , vmpressure )-> css ;
262262}
263263
264- static inline bool mem_cgroup_is_root (struct mem_cgroup * memcg )
265- {
266- return (memcg == root_mem_cgroup );
267- }
268-
269264#ifdef CONFIG_MEMCG_KMEM
270265/*
271266 * This will be the memcg's index in each cache's ->memcg_params.memcg_caches.
You can’t perform that action at this time.
0 commit comments