summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorDirk Mueller <dmueller@suse.com>2006-02-01 18:19:47 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-02-01 18:52:25 +0100
commit1935245655996ca4d14e687c3a100d2e2bbdc78d (patch)
tree9b5d286f8c72ce08b3b723ef4f9af76db430894a /fs/nfs
parentSUNRPC: Move upcall out of auth->au_ops->crcreate() (diff)
downloadlinux-1935245655996ca4d14e687c3a100d2e2bbdc78d.tar.xz
linux-1935245655996ca4d14e687c3a100d2e2bbdc78d.zip
NFSv3: fix sync_retry in direct i/o NFS
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/direct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index 10ae377e68ff..04ab2fc360e7 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -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;
}