From: Maneesh Soni <maneesh@in.ibm.com>
To: LKML <linux-kernel@vger.kernel.org>, Vivek Goyal <vgoyal@in.ibm.com>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH] Use loff_t for size in struct proc_dir_entry
Date: Fri, 24 Mar 2006 23:43:23 +0530 [thread overview]
Message-ID: <20060324181323.GA13108@in.ibm.com> (raw)
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 <maneesh@in.ibm.com>
---
linux-2.6.16-mm1-maneesh/include/linux/proc_fs.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN include/linux/proc_fs.h~fix-proc_dir_entry-for-64bit-filesize include/linux/proc_fs.h
--- linux-2.6.16-mm1/include/linux/proc_fs.h~fix-proc_dir_entry-for-64bit-filesize 2006-03-24 23:22:43.630837640 +0530
+++ linux-2.6.16-mm1-maneesh/include/linux/proc_fs.h 2006-03-24 23:25:10.134565688 +0530
@@ -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;
_
reply other threads:[~2006-03-24 18:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060324181323.GA13108@in.ibm.com \
--to=maneesh@in.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vgoyal@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox