Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131652
b: refs/heads/master
c: 3049103
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Feb 21, 2009
1 parent 171c7fb commit 80245c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 09664fda48c5dd63277f1f42888ca9d5dca6037a
refs/heads/master: 3049103ddfc9aac111916bd2f39ac6976c431517
5 changes: 1 addition & 4 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,6 @@ unsigned long shrink_all_memory(unsigned long nr_pages)
.may_swap = 0,
.swap_cluster_max = nr_pages,
.may_writepage = 1,
.swappiness = vm_swappiness,
.isolate_pages = isolate_pages_global,
};

Expand Down Expand Up @@ -2146,10 +2145,8 @@ unsigned long shrink_all_memory(unsigned long nr_pages)
int prio;

/* Force reclaiming mapped pages in the passes #3 and #4 */
if (pass > 2) {
if (pass > 2)
sc.may_swap = 1;
sc.swappiness = 100;
}

for (prio = DEF_PRIORITY; prio >= 0; prio--) {
unsigned long nr_to_scan = nr_pages - ret;
Expand Down

0 comments on commit 80245c4

Please sign in to comment.