On Wed, Apr 21, 2010 at 09:30:20AM -0500, Christoph Lameter wrote:
Yes, because it's not known if the anon_vma for the unmapped swapcache page
still exists or not. Now, a bug has been reported where a migration PTE is
found where the page is not locked. I'm trying to determine if it's the same
page or not but the problem takes ages to reproduce.
No, remap_swapcache could just be called "remap". If it's 0, it's
considered unsafe to remap the page.
If remap_swapcache is 1, the anon_vma is valid (or irrelevant because
it's a file) and it's safe to remap the page by removing the migration
PTEs.
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--