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

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, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this