diff options
| author | Johannes Thumshirn <[email protected]> | 2023-05-31 11:50:38 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-01 15:13:31 +0000 |
| commit | 0c67dd644176092d47b97215daca830c6ee0db18 (patch) | |
| tree | 42dcebf542736922a216d3d91447005bd338b8b7 /fs/btrfs/dev-replace.c | |
| parent | md: raid1: use __bio_add_page for adding single page to bio (diff) | |
| download | kernel-0c67dd644176092d47b97215daca830c6ee0db18.tar.gz kernel-0c67dd644176092d47b97215daca830c6ee0db18.zip | |
md: raid1: check if adding pages to resync bio fails
Check if adding pages to resync bio fails and if bail out.
As the comment above suggests this cannot happen, WARN if it actually
happens. Technically __bio_add_pages() would be sufficient here, but
asserting the pages actually get added to the bio is preferred.
This way we can mark bio_add_pages as __must_check.
Reviewed-by: Damien Le Moal <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/33aea4c271220dc9bcab58c4b7bec478c1511142.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
