aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/huge_memory.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 9ed58530f695..55940d173318 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -1624,14 +1624,9 @@ int madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma,
1624 if (next - addr != HPAGE_PMD_SIZE) { 1624 if (next - addr != HPAGE_PMD_SIZE) {
1625 get_page(page); 1625 get_page(page);
1626 spin_unlock(ptl); 1626 spin_unlock(ptl);
1627 if (split_huge_page(page)) { 1627 split_huge_page(page);
1628 put_page(page);
1629 unlock_page(page);
1630 goto out_unlocked;
1631 }
1632 put_page(page); 1628 put_page(page);
1633 unlock_page(page); 1629 unlock_page(page);
1634 ret = 1;
1635 goto out_unlocked; 1630 goto out_unlocked;
1636 } 1631 }
1637 1632