projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b4d1cb
)
kcore: fix /proc/kcore's stat.st_size
author
Amerigo Wang
<
[email protected]
>
Tue, 22 Sep 2009 23:45:35 +0000
(16:45 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 23 Sep 2009 14:39:40 +0000
(07:39 -0700)
In
9063c61fd5cbd
("x86, 64-bit: Clean up user address masking") Linus
fixed the wrong size of /proc/kcore problem.
But its size still looks insane, since it never equals the size of
physical memory.
Signed-off-by: WANG Cong <
[email protected]
>
Cc: "Eric W. Biederman" <
[email protected]
>
Cc: Tao Ma <
[email protected]
>
Cc: <
[email protected]
>
Acked-by: KAMEZAWA Hiroyuki <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/kcore.c
patch
|
blob
|
history
diff --git
a/fs/proc/kcore.c
b/fs/proc/kcore.c
index f06f45b421810b4d13069b65f06782daa246e55c..0cf8a24cf6c300a6f1b59c6931e6a71f166aef68 100644
(file)
--- a/
fs/proc/kcore.c
+++ b/
fs/proc/kcore.c
@@
-374,9
+374,6
@@
read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
static int __init proc_kcore_init(void)
{
proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &proc_kcore_operations);
- if (proc_root_kcore)
- proc_root_kcore->size =
- (size_t)high_memory - PAGE_OFFSET + PAGE_SIZE;
return 0;
}
module_init(proc_kcore_init);