Re: [PATCH 7/8] mm: reinstate ZERO_PAGE

Linus Torvalds
2009-09-08T14:14:27Z

On Tue, 8 Sep 2009, Nick Piggin wrote:
>
> Without looking closely, why is it a big problem to have a
> !HAVE PTE SPECIAL case? Couldn't it just be a check for
> pfn == zero_pfn that is conditionally compiled away for pte
> special architectures anyway?

At least traditionally, there wasn't a single zero_pfn, but multiple (for
VIPT caches that have performance issues with aliases). But yeah, we could
check just the pfn number, and allow any architecture to do it.

Linus