alpha: fix vmalloc breakage
authorIvan Kokshaysky <[email protected]>
Thu, 15 Jan 2009 21:50:48 +0000 (13:50 -0800)
committerLinus Torvalds <[email protected]>
Fri, 16 Jan 2009 00:39:35 +0000 (16:39 -0800)
commit822c18f2e38cbc775792ab65ace4f9198678dec9
tree3d14f9e7b479a786a87a481b8f429c753c5eb6fb
parentb46578ed094122a6b36002c644711cef68aa9c9e
alpha: fix vmalloc breakage

On alpha, we have to map some stuff in the VMALLOC space very early in the
boot process (to make SRM console callbacks work and so on, see
arch/alpha/mm/init.c).  For old VM allocator, we just manually placed a
vm_struct onto the global vmlist and this worked for ages.

Unfortunately, the new allocator isn't aware of this, so it constantly
tries to allocate the VM space which is already in use, making vmalloc on
alpha defunct.

This patch forces KVA to import vmlist entries on init.

[[email protected]: remove unneeded check (per Johannes)]
Signed-off-by: Ivan Kokshaysky <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmalloc.c