From: jvrao Date: Mon, 8 Mar 2010 22:07:02 +0000 (+0000) Subject: 9p: Fixes a simple bug enabling writes beyond 2GB. X-Git-Tag: v3.0~5433^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc0f296126433e61600539325975b6c30681c07e;p=platform%2Fkernel%2Flinux-amlogic.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 3612268..019f1cd 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,