]> err.no Git - linux-2.6/commit
[PATCH] mm: free_pages opt
authorNick Piggin <nickpiggin@yahoo.com.au>
Sun, 8 Jan 2006 09:00:42 +0000 (01:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:12:40 +0000 (20:12 -0800)
commit48db57f8ff10eb09ab887ccb6150b0da0c7be24e
tree5c9fba3937bb802aa2944af189aae57b7bf7aa8b
parent23316bc86fd31c5d644a71c398ec41d9fecacec4
[PATCH] mm: free_pages opt

Try to streamline free_pages_bulk by ensuring callers don't pass in a
'count' that exceeds the list size.

Some cleanups:
Rename __free_pages_bulk to __free_one_page.
Put the page list manipulation from __free_pages_ok into free_one_page.
Make __free_pages_ok static.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c