]> 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>
Tue, 6 Dec 2011 03:51:01 +0000 (14:51 +1100)
commit41e0575ced4128b76ab8599ab92b16e2e8bdae5d
tree7d6196d35d51440bd2b3ac6211b65b2d9a3e587c
parentfe27e85bcf85e508e64f36188d654bdffdfa3f22
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