xfs: factor out a xlog_buf_readahead helper
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)
commit7d4894b4ce070398952de25e893873edc67d3105
tree9b1092b40d739b868be618c144a71df619aa68c3
parent5ce70b770d163b0c7697dd23420cbaee070b1cd0
xfs: factor out a xlog_buf_readahead helper

Add a little helper to readahead a buffer if it hasn't been cancelled.

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