]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: move xfs_buf_iowait out of (__)xfs_buf_submit
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Dec 2024 08:16:49 +0000 (08:16 +0000)
committerChristoph Hellwig <hch@lst.de>
Sat, 11 Jan 2025 05:21:41 +0000 (06:21 +0100)
commit8258a2c7e57d10c32619d9d2734cd639cca295f3
treeec3715c3b2994f444fbef4bbb5971ae27778f8a7
parentf95dcb8be1626a97c1df70498ae3b0ac64451b1a
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>
fs/xfs/xfs_buf.c