OSDN Git Service

xfs: ignore agfl read errors when not scrubbing agfl
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:49:02 +0000 (10:49 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:49:02 +0000 (10:49 -0800)
commit5a0f433745ead12f485da2213fa0c473ed613a45
tree19bcc551fca6303cb12af117161b81c727283a8b
parent5a9d929d6e13278df62bd9e3d3ceae8c87ad1eea
xfs: ignore agfl read errors when not scrubbing agfl

In xfs_scrub_ag_read_headers, if we're not scrubbing the AGFL but
hit a read error reading the AGFL, we should reset the error code
so that it doesn't propagate up into the caller.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/common.c