Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157107
b: refs/heads/master
c: 03ef83a
h: refs/heads/master
i:
  157105: e5076e3
  157103: b0301f7
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Aug 27, 2009
1 parent b888096 commit b030fa5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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: b62e408c05228f40e69bb38a48db8961cac6cd23
refs/heads/master: 03ef83af528899aa339e42d8024b37e2f434fba4
1 change: 1 addition & 0 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static int page_referenced_one(struct page *page,
*/
if (vma->vm_flags & VM_LOCKED) {
*mapcount = 1; /* break early from loop */
*vm_flags |= VM_LOCKED;
goto out_unmap;
}

Expand Down
9 changes: 7 additions & 2 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,14 @@ static unsigned long shrink_page_list(struct list_head *page_list,

referenced = page_referenced(page, 1,
sc->mem_cgroup, &vm_flags);
/* In active use or really unfreeable? Activate it. */
/*
* In active use or really unfreeable? Activate it.
* If page which have PG_mlocked lost isoltation race,
* try_to_unmap moves it to unevictable list
*/
if (sc->order <= PAGE_ALLOC_COSTLY_ORDER &&
referenced && page_mapping_inuse(page))
referenced && page_mapping_inuse(page)
&& !(vm_flags & VM_LOCKED))
goto activate_locked;

/*
Expand Down

0 comments on commit b030fa5

Please sign in to comment.