diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2023-05-31 14:50:24 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-05-31 18:50:02 +0300 |
commit | cb58bf91b138c1a8b18cca9503308789e26e3522 (patch) | |
tree | 6326898ac584b3b121578bb262d37f26385d95b4 /drivers/block/drbd | |
parent | 1ccf164ec866cb8575ab9b2e219fca875089c60e (diff) | |
download | linux-cb58bf91b138c1a8b18cca9503308789e26e3522.tar.xz |
swap: use __bio_add_page to add page to bio
The swap code only adds a single page to a newly created bio. So use
__bio_add_page() to add the page which is guaranteed to succeed in this
case.
This brings us closer to marking bio_add_page() as __must_check.
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/5bdafd9de806b2dab92302b30eb7a3a5f10c37d9.1685532726.git.johannes.thumshirn@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd')
0 files changed, 0 insertions, 0 deletions