Messages in this thread | | | Date | Fri, 15 Jan 1999 17:37:00 +0100 (CET) | From | Andrea Arcangeli <> | Subject | swapout and pte_young() PG_referenced |
| |
I can see why we return 0 and we mark the page old in the swapout young case.
But I can't see how can be useful marking the page PG_referenced before return 0 if the page is young. It's not a swap cache page, it's not a freeable page and shrink_mmap() can do nothing with it.
if (pte_young(pte)) { /* * Transfer the "accessed" bit from the page * tables to the global page map. */ set_pte(page_table, pte_mkold(pte)); set_bit(PG_referenced, &page_map->flags); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return 0; }
Am I missing something again ? ;)
Andrea Arcangeli
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |