lkml.org 
[lkml]   [2004]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.6.6-rc2 nfs_fsync() breaks "cvs update"
Hi Trond,

This patch keeps the positive return values of nfs_commit_inode() from
leaking out to fsync(). Without this "cvs update" to an nfs dir
breaks.

-Jim

--- linux-2.6/fs/nfs/write.c.orig 2004-04-16 16:22:19.000000000 -0700
+++ linux-2.6/fs/nfs/write.c 2004-04-23 14:04:26.000000000 -0700
@@ -357,8 +357,10 @@
goto out;
}
err = nfs_commit_inode(inode, 0, 0, wb_priority(wbc));
- if (err > 0)
+ if (err > 0) {
wbc->nr_to_write -= err;
+ err = 0;
+ }
out:
clear_bit(BDI_write_congested, &bdi->state);
wake_up_all(&nfs_write_congestion);
-
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 14:02    [W:0.021 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site