]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd12f46b769e413b0cbf09b81bba7c37f8345399
tree5d2a9ecb2b4db7bf8f0b968637741acc02680668
parentf339454d3f37984f1920a7be210bfd027e86efb6
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