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)
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

index 98452ad58cffec9cf5ebabb3a6f2ebe843575e7d..6ec4e1013ac08d76f05948fbd36b863eddb0a58c 100644 (file)
@@ -302,7 +302,7 @@ xfs_scrub_ag_read_headers(
        error = xfs_alloc_read_agfl(mp, sc->tp, agno, agfl);
        if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGFL))
                goto out;
-
+       error = 0;
 out:
        return error;
 }