Re: Transparent Hugepage Support #30

From: Andrea Arcangeli
Date: Tue Oct 05 2010 - 15:21:14 EST


Hi Naoya,

On Mon, Oct 04, 2010 at 12:24:51PM +0900, Naoya Horiguchi wrote:
> Hi,
>
> I experienced build error of "calling pte_alloc_map() with 3 parameters,
> while it's defined to have 4 parameters" in arch/x86/kernel/tboot.c etc.
> Is the following chunk in patch "pte alloc trans splitting" necessary?
>
> @@ -1167,16 +1168,18 @@ static inline void pgtable_page_dtor(struct page *page)
> pte_unmap(pte); \
> } while (0)
>
> -#define pte_alloc_map(mm, pmd, address) \
> - ((unlikely(!pmd_present(*(pmd))) && __pte_alloc(mm, pmd, address))? \
> - NULL: pte_offset_map(pmd, address))
> +#define pte_alloc_map(mm, vma, pmd, address) \
> + ((unlikely(pmd_none(*(pmd))) && __pte_alloc(mm, vma, \
> + pmd, address))? \
> + NULL: pte_offset_map(pmd, address))

Sure it's necessary.

Can you try again with current aa.git origin/master?
(84c5ce35cf221ed0e561dec279df6985a388a080) Thanks a lot.

Andrea
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/