OSDN Git Service

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)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:57:01 +0000 (13:57 -0700)
commit073d8f4c5ac9b68f93d6e10e97f05f9054765b1d
treea7ba2b527593360990dd7e754d7d9555b6d8b942
parent2a023fb81611ccb1284db4e52ff518e46557b831
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