diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-04 06:30:53 -0400 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-23 06:32:59 -0400 |
commit | 659689280ad91d31235db79cda6c7c799c4d3781 (patch) | |
tree | a97cc862cba76fe05960761c17c9772ae3e1e673 /fs | |
parent | 6e62775ece1c83a84d86df44cfd8ea3e6c96ce23 (diff) |
proc: remove remnants of ->read_proc in proc_misc.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/proc_misc.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 424b9d03b1a0..e177f42496c4 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -57,24 +57,6 @@ | |||
57 | #include <asm/div64.h> | 57 | #include <asm/div64.h> |
58 | #include "internal.h" | 58 | #include "internal.h" |
59 | 59 | ||
60 | /* | ||
61 | * Warning: stuff below (imported functions) assumes that its output will fit | ||
62 | * into one page. For some of those functions it may be wrong. Moreover, we | ||
63 | * have a way to deal with that gracefully. Right now I used straightforward | ||
64 | * wrappers, but this needs further analysis wrt potential overflows. | ||
65 | */ | ||
66 | |||
67 | static int proc_calc_metrics(char *page, char **start, off_t off, | ||
68 | int count, int *eof, int len) | ||
69 | { | ||
70 | if (len <= off+count) *eof = 1; | ||
71 | *start = page + off; | ||
72 | len -= off; | ||
73 | if (len>count) len = count; | ||
74 | if (len<0) len = 0; | ||
75 | return len; | ||
76 | } | ||
77 | |||
78 | static int fragmentation_open(struct inode *inode, struct file *file) | 60 | static int fragmentation_open(struct inode *inode, struct file *file) |
79 | { | 61 | { |
80 | (void)inode; | 62 | (void)inode; |
@@ -620,15 +602,6 @@ struct proc_dir_entry *proc_root_kcore; | |||
620 | 602 | ||
621 | void __init proc_misc_init(void) | 603 | void __init proc_misc_init(void) |
622 | { | 604 | { |
623 | static struct { | ||
624 | char *name; | ||
625 | int (*read_proc)(char*,char**,off_t,int,int*,void*); | ||
626 | } *p, simple_ones[] = { | ||
627 | {NULL,} | ||
628 | }; | ||
629 | for (p = simple_ones; p->name; p++) | ||
630 | create_proc_read_entry(p->name, 0, NULL, p->read_proc, NULL); | ||
631 | |||
632 | proc_symlink("mounts", NULL, "self/mounts"); | 605 | proc_symlink("mounts", NULL, "self/mounts"); |
633 | 606 | ||
634 | /* And now for trickier ones */ | 607 | /* And now for trickier ones */ |