aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-05 19:50:47 -0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 07:48:28 -0400
commit5f6a6a9c4e4d790aae55cb412a7643329057c5e0 (patch)
tree06b984b29e2e100874a4627ba6e22eb3e96a2640 /fs
parent7b3c3a50a3e0ea46815150d420fa276ac254572b (diff)
proc: move /proc/vmallocinfo to mm/vmalloc.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Christoph Lameter <cl@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/proc_misc.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 1d6d5c5cc2a8..fd41a032456b 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -132,31 +132,6 @@ static const struct file_operations proc_modules_operations = {
132}; 132};
133#endif 133#endif
134 134
135#ifdef CONFIG_MMU
136static int vmalloc_open(struct inode *inode, struct file *file)
137{
138 unsigned int *ptr = NULL;
139 int ret;
140
141 if (NUMA_BUILD)
142 ptr = kmalloc(nr_node_ids * sizeof(unsigned int), GFP_KERNEL);
143 ret = seq_open(file, &vmalloc_op);
144 if (!ret) {
145 struct seq_file *m = file->private_data;
146 m->private = ptr;
147 } else
148 kfree(ptr);
149 return ret;
150}
151
152static const struct file_operations proc_vmalloc_operations = {
153 .open = vmalloc_open,
154 .read = seq_read,
155 .llseek = seq_lseek,
156 .release = seq_release_private,
157};
158#endif
159
160#ifdef CONFIG_PROC_PAGE_MONITOR 135#ifdef CONFIG_PROC_PAGE_MONITOR
161#define KPMSIZE sizeof(u64) 136#define KPMSIZE sizeof(u64)
162#define KPMMASK (KPMSIZE - 1) 137#define KPMMASK (KPMSIZE - 1)
@@ -295,9 +270,6 @@ void __init proc_misc_init(void)
295 proc_symlink("mounts", NULL, "self/mounts"); 270 proc_symlink("mounts", NULL, "self/mounts");
296 271
297 /* And now for trickier ones */ 272 /* And now for trickier ones */
298#ifdef CONFIG_MMU
299 proc_create("vmallocinfo", S_IRUSR, NULL, &proc_vmalloc_operations);
300#endif
301 proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); 273 proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
302 proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops); 274 proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops);
303 proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); 275 proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);