[Cluster-devel] [PATCH 13/19] zram: use __bio_add_page for adding single page to bio

Pankaj Raghav p.raghav at samsung.com
Fri Mar 31 12:20:11 UTC 2023


On Wed, Mar 29, 2023 at 10:05:59AM -0700, Johannes Thumshirn wrote:
> The zram writeback 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-off-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>

Looks good,
Reviewed-by: Pankaj Raghav <p.raghav at samsung.com>



More information about the Cluster-devel mailing list