diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2009-09-23 01:45:52 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 16:39:42 +0200 |
commit | 0d4c36a9b6ab6b15851f60956d901a3c53574ea8 (patch) | |
tree | 08ca4041ee0a3748835b34227868427b7a82467f /Documentation/m68k | |
parent | /proc/kcore: fix stat.st_size (diff) | |
download | linux-0d4c36a9b6ab6b15851f60956d901a3c53574ea8.tar.xz linux-0d4c36a9b6ab6b15851f60956d901a3c53574ea8.zip |
/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 <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/m68k')
0 files changed, 0 insertions, 0 deletions