Use loff_t for size in struct proc_dir_entry
PATCH 1/1 Use loff_t for size in struct proc_dir_entry
Hi,
Following patch is needed for seeing correct size for /proc/vmcore for 32-bit systems with > 4G RAM.
Thanks
Maneesh
o Change proc_dir_entry->size to be loff_t to represent files like /proc/vmcore for 32bit systems with more than 4G memory.
Signed-off-by Maneesh Soni <[email protected]>
---
linux-2.6.16-mm1-maneesh/include/linux/proc_fs.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
include/linux/proc_fs.h renamed from include/linux/proc_fs.h~fix-proc_dir_entry-for-64bit-filesize +1 -1
@@ -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;const struct file_operations * proc_fops;get_info_t *get_info;
_