lkml.org 
[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] remove page_launder() from bdflush

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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.032 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site