mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kenny Simpson <theonetruekenny@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: NFS partial writes
Date: Mon, 29 Sep 2003 00:54:44 -0700 (PDT)	[thread overview]
Message-ID: <20030929075444.73172.qmail@web20002.mail.yahoo.com> (raw)

Hi, in nfs_writepage_sync in fs/nfs/write.c I see:

  result = NFS_PROTO(inode)->write(inode, cred,
&fattr, flags,
                                   offset, wsize,
page, &verf);

  if (result < 0) {
          /* Must mark the page invalid after I/O
error */
          ClearPageUptodate(page);
          goto io_error;
  }
  if (result != wsize)
          printk("NFS: short write, wsize=%u,
result=%d\n",
          wsize, result);
  refresh = 1;
  buffer  += wsize;
  base    += wsize;
  offset  += wsize;
  written += wsize;
  count   -= wsize;


Shouldn't buffer, base, offset, written, and count be
(inc|dec)remented by result instead of wsize?

This is with the latest CVS version of 2.5, but the
identical code is in Red Hat's 2.4.20-20.9.

-Kenny


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

                 reply	other threads:[~2003-09-29  7:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030929075444.73172.qmail@web20002.mail.yahoo.com \
    --to=theonetruekenny@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®