Re: [PATCH] Fixes for prep_zero_page

From: Zwane Mwaikambo
Date: Sun Jan 09 2005 - 23:19:28 EST


On Sun, 9 Jan 2005, Chris Wright wrote:

> * Zwane Mwaikambo (zwane@xxxxxxxxxxxxxxxx) wrote:
> > On Sun, 9 Jan 2005, Andrew Morton wrote:
> > > Can't we simply move the page zeroing to the very end of __alloc_pages()?
> >
> > Ok, i've changed that bit to something like;
>
> I did it the other way around, and moved kernel_map_pages to prep_new_page
> so it's called before zeroing to keep that with the other prep bits
> in buffered_rmqueue. Made sense to me that kernel_map_pages is part of
> prepping a new page, but this isn't my area, so I could be way off ;-)
> It works for me with DEBUG_PAGEALLOC enabled.

A lot more digestible than my offering ;)

-
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/