linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove page_launder() from bdflush
@ 2001-05-15  4:41 Marcelo Tosatti
  2001-05-15 10:05 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo Tosatti @ 2001-05-15  4:41 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: lkml, linux-mm

Hi Linus, 

There is no reason why bdflush should call page_launder().

Its pretty obvious that bdflush's job is to only write out _buffers_. 

Under my tests this patch makes things faster.

Guess why? Because bdflush is writing out buffers when it should instead
blocking inside try_to_free_pages().

Please apply. 

--- fs/buffer.c.orig    Tue May 15 03:13:05 2001
+++ fs/buffer.c Tue May 15 03:13:22 2001
@@ -2703,8 +2703,6 @@
                CHECK_EMERGENCY_SYNC
 
                flushed = flush_dirty_buffers(0);
-               if (free_shortage())
-                       flushed += page_launder(GFP_KERNEL, 0);
 
                /*
                 * If there are still a lot of dirty buffers around,


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-15 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-15  4:41 [PATCH] remove page_launder() from bdflush Marcelo Tosatti
2001-05-15 10:05 ` David Woodhouse

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