Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255003
b: refs/heads/master
c: 4746efd
h: refs/heads/master
i:
  255001: eb87b75
  254999: 2d391bd
v: v3
  • Loading branch information
Shaohua Li authored and Linus Torvalds committed Jul 20, 2011
1 parent 0047dfe commit 97000ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: f7b88631a89757d70192044c9d9f2e8d2fc02f2c
refs/heads/master: 4746efded84d7c5a9c8d64d4c6e814ff0cf9fb42
3 changes: 2 additions & 1 deletion trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,7 +2310,8 @@ static bool pgdat_balanced(pg_data_t *pgdat, unsigned long balanced_pages,
for (i = 0; i <= classzone_idx; i++)
present_pages += pgdat->node_zones[i].present_pages;

return balanced_pages > (present_pages >> 2);
/* A special case here: if zone has no page, we think it's balanced */
return balanced_pages >= (present_pages >> 2);
}

/* is kswapd sleeping prematurely? */
Expand Down

0 comments on commit 97000ed

Please sign in to comment.