diff options
author | Joonsoo Kim <js1304@gmail.com> | 2013-04-29 18:07:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:33 -0400 |
commit | db3808c1bac64740b9d830fda92801ae65f1c851 (patch) | |
tree | 5f209495fa8865cf7283ae928f566142bb9a9c00 /fs/proc/internal.h | |
parent | ef93247325028a35e089f3012c270379a89d052c (diff) |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 85ff3a4598b3..75710357a517 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -30,24 +30,6 @@ extern int proc_net_init(void); | |||
30 | static inline int proc_net_init(void) { return 0; } | 30 | static inline int proc_net_init(void) { return 0; } |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | struct vmalloc_info { | ||
34 | unsigned long used; | ||
35 | unsigned long largest_chunk; | ||
36 | }; | ||
37 | |||
38 | #ifdef CONFIG_MMU | ||
39 | #define VMALLOC_TOTAL (VMALLOC_END - VMALLOC_START) | ||
40 | extern void get_vmalloc_info(struct vmalloc_info *vmi); | ||
41 | #else | ||
42 | |||
43 | #define VMALLOC_TOTAL 0UL | ||
44 | #define get_vmalloc_info(vmi) \ | ||
45 | do { \ | ||
46 | (vmi)->used = 0; \ | ||
47 | (vmi)->largest_chunk = 0; \ | ||
48 | } while(0) | ||
49 | #endif | ||
50 | |||
51 | extern int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, | 33 | extern int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, |
52 | struct pid *pid, struct task_struct *task); | 34 | struct pid *pid, struct task_struct *task); |
53 | extern int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, | 35 | extern int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, |