Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19371
b: refs/heads/master
c: aa3f18b
h: refs/heads/master
i:
  19369: 7a40379
  19367: e7cab23
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Feb 1, 2006
1 parent f485e31 commit 56ba5ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4e6a510a74145585f4111d60d1b5fd450d795dd8
refs/heads/master: aa3f18b3391ac305baa01faead3fdf9147daf54b
6 changes: 6 additions & 0 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,12 @@ static int shrink_list(struct list_head *page_list, struct scan_control *sc)
* processes. Try to unmap it here.
*/
if (page_mapped(page) && mapping) {
/*
* No unmapping if we do not swap
*/
if (!sc->may_swap)
goto keep_locked;

switch (try_to_unmap(page)) {
case SWAP_FAIL:
goto activate_locked;
Expand Down

0 comments on commit 56ba5ce

Please sign in to comment.