]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Fix broken kmalloc_node in rc1/rc2
authorChristoph Lameter <christoph@lameter.com>
Wed, 6 Jul 2005 17:47:07 +0000 (10:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 6 Jul 2005 17:52:45 +0000 (10:52 -0700)
commit83b78bd2d31f12d7d9317d9802a1996a7bd8a6f2
tree79468471ee42a327cad337d065a9498833d5bd24
parentb4634484815e1879512a23e4f59eef648135c30a
[PATCH] Fix broken kmalloc_node in rc1/rc2

This patch used to be in Andrew's tree before the NUMA slab allocator went
in. Either this patch or the NUMA slab allocator is needed in order for
kmalloc_node to work correctly.

pcibus_to_node may be used to generate the node information passed to
kmalloc_node. pcibus_to_node returns -1 if it was not able to determine
on which node a pcibus is located. For that case kmalloc_node must
work like kmalloc.

Signed-off-by: Christoph Lameter <christoph@lameter.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c