aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-01 03:57:25 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-01 03:57:25 -0400
commit24a72acac155576d630cf4304fa9cefb9b62ea1f (patch)
tree84d09427b319c613512316c658a3f6d6d8fe3dd1 /arch/powerpc/mm
parent6e0b8bc965d25a8e0701eaca3fca5941b4f4b2b2 (diff)
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
Merge tag 'v3.10' into next
Merge 3.10 in order to get some of the last minute powerpc changes, resolve conflicts and add additional fixes on top of them.
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/hugetlbpage.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c
index f2f01fd3ec68..5555778b94fc 100644
--- a/arch/powerpc/mm/hugetlbpage.c
+++ b/arch/powerpc/mm/hugetlbpage.c
@@ -536,8 +536,14 @@ static void hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
536 do { 536 do {
537 pmd = pmd_offset(pud, addr); 537 pmd = pmd_offset(pud, addr);
538 next = pmd_addr_end(addr, end); 538 next = pmd_addr_end(addr, end);
539 if (pmd_none_or_clear_bad(pmd)) 539 if (!is_hugepd(pmd)) {
540 /*
541 * if it is not hugepd pointer, we should already find
542 * it cleared.
543 */
544 WARN_ON(!pmd_none_or_clear_bad(pmd));
540 continue; 545 continue;
546 }
541#ifdef CONFIG_PPC_FSL_BOOK3E 547#ifdef CONFIG_PPC_FSL_BOOK3E
542 /* 548 /*
543 * Increment next by the size of the huge mapping since 549 * Increment next by the size of the huge mapping since