mm/vmscan.c: don't disable irq again when count pgrefill for memcg
authorYafang Shao <laoar.shao@gmail.com>
Tue, 14 May 2019 00:23:02 +0000 (17:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 May 2019 16:47:51 +0000 (09:47 -0700)
commit2fa2690ca6174dfd36df85918ce5eb2f83e4d1b1
tree8daa3cfc3f4e97535fcde9af904c7c607ba67e77
parent350e88bad4964da6feabee02a1a70381bcdb087e
mm/vmscan.c: don't disable irq again when count pgrefill for memcg

We can use __count_memcg_events() directly because this callsite is alreay
protected by spin_lock_irq().

Link: http://lkml.kernel.org/r/1556093494-30798-1-git-send-email-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c