[PATCH 6/6] mremap rmap comment

From: Hugh Dickins
Date: Tue Mar 30 2004 - 17:58:41 EST


rmap's try_to_unmap_one comments on find_vma failure, that a page may
temporarily be absent from a vma during mremap: no longer, though it
is still possible for this find_vma to fail, while unmap_vmas drops
page_table_lock (but that is no problem for file truncation).

--- mremap5/mm/rmap.c 2004-03-30 13:04:19.449545248 +0100
+++ mremap6/mm/rmap.c 2004-03-30 21:25:22.961196784 +0100
@@ -315,8 +315,7 @@ static int fastcall try_to_unmap_one(str
return SWAP_AGAIN;
}

-
- /* During mremap, it's possible pages are not in a VMA. */
+ /* unmap_vmas drops page_table_lock with vma unlinked */
vma = find_vma(mm, address);
if (!vma) {
ret = SWAP_FAIL;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/