Re: [RFC 05/12] bio: add bio_set_status
Christoph Hellwig <[email protected]>
| Newsgroups | gmane.linux.block,gmane.comp.file-systems.btrfs,gmane.linux.raid,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Dec 08, 2025 at 12:10:12PM +0000, Andreas Gruenbacher wrote: > Add a bio_set_status(bio, status) helper that sets bio->bi_status to > status if status != BLK_STS_OK. Replace instances of this pattern in > the code with a call to the new helper. Why? Also the name suggest it is the canonical way to set a status, and not just a helper to set it conditionally.