lkml.org 
[lkml]   [2003]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [RFC] My research agenda for 2.7
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)
_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.142 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site