diff options
author | David Howells <dhowells@redhat.com> | 2006-01-06 00:11:08 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 08:33:26 -0800 |
commit | a226f6c899799fe2c4919daa0767ac579c88f7bd (patch) | |
tree | 82863c401f344cae8ab518b174085a7071a0a325 /mm/internal.h | |
parent | 008857c1a49ccffc31a54c3ea7e182833bd61304 (diff) | |
download | kernel_samsung_tuna-a226f6c899799fe2c4919daa0767ac579c88f7bd.zip kernel_samsung_tuna-a226f6c899799fe2c4919daa0767ac579c88f7bd.tar.gz kernel_samsung_tuna-a226f6c899799fe2c4919daa0767ac579c88f7bd.tar.bz2 |
[PATCH] FRV: Clean up bootmem allocator's page freeing algorithm
The attached patch cleans up the way the bootmem allocator frees pages.
A new function, __free_pages_bootmem(), is provided in mm/page_alloc.c that is
called from mm/bootmem.c to turn pages over to the main allocator. All the
bits of code to initialise pages (clearing PG_reserved and setting the page
count) are moved to here. The checks on page validity are removed, on the
assumption that the struct page arrays will have been prepared correctly.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h index 85004f5..17256bb 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -26,3 +26,5 @@ static inline void set_page_refs(struct page *page, int order) #endif /* CONFIG_MMU */ } +extern void fastcall __init __free_pages_bootmem(struct page *page, + unsigned int order); |