]> git.baikalelectronics.ru Git - kernel.git/commit
block: Add bio_add_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 8 Apr 2021 05:33:45 +0000 (01:33 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 16 Dec 2021 20:49:51 +0000 (15:49 -0500)
commit98e05e02479aafa23ad1d6bd930d0587fb51ceb4
tree03ac987502f88052aaed845eae9de886a2edde3c
parentf4faf532b51b095af557f2b8dce62f42101c8b01
block: Add bio_add_folio()

This is a thin wrapper around bio_add_page().  The main advantage here
is the documentation that folios larger than 2GiB are not supported.
It's not currently possible to allocate folios that large, but if it
ever becomes possible, this function will fail gracefully instead of
doing I/O to the wrong bytes.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
block/bio.c
include/linux/bio.h