OSDN Git Service

xfs: refactor releasing finished intents during log recovery
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)
commit154c733a33d9cdaabec42ae76ca1189044d0447e
tree975eb50e0c1e11fc75887c695613c164eb1dc226
parentbba7b1644a25809c299684a325e766263ad15c62
xfs: refactor releasing finished intents during log recovery

Replace the open-coded AIL item walking with a proper helper when we're
trying to release an intent item that has been finished.  We add a new
->iop_match method to decide if an intent item matches a supplied ID.

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