Skip to content

Commit 2fa2690

Browse files
laoartorvalds
authored andcommitted
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>
1 parent 350e88b commit 2fa2690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/vmscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ static void shrink_active_list(unsigned long nr_to_scan,
20222022
reclaim_stat->recent_scanned[file] += nr_taken;
20232023

20242024
__count_vm_events(PGREFILL, nr_scanned);
2025-
count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned);
2025+
__count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned);
20262026

20272027
spin_unlock_irq(&pgdat->lru_lock);
20282028

0 commit comments

Comments
 (0)