Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: mark bio_add_folio as __must_check

Now that all callers of bio_add_folio() check the return value, mark it as
__must_check.

Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/381360a45ac3684120cfbe1e07685e9c36256e47.1685532726.git.johannes.thumshirn@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Johannes Thumshirn and committed by
Jens Axboe
6c500000 c2478469

+2 -1
+2 -1
include/linux/bio.h
··· 467 467 468 468 int __must_check bio_add_page(struct bio *bio, struct page *page, unsigned len, 469 469 unsigned off); 470 - bool bio_add_folio(struct bio *, struct folio *, size_t len, size_t off); 470 + bool __must_check bio_add_folio(struct bio *bio, struct folio *folio, 471 + size_t len, size_t off); 471 472 extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *, 472 473 unsigned int, unsigned int); 473 474 int bio_add_zone_append_page(struct bio *bio, struct page *page,