xfs: remove xlog_state_want_sync
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)
commit693639994b13ddecb780897655367a99d5b31679
tree8d52c6daae9f37c19c6d2c19e04fa7d3b47a6bc7
parent5781464bd1ee59a14f2657e878eb6cd90809a7ba
xfs: remove xlog_state_want_sync

Open code the xlog_state_want_sync logic in its two callers given that
this function is a trivial wrapper around xlog_state_switch_iclogs.

Move the lockdep assert into xlog_state_switch_iclogs to not lose this
debugging aid, and improve the comment that documents
xlog_state_switch_iclogs as well.

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