]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20b4325fe1b8eb68206136a9af7d5669a111d4a8
tree5f8d34aeb36c643c6395f956c2a4c0cd8b8f6c70
parent5aba697840c6c8ae5a8bd25aa800292b55f877e3
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