diff options
author | Nick Piggin <nickpiggin@yahoo.com.au> | 2005-09-03 18:54:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:05:43 -0400 |
commit | c3dce2d89c269d5373a120d4a22fc2426ec992b0 (patch) | |
tree | d4a52e35751484935a15f3b95e84bd28d6662b18 /mm | |
parent | 6e21c8f145f5052c1c2fb4a4b41bee01c848159b (diff) |
[PATCH] mm: comment rmap
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 <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/rmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -527,6 +527,8 @@ static int try_to_unmap_one(struct page *page, struct vm_area_struct *vma) | |||
527 | * If the page is mlock()d, we cannot swap it out. | 527 | * If the page is mlock()d, we cannot swap it out. |
528 | * If it's recently referenced (perhaps page_referenced | 528 | * If it's recently referenced (perhaps page_referenced |
529 | * skipped over this mm) then we should reactivate it. | 529 | * skipped over this mm) then we should reactivate it. |
530 | * | ||
531 | * Pages belonging to VM_RESERVED regions should not happen here. | ||
530 | */ | 532 | */ |
531 | if ((vma->vm_flags & (VM_LOCKED|VM_RESERVED)) || | 533 | if ((vma->vm_flags & (VM_LOCKED|VM_RESERVED)) || |
532 | ptep_clear_flush_young(vma, address, pte)) { | 534 | ptep_clear_flush_young(vma, address, pte)) { |