Re: [PATCH] [3/3] writes: fix spurious fs truncate errors

From: Andrew Morton (akpm@osdl.org)
Date: Sat Aug 02 2003 - 05:50:11 EST


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 */
         }

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:18 EST