Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361501
b: refs/heads/master
c: e001873
h: refs/heads/master
i:
  361499: f8acb7a
v: v3
  • Loading branch information
Dave Chinner authored and Ben Myers committed Mar 18, 2013
1 parent 8f075a6 commit 6920539
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3325beed46d8d14d873e94d89ea57ee900dec942
refs/heads/master: e001873853d87674dd5b3cfa2851885023616695
6 changes: 6 additions & 0 deletions trunk/fs/xfs/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,12 @@ _xfs_buf_ioapply(
int size;
int i;

/*
* Make sure we capture only current IO errors rather than stale errors
* left over from previous use of the buffer (e.g. failed readahead).
*/
bp->b_error = 0;

if (bp->b_flags & XBF_WRITE) {
if (bp->b_flags & XBF_SYNCIO)
rw = WRITE_SYNC;
Expand Down

0 comments on commit 6920539

Please sign in to comment.