aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/memcontrol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 1eb1a04f874c..8ab1d42664fb 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2145,6 +2145,8 @@ void mem_cgroup_split_huge_fixup(struct page *head, struct page *tail)
2145 struct page_cgroup *tail_pc = lookup_page_cgroup(tail); 2145 struct page_cgroup *tail_pc = lookup_page_cgroup(tail);
2146 unsigned long flags; 2146 unsigned long flags;
2147 2147
2148 if (mem_cgroup_disabled())
2149 return;
2148 /* 2150 /*
2149 * We have no races with charge/uncharge but will have races with 2151 * We have no races with charge/uncharge but will have races with
2150 * page state accounting. 2152 * page state accounting.