Message ID | 20200306184052.332769343@goodmis.org |
---|---|
State | New |
Headers | show |
Series | [RT,1/8] userfaultfd: Use a seqlock instead of seqcount | expand |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 421ac74450f6..519528959eef 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6540,10 +6540,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); } /**