Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283023
b: refs/heads/master
c: 86cfd3a
h: refs/heads/master
i:
  283021: 2713f31
  283019: 7e006c3
  283015: e36f069
  283007: 848b852
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Jan 11, 2012
1 parent 2ea497d commit a23bf48
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: 799f933a82d878d7f15215473c5561ce984ada75
refs/heads/master: 86cfd3a45042ab242d47f3935a02811a402beab6
5 changes: 3 additions & 2 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2000,8 +2000,9 @@ static inline bool should_continue_reclaim(struct zone *zone,
* inactive lists are large enough, continue reclaiming
*/
pages_for_compaction = (2UL << sc->order);
inactive_lru_pages = zone_nr_lru_pages(zone, sc, LRU_INACTIVE_ANON) +
zone_nr_lru_pages(zone, sc, LRU_INACTIVE_FILE);
inactive_lru_pages = zone_nr_lru_pages(zone, sc, LRU_INACTIVE_FILE);
if (nr_swap_pages > 0)
inactive_lru_pages += zone_nr_lru_pages(zone, sc, LRU_INACTIVE_ANON);
if (sc->nr_reclaimed < pages_for_compaction &&
inactive_lru_pages > pages_for_compaction)
return true;
Expand Down

0 comments on commit a23bf48

Please sign in to comment.