[dm-devel] [PATCH 01/19] swap: use __bio_add_page to add page to bio

Damien Le Moal damien.lemoal at opensource.wdc.com
Wed Mar 29 23:29:14 UTC 2023


On 3/30/23 02:05, Johannes Thumshirn wrote:
> 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.
> 
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>

Reviewed-by: Damien Le Moal <damien.lemoal at opensource.wdc.com>

-- 
Damien Le Moal
Western Digital Research



More information about the dm-devel mailing list