]> 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>
Fri, 30 Sep 2011 04:53:22 +0000 (14:53 +1000)
commit4e2af6a9a8a50410934d13681f1e90fd557155e3
treee3e702efc0a182d8af9d4d757b657c934b220762
parent780a705282180bdb61bfc446b28cf5a99106b96d
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