mm/vmscan.c: simplify shrink_inactive_list()

This merges together duplicated patterns of code.  Also, replace
count_memcg_events() with its irq-careless namesake, because they are
already called in interrupts disabled context.

Signed-off-by: Kirill Tkhai <>
Acked-by: Michal Hocko <>
Reviewed-by: Daniel Jordan <>
Acked-by: Johannes Weiner <>
Cc: Baoquan He <>
Cc: Davidlohr Bueso <>

Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
1 file changed