xfs: simplify xlog_recover_inode_ra_pass2
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Apr 2020 01:23:17 +0000 (18:23 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 May 2020 16:03:15 +0000 (09:03 -0700)
commitf15ab3f60ef3f25c6139262939388dc5617e2e6f
tree5d2a9ecb2b4db7bf8f0b968637741acc02680668
parent7d4894b4ce070398952de25e893873edc67d3105
xfs: simplify xlog_recover_inode_ra_pass2

Don't bother to allocate memory and convert the log item when we
only need the block number and the length.  Just extract them directly
and call xlog_buf_readahead separately in each branch.

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