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)
committerArve Hjønnevåg <arve@android.com>
Tue, 7 Apr 2009 23:42:54 +0000 (16:42 -0700)
commita4eb204a8029320c2dd748daf4f51fd48d337c3d
tree961b530a22f0b7eea8f981fba77349227a5641bf
parentd620f695290e4ffb1586420ba1dbbb5b2c8c075d
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