linux/fs/zonefs
Johannes Thumshirn 0fa5b08cf6 zonefs: use __bio_add_page for adding single page to bio
The zonefs 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 closer to marking bio_add_page() as __must_check.

Acked-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/04c9978ccaa0fc9871cd4248356638d98daccf0c.1685532726.git.johannes.thumshirn@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-05-31 09:50:02 -06:00
..
file.c zonefs: Provide a splice-read wrapper 2023-05-24 08:42:16 -06:00
Kconfig zonefs: select CONFIG_CRC32 2021-01-04 09:06:42 +09:00
Makefile zonefs: Reorganize code 2023-01-23 09:25:50 +09:00
super.c zonefs: use __bio_add_page for adding single page to bio 2023-05-31 09:50:02 -06:00
sysfs.c zonefs: make kobj_type structure constant 2023-02-13 08:03:48 +09:00
trace.h zonefs: Separate zone information from inode information 2023-01-23 09:25:51 +09:00
zonefs.h zonefs: Cache zone group directory inodes 2023-01-23 09:25:51 +09:00