]> git.baikalelectronics.ru Git - kernel.git/commit
mm: postpone migrated page mapping reset
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Fri, 3 Feb 2012 23:37:13 +0000 (15:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 Feb 2012 00:16:40 +0000 (16:16 -0800)
commit5a29ee8db0a0cc72ee9452bfe56a8f1c5a9ad8f1
tree66ba9202c36c4267f765b8980f2c70d7c3eb4b90
parent090b34a715ec463b46c5da57da959f2be26fb02a
mm: postpone migrated page mapping reset

Postpone resetting page->mapping until the final remove_migration_ptes().
Otherwise the expression PageAnon(migration_entry_to_page(entry)) does not
work.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c