Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131283
b: refs/heads/master
c: 508b9f8
h: refs/heads/master
i:
  131281: 107830f
  131279: 0a9953c
v: v3
  • Loading branch information
MinChan Kim authored and Linus Torvalds committed Feb 11, 2009
1 parent ee58671 commit 19b905b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02ac597c9b86af49b2016aa98aee20ab59dbf0d2
refs/heads/master: 508b9f8efdad123b202b228f71f59feba51e4fb5
3 changes: 2 additions & 1 deletion trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,8 @@ static int try_to_unmap_file(struct page *page, int unlock, int migration)
spin_lock(&mapping->i_mmap_lock);
vma_prio_tree_foreach(vma, &iter, &mapping->i_mmap, pgoff, pgoff) {
if (MLOCK_PAGES && unlikely(unlock)) {
if (!(vma->vm_flags & VM_LOCKED))
if (!((vma->vm_flags & VM_LOCKED) &&
page_mapped_in_vma(page, vma)))
continue; /* must visit all vmas */
ret = SWAP_MLOCK;
} else {
Expand Down

0 comments on commit 19b905b

Please sign in to comment.