]> git.baikalelectronics.ru Git - kernel.git/commit
page migration: Only migrate pages if allocation in the highest zone is possible
authorChristoph Lameter <clameter@sgi.com>
Sun, 6 May 2007 21:50:20 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:57 +0000 (12:12 -0700)
commit263812e7be0cb8305fba9a680a47e32fadf1251a
tree0b2401f5448ddb1b856da8c080e71e0080183c41
parent42b7c7a1066d7ad931b3b8cd9bf22a8f095aaede
page migration: Only migrate pages if allocation in the highest zone is possible

Address spaces contain an allocation flag that specifies restriction on the
zone for pages placed in the mapping.  I.e.  some device may require pages
to be allocated from a DMA zone.  Block devices may not be able to use
pages from HIGHMEM.

Memory policies and the common use of page migration works only on the
highest zone.  If the address space does not allow allocation from the
highest zone then the pages in the address space are not migratable simply
because we can only allocate memory for a specified node if we allow
allocation for the highest zone on each node.

Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/migrate.h