Whenever the shrink_cache wakes up after a laundered page in unlocked, it should
move that page to the end of inactive list so that
the page can be freed immediately and shrink_cache dosen't have to wait for
complete list scan before freeing this page.
The patch is created against standard redhat 7.1 distribution 2.4.16 kernel.
Let me know if I need to create it for a different kernel release.
regards
Amol
--- vmscan_orig.c Mon Jan 7 11:47:43 2002
+++ vmscan.c Mon Jan 7 11:49:07 2002
@@ -387,6 +387,8 @@
wait_on_page(page);
page_cache_release(page);
spin_lock(&pagemap_lru_lock);
+ list_del(&page->lru);
+ list_add(&page->lru,inactive_list.prev);
}
continue;
}
-
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/
This archive was generated by hypermail 2b29 : Tue Jan 15 2002 - 21:00:21 EST