]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/migrate.c: pair unlock_page() and lock_page() when migrating huge pages
authorHillf Danton <dhillf@gmail.com>
Fri, 2 Dec 2011 03:06:50 +0000 (14:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:01 +0000 (15:19 +1100)
commit691fb110805eda41da0b89eed8578b24d3f7961b
tree59dd3813273f7f0103ba0542efe4438e4a5bd8b6
parentc7bc8a73b9b298360360d78824040336bb8fa848
mm/migrate.c: pair unlock_page() and lock_page() when migrating huge pages

Avoid unlocking and unlocked page if we failed to lock it.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c