xfs: move the ioerror check out of xlog_state_clean_iclog
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Mar 2020 15:49:21 +0000 (08:49 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 23 Mar 2020 15:27:59 +0000 (08:27 -0700)
commit5781464bd1ee59a14f2657e878eb6cd90809a7ba
tree3ffbde7ceb403c8a55d228c1e45a55c97b25b84b
parentc814b4f24ebacafb889e7975cb4a7136a5306921
xfs: move the ioerror check out of xlog_state_clean_iclog

Use the shutdown flag in the log to bypass xlog_state_clean_iclog
entirely in case of a shut down log.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c