Thread (48 messages) 48 messages, 7 authors, 2023-05-31

Re: [PATCH v6 19/20] fs: iomap: use __bio_add_folio where possible

From: Christoph Hellwig <hch@lst.de>
Date: 2023-05-31 04:30:35
Also in: dm-devel, linux-block, linux-fsdevel, linux-mm

On Tue, May 30, 2023 at 08:49:22AM -0700, Johannes Thumshirn wrote:
When the iomap buffered-io code can't add a folio to a bio, it allocates a
new bio and adds the folio to that one. This is done using bio_add_folio(),
but doesn't check for errors.

As adding a folio to a newly created bio can't fail, use the newly
introduced __bio_add_folio() function.
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help