]> git.hungrycats.org Git - linux/commit
[PATCH] uml: Make malloc() call vmalloc if needed. Needed for hostfs on 2.6 host.
authorPaolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it>
Tue, 24 Aug 2004 04:17:56 +0000 (21:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:17:56 +0000 (21:17 -0700)
commitfbb214aabaea95697460ccd6288995cd4592996d
tree4c74636e37f8ccda3fe0d3b10d57d464c4b41c77
parentd32870ad169f00a8b6d85d14b0d88ddcb857d90b
[PATCH] uml: Make malloc() call vmalloc if needed. Needed for hostfs on 2.6 host.

From: Oleg Drokin <green@linuxhacker.ru>, Jeff Dike <jdike@addtoit.com>, and
me

If size > 128K, with this patch malloc will call vmalloc; free will detect
whether to call vfree or kfree or __real_free().  The 2.4 version could forget
free()ing something; this has been fixed.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/include/user.h
arch/um/kernel/process_kern.c
arch/um/main.c