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

2023-03-31 Thread Pankaj Raghav
On Wed, Mar 29, 2023 at 10:05:47AM -0700, 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. > > Sig

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

2023-03-29 Thread Damien Le Moal
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 Thu

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

2023-03-29 Thread Johannes Thumshirn
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 --- mm/page_io.c | 8 1 file changed, 4