diff options
| author | 2020-09-23 09:13:28 -0700 | |
|---|---|---|
| committer | 2020-09-25 11:34:07 -0700 | |
| commit | d6b8fc6c7afa0acebaef3e17e112227237e75745 (patch) | |
| tree | 702502f5274808eba3934fa80b65bbb157cf869e /fs/xfs/xfs_trans.c | |
| parent | xfs: remove the unused parameter id from xfs_qm_dqattach_one (diff) | |
| download | linux-dev-d6b8fc6c7afa0acebaef3e17e112227237e75745.tar.xz linux-dev-d6b8fc6c7afa0acebaef3e17e112227237e75745.zip | |
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>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
| -rw-r--r-- | fs/xfs/xfs_trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index ca18a040336a..c94e71f741b6 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c @@ -959,7 +959,7 @@ xfs_trans_cancel( struct xfs_log_item *lip; list_for_each_entry(lip, &tp->t_items, li_trans) - ASSERT(!(lip->li_type == XFS_LI_EFD)); + ASSERT(!xlog_item_is_intent_done(lip)); } #endif xfs_trans_unreserve_and_mod_sb(tp); |
