From: KAMEZAWA Hiroyuki Date: Tue, 22 Sep 2009 23:45:52 +0000 (-0700) Subject: /proc/kcore: update stat.st_size after memory hotplug X-Git-Tag: v2.6.32-rc1~300 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d4c36a9b6ab6b15851f60956d901a3c53574ea8;p=pandora-kernel.git /proc/kcore: update stat.st_size after memory hotplug After memory hotplug (or other events in future), kcore size can be modified. To update inode->i_size, we have to know inode/dentry but we can't get it from inside /proc directly. But considerinyg memory hotplug, kcore image is updated only when it's opened. Then, updating inode->i_size at open() is enough. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: WANG Cong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed