xfs: refactor adding recovered intent items to the log
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 May 2020 23:00:54 +0000 (16:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 8 May 2020 15:50:00 +0000 (08:50 -0700)
commit86a37174138621a44c38621b69595e2cd67e5956
tree03bbfe68e9e9b2401d8f3fe0fdecaa4d605a89df
parent154c733a33d9cdaabec42ae76ca1189044d0447e
xfs: refactor adding recovered intent items to the log

During recovery, every intent that we recover from the log has to be
added to the AIL.  Replace the open-coded addition with a helper.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c
fs/xfs/xfs_trans_ail.c
fs/xfs/xfs_trans_priv.h