Commit 2d47875a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix rmap comment

From: Hugh Dickins <hugh@veritas.com>

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).
parent 59da95c4
...@@ -315,8 +315,7 @@ static int fastcall try_to_unmap_one(struct page * page, pte_addr_t paddr) ...@@ -315,8 +315,7 @@ static int fastcall try_to_unmap_one(struct page * page, pte_addr_t paddr)
return SWAP_AGAIN; return SWAP_AGAIN;
} }
/* unmap_vmas drops page_table_lock with vma unlinked */
/* During mremap, it's possible pages are not in a VMA. */
vma = find_vma(mm, address); vma = find_vma(mm, address);
if (!vma) { if (!vma) {
ret = SWAP_FAIL; ret = SWAP_FAIL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment