Re: [RFC] Optimization for use-once pages

Marcelo Tosatti (marcelo@conectiva.com.br)
Thu, 26 Jul 2001 07:38:00 -0300 (BRT)


On Thu, 26 Jul 2001, Daniel Phillips wrote:

> There does seem to be a dangling thread here though - when a process
> page is unmapped and added to swap cache in try_to_swap_out then later
> faulted back in, I don't see where we "rescue" the page from the
> inactive queue. Maybe I'm just not looking hard enough.

do_swap_page()->lookup_swap_cache()->__find_page_nolock()->SetPageReferenced().

The referenced bit will make page_launder/reclaim_page move the page to
the active list.

-
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/