Re: [RFC PATCH 1/4] mm/hugetlb: Simplify hugetlb unmap

From: Hillf Danton
Date: Mon May 30 2016 - 03:02:46 EST


> @@ -3157,19 +3156,22 @@ void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma,
> tlb_start_vma(tlb, vma);
> mmu_notifier_invalidate_range_start(mm, mmun_start, mmun_end);
> address = start;
> -again:
> for (; address < end; address += sz) {

With the again label cut off, you can also make a change in the for line.

thanks
Hillf
> ptep = huge_pte_offset(mm, address);
> if (!ptep)
> continue;