Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Hillf Danton and committed by
Linus Torvalds
09761333 58a84aa9

+1 -1
+1 -1
mm/migrate.c
··· 871 871 872 872 if (anon_vma) 873 873 put_anon_vma(anon_vma); 874 - out: 875 874 unlock_page(hpage); 876 875 876 + out: 877 877 if (rc != -EAGAIN) { 878 878 list_del(&hpage->lru); 879 879 put_page(hpage);