Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143677
b: refs/heads/master
c: a21e255
h: refs/heads/master
i:
  143675: 74074e7
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Apr 18, 2009
1 parent 9211523 commit d3b5616
Show file tree
Hide file tree
Showing 2 changed files with 4 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: aefe6475720bd5eb8aacbc881488f3aa65618562
refs/heads/master: a21e25536169432cf9174d631972bc1cd4c75062
5 changes: 3 additions & 2 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2088,13 +2088,13 @@ static void shrink_all_zones(unsigned long nr_pages, int prio,
nr_reclaimed += shrink_list(l, nr_to_scan, zone,
sc, prio);
if (nr_reclaimed >= nr_pages) {
sc->nr_reclaimed = nr_reclaimed;
sc->nr_reclaimed += nr_reclaimed;
return;
}
}
}
}
sc->nr_reclaimed = nr_reclaimed;
sc->nr_reclaimed += nr_reclaimed;
}

/*
Expand All @@ -2115,6 +2115,7 @@ unsigned long shrink_all_memory(unsigned long nr_pages)
.may_unmap = 0,
.may_writepage = 1,
.isolate_pages = isolate_pages_global,
.nr_reclaimed = 0,
};

current->reclaim_state = &reclaim_state;
Expand Down

0 comments on commit d3b5616

Please sign in to comment.