From: Maneesh Soni Date: Sun, 26 Mar 2006 09:37:29 +0000 (-0800) Subject: [PATCH] Use loff_t for size in struct proc_dir_entry X-Git-Tag: v2.6.17-rc1~627 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22e6c1b39c648850438decd491f62d311800c7db;p=linux-2.6 [PATCH] Use loff_t for size in struct proc_dir_entry Change proc_dir_entry->size to be loff_t to represent files like /proc/vmcore for 32bit systems with more than 4G memory. Needed for seeing correct size for /proc/vmcore for 32-bit systems with > 4G RAM. Signed-off-by: Maneesh Soni Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 6b12b0f661..cb224cf653 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -56,7 +56,7 @@ struct proc_dir_entry { nlink_t nlink; uid_t uid; gid_t gid; - unsigned long size; + loff_t size; struct inode_operations * proc_iops; struct file_operations * proc_fops; get_info_t *get_info;