Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72387
b: refs/heads/master
c: 432409e
h: refs/heads/master
i:
  72385: b31c87a
  72383: f161564
v: v3
  • Loading branch information
Neil Brown authored and Linus Torvalds committed Oct 23, 2007
1 parent cb3424e commit 54e455a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7aed1c2dc4939d1d61285c738ad32700d791692
refs/heads/master: 432409eebcdec38ff6fa949f097b5438d588faa5
6 changes: 3 additions & 3 deletions trunk/fs/nfs/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,13 @@ static void nfs_direct_write_result(struct rpc_task *task, void *calldata)

spin_lock(&dreq->lock);

if (unlikely(dreq->error != 0))
goto out_unlock;
if (unlikely(status < 0)) {
/* An error has occured, so we should not commit */
/* An error has occurred, so we should not commit */
dreq->flags = 0;
dreq->error = status;
}
if (unlikely(dreq->error != 0))
goto out_unlock;

dreq->count += data->res.count;

Expand Down

0 comments on commit 54e455a

Please sign in to comment.