]> err.no Git - linux-2.6/commitdiff
NFSv3: fix sync_retry in direct i/o NFS
authorDirk Mueller <dmueller@suse.com>
Wed, 1 Feb 2006 17:19:47 +0000 (12:19 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2006 17:52:25 +0000 (12:52 -0500)
 Only do a sync_retry if the memcmp failed.

Signed-off-by: Dirk Mueller <dmueller@suse.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c

index 10ae377e68ff2e0e3253a51ef411c040a3a89f7d..04ab2fc360e792404815e67ee44c3adb03510a25 100644 (file)
@@ -481,7 +481,7 @@ retry:
                if (wdata->verf.committed != NFS_FILE_SYNC) {
                        need_commit = 1;
                        if (memcmp(&first_verf.verifier, &wdata->verf.verifier,
-                                       sizeof(first_verf.verifier)));
+                                       sizeof(first_verf.verifier)))
                                goto sync_retry;
                }