Skip to contentSkip to conversation

pre2 swap_out() changes

DISCUSSION Benjamin Redelings I 1 participant 1 message Jan 11, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Does this make sensee,specially, the last two lines?
Maybe 2.4.1-pre3 will shed some light, but I see that Marcelo basically
reverted this in his patch this morning...

- onlist = PageActive(page);
/* Don't look at this pte if it's been accessed recently. */ if (ptep_test_and_clear_young(page_table)) {
- age_page_up(page);
- goto out_failed;
+ page->age += PAGE_AGE_ADV;
+ if (page->age > PAGE_AGE_MAX)
+ page->age = PAGE_AGE_MAX;
+ return;
}
- if (!onlist)
- /* The page is still mapped, so it can't be freeable... */
- age_page_down_ageonly(page);
-
- /*
- * If the page is in active use by us, or if the page
- * is in active use by others, don't unmap it or
- * (worse) start unneeded IO.
- */
- if (page->age > 0)
- goto out_failed;

-BenRI

Signature · 5 lines
q
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/