aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/direct.c')
-rw-r--r--fs/nfs/direct.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index 4b1d08f56aba..5fd3cf54b2b3 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -787,10 +787,8 @@ static void nfs_direct_write_completion(struct nfs_pgio_header *hdr)
787 787
788 spin_lock(&dreq->lock); 788 spin_lock(&dreq->lock);
789 789
790 if (test_bit(NFS_IOHDR_ERROR, &hdr->flags)) { 790 if (test_bit(NFS_IOHDR_ERROR, &hdr->flags))
791 dreq->flags = 0;
792 dreq->error = hdr->error; 791 dreq->error = hdr->error;
793 }
794 if (dreq->error == 0) { 792 if (dreq->error == 0) {
795 nfs_direct_good_bytes(dreq, hdr); 793 nfs_direct_good_bytes(dreq, hdr);
796 if (nfs_write_need_commit(hdr)) { 794 if (nfs_write_need_commit(hdr)) {