mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] batched freeing of anon pages
@ 2002-09-01 14:33 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2002-09-01 14:33 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton

Hello.

Now nr variable is unused in tlb_flush_mmu().

--- 2.5.33/include/asm-generic/tlb.h~	Sun Sep  1 15:16:08 2002
+++ 2.5.33/include/asm-generic/tlb.h	Sun Sep  1 18:18:38 2002
@@ -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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-01 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-01 14:33 [PATCH] batched freeing of anon pages Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome