diff options
| author | Johannes Thumshirn <[email protected]> | 2023-05-31 11:50:42 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-01 15:13:31 +0000 |
| commit | c2478469f2bb821a268bd02cae5b2af1c119c9bd (patch) | |
| tree | 78fc31735dc93b082664c59169ca47c1e609ebf5 /fs/btrfs/dev-replace.c | |
| parent | block: add bio_add_folio_nofail (diff) | |
| download | kernel-c2478469f2bb821a268bd02cae5b2af1c119c9bd.tar.gz kernel-c2478469f2bb821a268bd02cae5b2af1c119c9bd.zip | |
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 <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/58fa893c24c67340a63323f09a179fefdca07f2a.1685532726.git.johannes.thumshirn@wdc.com
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
