[RFC PATCH 2/8] mm, vmalloc: move get_vmalloc_info() to vmalloc.c

2012-12-06 Thread Joonsoo Kim
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

[RFC PATCH 2/8] mm, vmalloc: move get_vmalloc_info() to vmalloc.c

2012-12-06 Thread Joonsoo Kim
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