RE: [hugepage] Fix unmap_and_free_vma backout path

Adam Litke
2006-11-13T20:34:31Z

Looks good to me, notwithstanding the nano-nit below.

On Mon, 2006-11-13 at 17:00 +0000, Hugh Dickins wrote:
> + /*
> + * vma alignment has already been checked by prepare_hugepage_range.
> + * If you add any error returns here, do so after setting VM_HUGETLB,
> + * so is_vm_huge_tlb_page tests below unmap_region go the right way
> + * when do_mmap_pgoff unwinds (may be important on powerpc and ia64).
> + */

Sorry. This is hardly worth it, but the function referred to by this
comment is actually is_vm_hugetlb_page() :-/

--
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center