summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_buf.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2016-01-11 20:04:30 (GMT)
committerDave Chinner <david@fromorbit.com>2016-01-11 20:04:30 (GMT)
commitdde7f55bd000696acc38296c21241971e1840142 (patch)
tree79fd17020de1ea6921107ad3dbabf5eb33a88838 /fs/xfs/xfs_buf.c
parent4922be51ef1a95ca6a38694cf0cde5dd0308a24e (diff)
parent7d6a13f023567d573ac362502bb702eda716e654 (diff)
downloadlinux-dde7f55bd000696acc38296c21241971e1840142.tar.xz
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index 45a8ea7..ae86b16 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;