aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/huge_memory.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index fcf657886b4b..404acdcd0455 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -1982,7 +1982,6 @@ spinlock_t *__pud_trans_huge_lock(pud_t *pud, struct vm_area_struct *vma)
1982int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, 1982int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma,
1983 pud_t *pud, unsigned long addr) 1983 pud_t *pud, unsigned long addr)
1984{ 1984{
1985 pud_t orig_pud;
1986 spinlock_t *ptl; 1985 spinlock_t *ptl;
1987 1986
1988 ptl = __pud_trans_huge_lock(pud, vma); 1987 ptl = __pud_trans_huge_lock(pud, vma);
@@ -1994,8 +1993,7 @@ int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma,
1994 * pgtable_trans_huge_withdraw after finishing pudp related 1993 * pgtable_trans_huge_withdraw after finishing pudp related
1995 * operations. 1994 * operations.
1996 */ 1995 */
1997 orig_pud = pudp_huge_get_and_clear_full(tlb->mm, addr, pud, 1996 pudp_huge_get_and_clear_full(tlb->mm, addr, pud, tlb->fullmm);
1998 tlb->fullmm);
1999 tlb_remove_pud_tlb_entry(tlb, pud, addr); 1997 tlb_remove_pud_tlb_entry(tlb, pud, addr);
2000 if (vma_is_dax(vma)) { 1998 if (vma_is_dax(vma)) {
2001 spin_unlock(ptl); 1999 spin_unlock(ptl);