[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mm
Subject: [PATCH] fix page_launder() reactivation
From: Rik van Riel <riel () conectiva ! com ! br>
Date: 2001-08-22 0:18:40
[Download RAW message or body]
Hi Alan,
here's a quick fix to make page_launder() not move
pages under ->writepage() back to the active list.
regards,
Rik
--
IA64: a worthy successor to i860.
--- linux-2.4.8-ac8/mm/vmscan.c.orig Tue Aug 21 21:10:03 2001
+++ linux-2.4.8-ac8/mm/vmscan.c Tue Aug 21 21:11:05 2001
@@ -529,7 +529,7 @@
/* Page is or was in use? Move it to the active list. */
if (PageReferenced(page) || page->age > 0 ||
page_count(page) > (1 + !!page->buffers) ||
- page_ramdisk(page)) {
+ page_ramdisk(page) && !PageLocked(page)) {
del_page_from_inactive_dirty_list(page);
add_page_to_active_list(page);
continue;
--
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-mm.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic