Message ID | 41b2fe158cc09157964879dce19e74e1de962f27.1583783251.git.zanussi@kernel.org |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 0503b31e2a873..a359a24ebd9f0 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6102,10 +6102,10 @@ void mem_cgroup_swapout(struct page *page, swp_entry_t entry) mem_cgroup_charge_statistics(memcg, page, PageTransHuge(page), -nr_entries); memcg_check_events(memcg, page); + local_unlock_irqrestore(event_lock, flags); if (!mem_cgroup_is_root(memcg)) css_put_many(&memcg->css, nr_entries); - local_unlock_irqrestore(event_lock, flags); } /**