lkml.org 
[lkml]   [2003]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] [3/3] writes: fix spurious fs truncate errors
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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.028 / U:1.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site