Skip to contentSkip to conversation

batched freeing of anon pages

PATCH Oleg Nesterov 1 participant 1 message Sep 1, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello.

Now nr variable is unused in tlb_flush_mmu().

include/asm-generic/tlb.h renamed from include/asm-generic/tlb.h~ +0 -3
@@ -67,8 +67,6 @@
 
 static inline void tlb_flush_mmu(mmu_gather_t *tlb, unsigned long start, unsigned long end)
 {
-	unsigned long nr;
-
 	if (!tlb->need_flush) {
 		tlb->avoided_flushes++;
 		return;
@@ -77,7 +75,6 @@
 	tlb->flushes++;
 
 	tlb_flush(tlb);
-	nr = tlb->nr;
 	if (!tlb_fast_mode(tlb)) {
 		free_pages_and_swap_cache(tlb->pages, tlb->nr);
 		tlb->nr = 0;

Oleg.