diff mbox

[V9fs-developer,fs/9p] Remove the redundant rsize calculation in v9fs_file_write()

Message ID 1282065602-3836-1-git-send-email-jvrao@linux.vnet.ibm.com (mailing list archive)
State Changes Requested, archived
Delegated to: Eric Van Hensbergen
Headers show

Commit Message

jvrao Aug. 17, 2010, 5:20 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index e97c92b..2695491 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -235,11 +235,8 @@  v9fs_file_write(struct file *filp, const char __user * data,
 	rsize = fid->iounit ? fid->iounit : clnt->msize - P9_IOHDRSZ;
 
 	do {
-		if (count < rsize)
-			rsize = count;
-
 		n = p9_client_write(fid, NULL, data+total, origin+total,
-									rsize);
+									count);
 		if (n <= 0)
 			break;
 		count -= n;