9p: Fixes a simple bug enabling writes beyond 2GB.
authorjvrao <jvrao@linux.vnet.ibm.com>
Mon, 8 Mar 2010 22:07:02 +0000 (22:07 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Sat, 13 Mar 2010 14:59:54 +0000 (08:59 -0600)
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>
fs/9p/vfs_file.c

index 36122683fae8df1ff12a21b4454788637f89da1e..019f1cd8750b3b31a5b96109f29b7e8a1ea393df 100644 (file)
@@ -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,