Re: HUGETLB commit handling.

Andi Kleen
2004-04-08T17:51:26Z

> The other problem we are wrestling with is how to do the ia386 and ia64
> lazy allocation code without breaking the architectures that haven't yet
> switched to lazy allocation. There will probbaly be some
>
> #define ARCH_USES_HUGETLB_PREFAULT
>
> nonsense added to deal with the latter, if needed.

In my patch I just used weak functions: use a dummy weak function
in the high level code and overwrite from the architecture specific
code as needed. This avoids all the ifdefs.

-Andi