]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: simplify log shutdown checking in xfs_log_release_iclog
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Mar 2020 15:49:19 +0000 (08:49 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 23 Mar 2020 15:27:59 +0000 (08:27 -0700)
commit698b1488c33ef8184e667af3179677553517e60f
tree49ef69c12061f87f8077953dfc278d52201deffb
parent7537bffeb6a3da1feb68502b022347702805b0a4
xfs: simplify log shutdown checking in xfs_log_release_iclog

There is no need to check for the ioerror state before the lock, as
the shutdown case is not a fast path.  Also remove the call to force
shutdown the file system, as it must have been shut down already
for an iclog to be in the ioerror state.  Also clean up the flow of
the function a bit.

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