Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371042
b: refs/heads/master
c: c163f9a
h: refs/heads/master
v: v3
  • Loading branch information
Dave Chinner authored and Ben Myers committed Mar 14, 2013
1 parent b845492 commit cd339cd
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: d8ddfe81c7e4fe41b8ec342cc288d58aecdf7c47
refs/heads/master: c163f9a1760229a95d04e37b332de7d5c1c225cd
6 changes: 6 additions & 0 deletions trunk/fs/xfs/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,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 cd339cd

Please sign in to comment.