All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Oliver Xymoron <oxymoron@waste.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [3/3] writes: fix spurious fs truncate errors
Date: Sat, 2 Aug 2003 03:50:11 -0700	[thread overview]
Message-ID: <20030802035011.77acbf26.akpm@osdl.org> (raw)
In-Reply-To: <20030802042018.GC22824@waste.org>

Oliver Xymoron <oxymoron@waste.org> wrote:
>
> Get rid of newly exposed EIO errors from truncate races in filesystems
> 

One fix.

The reiserfs change looks OK from a breif scan, but I need to wake up a
resierfs developer to take a look at it.



- Missing kunmap in CIFS.

 fs/cifs/file.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN fs/cifs/file.c~awe-fix-truncate-errors-fixes fs/cifs/file.c
--- 25/fs/cifs/file.c~awe-fix-truncate-errors-fixes	2003-08-02 03:28:02.000000000 -0700
+++ 25-akpm/fs/cifs/file.c	2003-08-02 03:28:02.000000000 -0700
@@ -456,6 +456,7 @@ cifs_partialpagewrite(struct page *page,
 
 	/* racing with truncate? */
 	if(offset > mapping->host->i_size) {
+		kunmap(page);
 		FreeXid(xid);
 		return 0; /* don't care */
 	}

_


      reply	other threads:[~2003-08-02 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-02  4:20 [PATCH] [3/3] writes: fix spurious fs truncate errors Oliver Xymoron
2003-08-02 10:50 ` Andrew Morton [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=20030802035011.77acbf26.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oxymoron@waste.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 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.