xfs: refactor xlog_recover_buffer_pass1
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Apr 2020 21:39:13 +0000 (14:39 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 May 2020 16:03:16 +0000 (09:03 -0700)
commit98b69b1285be048b9c811f093ba1fa86e4d8fe87
treec05234750fc988864047ca59b8882f13fdf98b51
parentf15ab3f60ef3f25c6139262939388dc5617e2e6f
xfs: refactor xlog_recover_buffer_pass1

Split out a xlog_add_buffer_cancelled helper which does the low-level
manipulation of the buffer cancelation table, and in that helper call
xlog_find_buffer_cancelled instead of open coding it.

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