diff options
| author | Johannes Thumshirn <[email protected]> | 2023-05-31 11:50:28 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-31 15:50:02 +0000 |
| commit | 3c383235c51dcd6198d37ac3ac06e2acad79f981 (patch) | |
| tree | f6aab38fb75d23567e8c5dee9e3dc530a4e6afe5 /fs/btrfs/dev-replace.c | |
| parent | fs: buffer: use __bio_add_page to add single page to bio (diff) | |
| download | kernel-3c383235c51dcd6198d37ac3ac06e2acad79f981.tar.gz kernel-3c383235c51dcd6198d37ac3ac06e2acad79f981.zip | |
md: use __bio_add_page to add single page
The md-raid superblock writing 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.
Signed-of_-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/ca196f5e650e318106dbb4496eb6cbac4bc800bd.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
