diff options
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 34d3ca9572d6..497ec33ff22d 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -3774,7 +3774,7 @@ void mem_cgroup_move_account_page_stat(struct mem_cgroup *from, | |||
3774 | /* Update stat data for mem_cgroup */ | 3774 | /* Update stat data for mem_cgroup */ |
3775 | preempt_disable(); | 3775 | preempt_disable(); |
3776 | WARN_ON_ONCE(from->stat->count[idx] < nr_pages); | 3776 | WARN_ON_ONCE(from->stat->count[idx] < nr_pages); |
3777 | __this_cpu_add(from->stat->count[idx], -nr_pages); | 3777 | __this_cpu_sub(from->stat->count[idx], nr_pages); |
3778 | __this_cpu_add(to->stat->count[idx], nr_pages); | 3778 | __this_cpu_add(to->stat->count[idx], nr_pages); |
3779 | preempt_enable(); | 3779 | preempt_enable(); |
3780 | } | 3780 | } |