Re: [PATCH 2/3] hugetlb: fix prio_tree unit

Hugh Dickins
2006-10-26T08:13:28Z

On Thu, 26 Oct 2006, David Gibson wrote:
> +
> + /* This part of the test makes the problem more obvious, but
> + * is not essential. It can't be done on powerpc, where
> + * segment restrictions prohibit us from performing such a
> + * mapping, so skip it there */
> +#if !defined(__powerpc__) && !defined(__powerpc64__)
> + /* Replace middle hpage by tinypage mapping to trigger
> + * nr_ptes BUG */

I should add, I expect you'll need to extend that #if'ing to exclude
at least ia64 too, won't you? No architecture that segregates its
hugepage virtual address space will manage the interposed tinypage.

Hugh