Please note the additional patch, to be applied after the used-once
patch for 2.4.7 and 2.4.7-ac*, or directly to 2.4.8-pre*. This was
posted on lkml and linux-mm on Aug 5 under the subject:
[PATCH] Unlazy activate
which adds the additional behaviour of moving used-twice pages to the
active list.
Here it is again:
--- ../2.4.7.clean/mm/filemap.c Sat Aug 4 14:27:16 2001
+++ ./mm/filemap.c Sat Aug 4 23:41:00 2001
@@ -979,9 +979,13 @@
static inline void check_used_once (struct page *page)
{
- if (!page->age) {
- page->age = PAGE_AGE_START;
- ClearPageReferenced(page);
+ if (!PageActive(page)) {
+ if (page->age)
+ activate_page(page);
+ else {
+ page->age = PAGE_AGE_START;
+ ClearPageReferenced(page);
+ }
}
}
-
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/