aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAmerigo Wang <xiyou.wangcong@gmail.com>2009-09-22 16:45:35 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 07:39:40 -0700
commitacef82b873b6899d80e639317228f2104dae79a2 (patch)
tree840a9cdb4629f5be3f10d8f507e6785e447d8500 /fs/proc
parent9b4d1cbef8f41aff2b3e4ca31f566c071fe601de (diff)
downloadkernel_samsung_smdk4412-acef82b873b6899d80e639317228f2104dae79a2.zip
kernel_samsung_smdk4412-acef82b873b6899d80e639317228f2104dae79a2.tar.gz
kernel_samsung_smdk4412-acef82b873b6899d80e639317228f2104dae79a2.tar.bz2
kcore: fix /proc/kcore's stat.st_size
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 <amwang@redhat.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Tao Ma <tao.ma@oracle.com> Cc: <mtk.manpages@gmail.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/kcore.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c
index f06f45b..0cf8a24 100644
--- 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);