]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: count pages into balanced for zone with good watermark
authorShaohua Li <shaohua.li@intel.com>
Wed, 28 Sep 2011 00:50:08 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:38:31 +0000 (18:38 +1100)
commit034324e4e96c734267f6a76a59614a69fb6ab197
tree0cdc67d4543b7f321456ca2a806f883bb47a3ce8
parent2333fc7669a566a765be44498408e9ca62f9d374
vmscan: count pages into balanced for zone with good watermark

It's possible a zone watermark is ok when entering the balance_pgdat()
loop, while the zone is within the requested classzone_idx.  Count pages
from this zone into `balanced'.  In this way, we can skip shrinking zones
too much for high order allocation.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <>
mm/vmscan.c