Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210463
b: refs/heads/master
c: bc69304
h: refs/heads/master
i:
  210461: 668f574
  210459: ff3f940
  210455: 0ffaf68
  210447: 0509e57
  210431: 45cf26c
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Sep 10, 2010
1 parent 5231fe6 commit e9c0840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 1c24de60e50fb19b94d94225458da17c720f0729
refs/heads/master: bc6930457460788e14b2c0808ed4632a1592bd61
7 changes: 4 additions & 3 deletions trunk/mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,16 @@ static void acct_isolated(struct zone *zone, struct compact_control *cc)
/* Similar to reclaim, but different enough that they don't share logic */
static bool too_many_isolated(struct zone *zone)
{

unsigned long inactive, isolated;
unsigned long active, inactive, isolated;

inactive = zone_page_state(zone, NR_INACTIVE_FILE) +
zone_page_state(zone, NR_INACTIVE_ANON);
active = zone_page_state(zone, NR_ACTIVE_FILE) +
zone_page_state(zone, NR_ACTIVE_ANON);
isolated = zone_page_state(zone, NR_ISOLATED_FILE) +
zone_page_state(zone, NR_ISOLATED_ANON);

return isolated > inactive;
return isolated > (inactive + active) / 2;
}

/*
Expand Down

0 comments on commit e9c0840

Please sign in to comment.