<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Nick Piggin &lt;nickpiggin@yahoo.com.au&gt;

Just be clear that VM_RESERVED pages here are a bug, and the test is not there
because they are expected.

Signed-off-by: Nick Piggin &lt;npiggin@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 mm/rmap.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN mm/rmap.c~mm-comment-rmap mm/rmap.c
--- 25/mm/rmap.c~mm-comment-rmap	Tue Jul 26 13:29:07 2005
+++ 25-akpm/mm/rmap.c	Tue Jul 26 13:29:07 2005
@@ -531,6 +531,8 @@ static int try_to_unmap_one(struct page 
 	 * If the page is mlock()d, we cannot swap it out.
 	 * If it's recently referenced (perhaps page_referenced
 	 * skipped over this mm) then we should reactivate it.
+	 *
+	 * Pages belonging to VM_RESERVED regions should not happen here.
 	 */
 	if ((vma-&gt;vm_flags &amp; (VM_LOCKED|VM_RESERVED)) ||
 			ptep_clear_flush_young(vma, address, pte)) {
_
</pre></body></html>