diff --git a/mm/memcontrol.c b/mm/memcontrol.c index a604e69ecfa57a1fac0cd45f688f558ad2789813..b9029487689574a244b841f6211ba07ed3e8c30e 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -5668,10 +5668,8 @@ static int mem_cgroup_move_account(struct page *page, __mod_lruvec_state(from_vec, NR_ANON_MAPPED, -nr_pages); __mod_lruvec_state(to_vec, NR_ANON_MAPPED, nr_pages); if (PageTransHuge(page)) { - __mod_lruvec_state(from_vec, NR_ANON_THPS, - -nr_pages); - __mod_lruvec_state(to_vec, NR_ANON_THPS, - nr_pages); + __dec_lruvec_state(from_vec, NR_ANON_THPS); + __inc_lruvec_state(to_vec, NR_ANON_THPS); } }