mm: Check if any page in a pageblock is reserved before marking it MIGRATE_RESERVE
authorArve Hjønnevåg <arve@android.com>
Thu, 19 Mar 2009 00:27:31 +0000 (17:27 -0700)
committerArve Hjønnevåg <arve@android.com>
Thu, 4 Feb 2010 04:48:14 +0000 (20:48 -0800)
commit675bed294c5136b04e283f647e5c73fb897cfd19
treeb3d005f3933e83fec1896d156aa49dd54f9067d2
parentc177d04116de6acff4d41706df54cf6c909aa5a2
mm: Check if any page in a pageblock is reserved before marking it MIGRATE_RESERVE

This fixes a problem where the first pageblock got marked MIGRATE_RESERVE even
though it only had a few free pages. This in turn caused no contiguous memory
to be reserved and frequent kswapd wakeups that emptied the caches to get more
contiguous memory.
mm/page_alloc.c