]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] vmalloc: optimization, cleanup, bugfixes
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 10 Nov 2006 20:27:48 +0000 (12:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 13 Nov 2006 15:40:42 +0000 (07:40 -0800)
commite79cf8657a2eec308db77ec8b8f4afc23af256e0
treeaf167ed7cf9e76f7b155d1af53a62c5d9c3b03ba
parent1a9e43ab7c08427bf3700276a1c87b1dcdae1b56
[PATCH] vmalloc: optimization, cleanup, bugfixes

- reorder 'struct vm_struct' to speedup lookups on CPUS with small cache
  lines.  The fields 'next,addr,size' should be now in the same cache line,
  to speedup lookups.

- One minor cleanup in __get_vm_area_node()

- Bugfixes in vmalloc_user() and vmalloc_32_user() NULL returns from
  __vmalloc() and __find_vm_area() were not tested.

[akpm@osdl.org: remove redundant BUG_ONs]
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/vmalloc.h
mm/vmalloc.c