]> www.infradead.org Git - users/hch/misc.git/commit
xfs: decouple buffer readahead from the normal buffer read path
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Feb 2025 23:48:53 +0000 (15:48 -0800)
committerCarlos Maiolino <cem@kernel.org>
Tue, 25 Feb 2025 12:05:59 +0000 (13:05 +0100)
commitefc5f7a9f3d887ce44b7610bc39388094b6f97d5
tree6f0606ffb6954af6990af25d28564f327d35fb72
parent4b90de5bc0f5a6d1151acd74c838275f9b7be3a5
xfs: decouple buffer readahead from the normal buffer read path

xfs_buf_readahead_map is the only caller of xfs_buf_read_map and thus
_xfs_buf_read that is not synchronous.  Split it from xfs_buf_read_map
so that the asynchronous path is self-contained and the now purely
synchronous xfs_buf_read_map / _xfs_buf_read implementation can be
simplified.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trace.h