--- 2.3.99-pre3aa1-alpha/mm/filemap.c.~1~ Thu Mar 30 18:24:29 2000 +++ 2.3.99-pre3aa1-alpha/mm/filemap.c Thu Mar 30 23:50:26 2000 @@ -233,6 +233,16 @@ page = list_entry(page_lru, struct page, lru); list_del(page_lru); + /* + * HACK: don't clear the reference bit on mapped page cache + * to give them longer life. + */ + if (page->mapping && page_count(page) > 1) { + dispose = &young; + count--; + goto dispose_continue; + } + dispose = &zone->lru_cache; if (test_and_clear_bit(PG_referenced, &page->flags)) /* Roll the page at the top of the lru list,