]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] FRV: Clean up bootmem allocator's page freeing algorithm
authorDavid Howells <dhowells@redhat.com>
Fri, 6 Jan 2006 08:11:08 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:26 +0000 (08:33 -0800)
commit2f007f12541e68313de01ea9882b15a118f4f0a7
tree82863c401f344cae8ab518b174085a7071a0a325
parent997cc4f11623dedb8b8324e74ac447089b3f56cc
[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>
mm/bootmem.c
mm/internal.h
mm/page_alloc.c