xfs: do the assert for all the log done items in xfs_trans_cancel
authorKaixu Xia <kaixuxia@tencent.com>
Wed, 23 Sep 2020 16:13:28 +0000 (09:13 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 25 Sep 2020 18:34:07 +0000 (11:34 -0700)
commitd6b8fc6c7afa0acebaef3e17e112227237e75745
tree702502f5274808eba3934fa80b65bbb157cf869e
parent74af4c1770f952a34e52e1eb6f1d97636d754d2c
xfs: do the assert for all the log done items in xfs_trans_cancel

We should do the assert for all the log intent-done items if they appear
here. This patch detect intent-done items by the fact that their item ops
don't have iop_unpin and iop_push methods and also move the helper
xlog_item_is_intent to xfs_trans.h.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h