]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: move xfs_buf_iowait out of (__)xfs_buf_submit
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Jan 2025 14:12:08 +0000 (15:12 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jan 2025 10:38:14 +0000 (11:38 +0100)
commit05b5968f33a9fccabc5cb6672afd3ce2367db99b
tree27c1b3c22c8bb6cf9510b6e892e71fe00af55bf6
parent411ff3f7386a93d6170dbc067e3965ad472f11c6
xfs: move xfs_buf_iowait out of (__)xfs_buf_submit

There is no good reason to pass a bool argument to wait for a buffer when
the callers that want that can easily just wait themselves.

This means the wait moves out of the extra hold of the buffer, but as the
callers of synchronous buffer I/O need to hold a reference anyway that is
perfectly fine.

Because all async buffer submitters ignore the error return value, and
the synchronous ones catch the error condition through b_error and
xfs_buf_iowait this also means the new xfs_buf_submit doesn't have to
return an error code.

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