Re: [RFC] My research agenda for 2.7

Andrew Morton
2003-06-26T20:10:05Z

Mel Gorman <mel@csn.ul.ie> wrote:
>
> Buddy allocators, including the
> one implemented in Linux, do not record what order allocation a struct
> page belongs to.

We can do that.

--- 25/mm/page_alloc.c~a 2003-06-26 13:09:11.000000000 -0700
+++ 25-akpm/mm/page_alloc.c 2003-06-26 13:09:24.000000000 -0700
@@ -123,6 +123,7 @@ static void prep_compound_page(struct pa
SetPageCompound(p);
p->lru.next = (void *)page;
}
+ page[1].index = order;
}

static void destroy_compound_page(struct page *page, unsigned long order)

_