diff options
author | Dave Chinner <david@fromorbit.com> | 2016-01-12 07:04:30 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-01-12 07:04:30 +1100 |
commit | dde7f55bd000696acc38296c21241971e1840142 (patch) | |
tree | 79fd17020de1ea6921107ad3dbabf5eb33a88838 /fs/xfs/xfs_buf.c | |
parent | 4922be51ef1a95ca6a38694cf0cde5dd0308a24e (diff) | |
parent | 7d6a13f023567d573ac362502bb702eda716e654 (diff) |
Merge branch 'xfs-misc-fixes-for-4.5-2' into for-next
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r-- | fs/xfs/xfs_buf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 45a8ea7cfdb2..ae86b16f9025 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -604,6 +604,13 @@ found: } } + /* + * Clear b_error if this is a lookup from a caller that doesn't expect + * valid data to be found in the buffer. + */ + if (!(flags & XBF_READ)) + xfs_buf_ioerror(bp, 0); + XFS_STATS_INC(target->bt_mount, xb_get); trace_xfs_buf_get(bp, flags, _RET_IP_); return bp; |