Re: [PATCH 30/35] Skip the PCP list search by counting the orderand type of pages on list

From: Christoph Lameter
Date: Mon Mar 16 2009 - 14:03:33 EST


On Mon, 16 Mar 2009, Mel Gorman wrote:

>
> struct per_cpu_pages {
> - int count; /* number of pages in the list */
> + /* The total number of pages on the PCP lists */
> + int count;
> +
> + /* Count of each migratetype and order */
> + u8 mocount[MIGRATE_PCPTYPES][PAGE_ALLOC_COSTLY_ORDER+1];

What about overflow? You could have more than 255 pages of a given type in
a pcp.

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