lkml.org 
[lkml]   [2005]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch 017/198] vmscan: pageout(): remove unneeded test
From
Date


We only call pageout() for dirty pages, so this test is redundant.

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

25-akpm/mm/vmscan.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/vmscan.c~vmscan-pageout-remove-unneeded-test mm/vmscan.c
--- 25/mm/vmscan.c~vmscan-pageout-remove-unneeded-test 2005-04-12 03:21:07.489998248 -0700
+++ 25-akpm/mm/vmscan.c 2005-04-12 03:21:07.493997640 -0700
@@ -318,7 +318,7 @@ static pageout_t pageout(struct page *pa
* Some data journaling orphaned pages can have
* page->mapping == NULL while being dirty with clean buffers.
*/
- if (PageDirty(page) && PagePrivate(page)) {
+ if (PagePrivate(page)) {
if (try_to_free_buffers(page)) {
ClearPageDirty(page);
printk("%s: orphaned page\n", __FUNCTION__);
_
-
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-04-12 20:20    [W:0.025 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site