From: jvrao Date: Mon, 8 Mar 2010 22:07:02 +0000 (+0000) Subject: 9p: Fixes a simple bug enabling writes beyond 2GB. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc0f296126433e61600539325975b6c30681c07e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Badari Pulavarty Signed-off-by: Eric Van Hensbergen --- 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,