mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
xfs: don't reverify buffers in xfs_buf_readahead_map
xfs_buf_read_map calls xfs_buf_reverify to ensure the verifier has run for a buffer before the data can be used when an earlier readahead read the data before the buf_ops were assigned. There is no point in doing this in xfs_buf_readahead_map for a buffer already in memory as a later xfs_buf_read will do the same and can actually propagate the error to the caller. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
b15f6520ab
commit
3d10272743
|
|
@ -760,7 +760,6 @@ xfs_buf_readahead_map(
|
|||
trace_xfs_buf_readahead(bp, 0, _RET_IP_);
|
||||
|
||||
if (bp->b_flags & XBF_DONE) {
|
||||
xfs_buf_reverify(bp, ops);
|
||||
xfs_buf_relse(bp);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user