All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Venkateswararao Jujjuri (JV)" <jvrao@linux.vnet.ibm.com>
To: v9fs-developer@lists.sourceforge.net
Cc: linux-fsdevel@vger.kernel.org,
	"Venkateswararao Jujjuri (JV)" <jvrao@linux.vnet.ibm.com>,
	Badari Pulavarty <pbadari@us.ibm.com>
Subject: [PATCH] [fs/9p] Remove the redundant rsize calculation in v9fs_file_write()
Date: Tue, 17 Aug 2010 10:20:02 -0700	[thread overview]
Message-ID: <1282065602-3836-1-git-send-email-jvrao@linux.vnet.ibm.com> (raw)

The same calculation is done in p9_client_write().

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
---
 fs/9p/vfs_file.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

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;
-- 
1.6.5.2


             reply	other threads:[~2010-08-17 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-17 17:20 Venkateswararao Jujjuri (JV) [this message]
2010-08-23 16:15 ` [V9fs-developer] [PATCH] [fs/9p] Remove the redundant rsize calculation in v9fs_file_write() Eric Van Hensbergen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1282065602-3836-1-git-send-email-jvrao@linux.vnet.ibm.com \
    --to=jvrao@linux.vnet.ibm.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=pbadari@us.ibm.com \
    --cc=v9fs-developer@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.