Slub: UP bandaid
authorChristoph Lameter <cl@linux.com>
Thu, 26 Aug 2010 14:41:19 +0000 (09:41 -0500)
committerPekka Enberg <penberg@kernel.org>
Sat, 2 Oct 2010 07:24:29 +0000 (10:24 +0300)
commitdb210e70e5f191710a3b1d09f653b44885d397ea
tree3d1472be3dfd80107090a73bf70710cdb5df21f1
parenta016471a16b5c4d4ec8f5221575e603a3d11e5e9
Slub: UP bandaid

Since the percpu allocator does not provide early allocation in UP mode (only
in SMP configurations) use __get_free_page() to improvise a compound page
allocation that can be later freed via kfree().

Compound pages will be released when the cpu caches are resized.

Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c