Re: [PATCH] generic debug pagealloc

From: Akinobu Mita
Date: Wed Mar 04 2009 - 09:17:41 EST


On Tue, Mar 03, 2009 at 01:36:10PM -0800, Andrew Morton wrote:
> Alternatively, we could just not do the kmap_atomic() at all. i386
> won't be using this code and IIRC the only other highmem architecture
> is powerpc32, and ppc32 appears to also have its own DEBUG_PAGEALLOC
> implementation. So you could remove the kmap_atomic() stuff and put
>
> #ifdef CONFIG_HIGHMEM
> #error i goofed
> #endif
>
> in there.

I'll take the variant of this. Then poison_page() will be

static void poison_page(struct page *page)
{
void *addr;

if (PageHighmem(page))
return; // i goofed

page->poison = true;
addr = page_address(page);
memset(addr, PAGE_POISON, PAGE_SIZE);
}
--
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/