summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjvrao <jvrao@linux.vnet.ibm.com>2010-03-08 23:07:02 +0100
committerEric Van Hensbergen <ericvh@gmail.com>2010-03-13 15:59:54 +0100
commitfc0f296126433e61600539325975b6c30681c07e (patch)
tree982db41753bc2547133c4e84ab703e24d9333010
parent9p: Change the name of new protocol from 9p2010.L to 9p2000.L (diff)
downloadlinux-fc0f296126433e61600539325975b6c30681c07e.tar.xz
linux-fc0f296126433e61600539325975b6c30681c07e.zip
9p: Fixes a simple bug enabling writes beyond 2GB.
Fixes a simple bug so that large files beyond 2GB can be created. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
-rw-r--r--fs/9p/vfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index 36122683fae8..019f1cd8750b 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -215,7 +215,7 @@ v9fs_file_write(struct file *filp, const char __user * data,
struct p9_fid *fid;
struct p9_client *clnt;
struct inode *inode = filp->f_path.dentry->d_inode;
- int origin = *offset;
+ loff_t origin = *offset;
unsigned long pg_start, pg_end;
P9_DPRINTK(P9_DEBUG_VFS, "data %p count %d offset %x\n", data,