]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm, vmalloc: move get_vmalloc_info() to vmalloc.c
authorJoonsoo Kim <js1304@gmail.com>
Wed, 20 Mar 2013 04:07:24 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:52 +0000 (16:33 +1100)
commitd6fdfebfdd328b12a72d168101bf949868f4c1e6
treeadfb68bb0e4cb5c21521651f7f3080ecb52fc5e2
parent8d713576e06ceffc79729bf4c8274c3bcba2cbf9
mm, vmalloc: move get_vmalloc_info() to vmalloc.c

Now get_vmalloc_info() is in fs/proc/mmu.c.  There is no reason that this
code must be here and it's implementation needs vmlist_lock and it iterate
a vmlist which may be internal data structure for vmalloc.

It is preferable that vmlist_lock and vmlist is only used in vmalloc.c
for maintainability. So move the code to vmalloc.c

Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Dave Anderson <anderson@redhat.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/Makefile
fs/proc/internal.h
fs/proc/meminfo.c
fs/proc/mmu.c [deleted file]
include/linux/vmalloc.h
mm/vmalloc.c