All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Van Hensbergen <ericvh@gmail.com>
To: "Venkateswararao Jujjuri (JV)" <jvrao@linux.vnet.ibm.com>
Cc: v9fs-developer@lists.sourceforge.net,
	linux-fsdevel@vger.kernel.org,
	Badari Pulavarty <pbadari@us.ibm.com>
Subject: Re: [V9fs-developer] [PATCH] [fs/9p] Remove the redundant rsize calculation in v9fs_file_write()
Date: Mon, 23 Aug 2010 11:15:04 -0500	[thread overview]
Message-ID: <AANLkTinMTLvXLeLgD_FAug3QPO5Djw8KKUOfGJMeKx-G@mail.gmail.com> (raw)
In-Reply-To: <1282065602-3836-1-git-send-email-jvrao@linux.vnet.ibm.com>

If we are eliminating the check, we should just eliminate the
calculation higher up (and the rsize variable) from this function.
Please resubmit with more extensive cleanup.  Thanks.

         -eric


On Tue, Aug 17, 2010 at 12:20 PM, Venkateswararao Jujjuri (JV)
<jvrao@linux.vnet.ibm.com> wrote:
> 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
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> V9fs-developer mailing list
> V9fs-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/v9fs-developer
>
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-08-23 16:15 UTC|newest]

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

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=AANLkTinMTLvXLeLgD_FAug3QPO5Djw8KKUOfGJMeKx-G@mail.gmail.com \
    --to=ericvh@gmail.com \
    --cc=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.