kcore: fix /proc/kcore's stat.st_size
authorAmerigo Wang <xiyou.wangcong@gmail.com>
Tue, 22 Sep 2009 23:45:35 +0000 (16:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:40 +0000 (07:39 -0700)
commitacef82b873b6899d80e639317228f2104dae79a2
tree840a9cdb4629f5be3f10d8f507e6785e447d8500
parent9b4d1cbef8f41aff2b3e4ca31f566c071fe601de
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>
fs/proc/kcore.c