[PATCH] mm/vmscan: don't disable irq again when count pgrefill for memcg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>
---
 mm/vmscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 347c9b3..18d48e6 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2035,7 +2035,7 @@ static void shrink_active_list(unsigned long nr_to_scan,
 	reclaim_stat->recent_scanned[file] += nr_taken;
 
 	__count_vm_events(PGREFILL, nr_scanned);
-	count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned);
+	__count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned);
 
 	spin_unlock_irq(&pgdat->lru_lock);
 
-- 
1.8.3.1




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux