OSDN Git Service

xfs: remove dead code from xfs_log_unmount_write
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Mar 2020 23:52:51 +0000 (16:52 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 13 Mar 2020 17:37:15 +0000 (10:37 -0700)
commit6178d104075a9f83c03fe4e5cad1e7fb271b41a7
tree3d2dc6486ca021c86c25264499af7eeb0d613da3
parent550319e9df3ab7b7862963c48c1e9cc535f2b33d
xfs: remove dead code from xfs_log_unmount_write

When the log is shut down all iclogs are in the XLOG_STATE_IOERROR state,
which means that xlog_state_want_sync and xlog_state_release_iclog are
no-ops.  Remove the whole section of code.

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