diff options
| author | Johannes Thumshirn <[email protected]> | 2023-05-31 11:50:29 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-31 15:50:02 +0000 |
| commit | b0a2f17cad9d3fa564d67c543f5d19343401fefd (patch) | |
| tree | 93f7a7b49d14753ac54556da8ced113dd2e237a2 /fs/btrfs/dev-replace.c | |
| parent | md: use __bio_add_page to add single page (diff) | |
| download | kernel-b0a2f17cad9d3fa564d67c543f5d19343401fefd.tar.gz kernel-b0a2f17cad9d3fa564d67c543f5d19343401fefd.zip | |
md: raid5-log: use __bio_add_page to add single page
The raid5 log metadata submission code uses bio_add_page() to add a page
to a newly created bio. bio_add_page() can fail, but the return value is
never checked.
Use __bio_add_page() as adding a single page to a newly created bio is
guaranteed to succeed.
This brings us a step closer to marking bio_add_page() as __must_check.
Reviewed-by: Christoph Hellwig <[email protected]>
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/832a810d6c9e71f88b0a39cb076a8c70e8bcb821.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
