]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e7f4748ab91888eb3231e7d6ffc1c1fe5c7dd65
tree3d1472be3dfd80107090a73bf70710cdb5df21f1
parentb9ff52a70eed8922ac18158cc3984e3a7ce25809
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