patch-1.3.22 linux/fs/proc/inode.c
Next file: linux/fs/proc/mem.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue Aug 29 10:15:52 1995
- Orig file:
v1.3.21/linux/fs/proc/inode.c
- Orig date:
Tue Aug 15 20:39:04 1995
diff -u --recursive --new-file v1.3.21/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -210,7 +210,7 @@
case PROC_KCORE:
inode->i_mode = S_IFREG | S_IRUSR;
inode->i_op = &proc_kcore_inode_operations;
- inode->i_size = high_memory + PAGE_SIZE;
+ inode->i_size = (MAP_NR(high_memory) << PAGE_SHIFT) + PAGE_SIZE;
break;
#ifdef CONFIG_PROFILE
case PROC_PROFILE:
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this