diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2023-05-31 14:50:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-01 18:13:31 +0300 |
commit | c2478469f2bb821a268bd02cae5b2af1c119c9bd (patch) | |
tree | 78fc31735dc93b082664c59169ca47c1e609ebf5 /include/linux/isa.h | |
parent | 7a150f1ed19b709837e98571f49ab1ff2625ca89 (diff) | |
download | linux-c2478469f2bb821a268bd02cae5b2af1c119c9bd.tar.xz |
fs: iomap: use bio_add_folio_nofail where possible
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_nofail() function.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/58fa893c24c67340a63323f09a179fefdca07f2a.1685532726.git.johannes.thumshirn@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/isa.h')
0 files changed, 0 insertions, 0 deletions