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)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:04 +0000 (17:49 -0700)
commit85a450f9802c17cffbc2e1f32462b9cb64944ce4
treeb7c1b8f82269b83b862fe982f8702283a99e0b94
parent8fa2a8933d517dfffa17596e990543fab4737020
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