Nick Piggin a482289d46 [PATCH] hugepage allocator cleanup
Insert "fresh" huge pages into the hugepage allocator by the same means as
they are freed back into it.  This reduces code size and allows
enqueue_huge_page to be inlined into the hugepage free fastpath.

Eliminate occurances of hugepages on the free list with non-zero refcount.
This can allow stricter refcount checks in future.  Also required for
lockless pagecache.

Signed-off-by: Nick Piggin <npiggin@suse.de>

"This patch also eliminates a leak "cleaned up" by re-clobbering the
refcount on every allocation from the hugepage freelists.  With respect to
the lockless pagecache, the crucial aspect is to eliminate unconditional
set_page_count() to 0 on pages with potentially nonzero refcounts, though
closer inspection suggests the assignments removed are entirely spurious."

Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-22 07:53:58 -08:00
..
2005-06-24 00:06:41 -07:00
2005-10-28 08:16:51 -07:00
2006-03-22 07:53:58 -08:00
2006-03-22 07:53:57 -08:00
2005-10-28 08:16:47 -07:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-03-02 08:33:07 -08:00
2006-03-22 07:53:58 -08:00
2005-10-29 21:40:42 -07:00
2005-04-16 15:20:36 -07:00
2006-03-22 07:53:57 -08:00
2006-02-08 07:52:58 -08:00
2006-03-22 07:53:57 -08:00