Re: [PATCH] Make slab use alloc_pages directly

From: David Howells
Date: Mon Jan 24 2005 - 12:09:25 EST



Matthew Wilcox <matthew@xxxxxx> wrote:

> __get_free_pages() calls alloc_pages, finds the page_address() and
> throws away the struct page *. Slab then calls virt_to_page to get it
> back again. Much more efficient for slab to call alloc_pages itself,
> as well as making the NUMA and non-NUMA cases more similarr to each other.

Looks reasonable. Should also work in the NOMMU case.

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