Skip to content

Commit

Permalink
[PATCH] Use loff_t for size in struct proc_dir_entry
Browse files Browse the repository at this point in the history
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 <maneesh@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Maneesh Soni authored and Linus Torvalds committed Mar 26, 2006
1 parent 3158e94 commit 22e6c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/proc_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 22e6c1b

Please sign in to comment.