aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2023-05-31 11:50:38 +0000
committerJens Axboe <[email protected]>2023-06-01 15:13:31 +0000
commit0c67dd644176092d47b97215daca830c6ee0db18 (patch)
tree42dcebf542736922a216d3d91447005bd338b8b7 /fs/btrfs/dev-replace.c
parentmd: raid1: use __bio_add_page for adding single page to bio (diff)
downloadkernel-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