--- mm/page_alloc.c | 3 +++ 1 file changed, 3 insertions(+) Index: linux-2.6.21-rc6/mm/page_alloc.c =================================================================== --- linux-2.6.21-rc6.orig/mm/page_alloc.c 2007-04-13 23:11:03.000000000 -0700 +++ linux-2.6.21-rc6/mm/page_alloc.c 2007-04-13 23:16:24.000000000 -0700 @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -1238,6 +1239,7 @@ struct page * fastcall __alloc_pages(gfp_t gfp_mask, unsigned int order, struct zonelist *zonelist) { + INIT_PC(pc, PC_ALLOC_PAGES); const gfp_t wait = gfp_mask & __GFP_WAIT; struct zone **z; struct page *page; @@ -1397,6 +1399,7 @@ nopage: show_mem(); } got_pg: + pc_bytes(&pc, PAGE_SIZE << order); return page; }