[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: madvise (MADV_FREE)
Hi,
On Wed, Mar 22, 2000 at 11:31:47PM +0100, Jamie Lokier wrote:
>
> No they don't. MADV_DONTNEED always discards private modifications.
> (BTW I think it should be flushing the swap cache while it's at it).
If it is the last user of the page --- ie. if PG_SwapCache is set and
the refcount of the page is one --- then it will do so anyway, because
when I added that swap cache code I made sure that zap_page_range()
does a free_page_and_swap_cache() when freeing pages.
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/