]> 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>
Thu, 8 Dec 2011 04:32:03 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:52:19 +0000 (15:52 +1100)
commit6858f900335c4fc4a36e5c5c9a226df6835dbbbc
treedfe5551f832ce6043daf5016969f7151358598e7
parent934ea53f8dd071f6149763720886cc6c810a7658
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