Messages in this thread Patch in this message | | | Date | Fri, 23 Apr 2004 14:21:44 -0700 | From | Jim Radford <> | 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/
| |