Skip to contentSkip to conversation

2.6.6-rc2 nfs_fsync() breaks "cvs update"

PATCH FabF 1 participant 1 message Apr 24, 2004 NFS client

lore
Share & tools
lore

FabF

author
#0 lore raw

Jim,

Maybe we could add some explicit comment here ?

Regards,
Fabian

fs/nfs/write.c +4 -1
diff -Naur orig/fs/nfs/write.c edited/fs/nfs/write.c
@@ -357,8 +357,11 @@
 			goto out;
 	}
 	err = nfs_commit_inode(inode, 0, 0, wb_priority(wbc));
-	if (err > 0)
+	if (err > 0){
 		wbc->nr_to_write -= err;
+		/* nfs_scan_list returned processed requests => no error */
+		err = 0;
+	}
 out:
 	clear_bit(BDI_write_congested, &bdi->state);
 	wake_up_all(&nfs_write_congestion);