aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-06-01 21:32:24 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-07-05 19:11:01 -0400
commit8fc3c3862728373e0d0f5abccc6afc56c69e0c63 (patch)
tree6d8dcf0fb32de0ba8d78d891832eef421cd69919 /fs/nfs/write.c
parent6712007734cbd64ff924af16fc236751d47ff80b (diff)
downloadlinux-8fc3c3862728373e0d0f5abccc6afc56c69e0c63.tar.gz
NFS: Fix O_DIRECT verifier problems
We should not be interested in looking at the value of the stable field, since that could take any value. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index b13d48881d3ae..3087fb6f19830 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1789,7 +1789,7 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data)
/* Okay, COMMIT succeeded, apparently. Check the verifier
* returned by the server against all stored verfs. */
- if (!memcmp(&req->wb_verf, &data->verf.verifier, sizeof(req->wb_verf))) {
+ if (!nfs_write_verifier_cmp(&req->wb_verf, &data->verf.verifier)) {
/* We have a match */
nfs_inode_remove_request(req);
dprintk(" OK\n");