On 19/04/2023 17:19, Andreas Gruenbacher wrote:
On Wed, Apr 19, 2023 at 4:10 PM Johannes Thumshirn wrote:
From: Johannes Thumshirn
The GFS superblock reading 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.
It's
On Wed, Apr 19, 2023 at 4:10 PM Johannes Thumshirn wrote:
>
> From: Johannes Thumshirn
>
> The GFS superblock reading 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.
It's GFS2, not GFS, but otherwise this is obvio
From: Johannes Thumshirn
The GFS superblock reading 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