xfs: cleanup 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)
commit13859c984301ac4c1b2b3504b9f342aaddaa4a8a
tree5f8d34aeb36c643c6395f956c2a4c0cd8b8f6c70
parent6178d104075a9f83c03fe4e5cad1e7fb271b41a7
xfs: cleanup xfs_log_unmount_write

Move the code for verifying the iclog state on a clean unmount into a
helper, and instead of checking the iclog state just rely on the shutdown
check as they are equivalent.  Also remove the ifdef DEBUG as the
compiler is smart enough to eliminate the dead code for non-debug builds.

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