tag | 609b7189fccaf946b427669d739a22abecd1b4f3 | |
---|---|---|
tagger | Jens Axboe <axboe@kernel.dk> | Sat Feb 27 12:31:59 2021 -0700 |
object | 5f7136db82996089cdfb2939c7664b29e9da141d |
block-5.12-2021-02-27
commit | 5f7136db82996089cdfb2939c7664b29e9da141d | [log] [tgz] |
---|---|---|
author | Matthew Wilcox (Oracle) <willy@infradead.org> | Fri Jan 29 04:38:57 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Feb 26 15:49:51 2021 -0700 |
tree | f6fb9ac2dafb2ca03002f6c86bc0fb1062fadcfa | |
parent | 94d4bffdda21baa2c749bc229c41811a7559dd15 [diff] |
block: Add bio_max_segs It's often inconvenient to use BIO_MAX_PAGES due to min() requiring the sign to be the same. Introduce bio_max_segs() and change BIO_MAX_PAGES to be unsigned to make it easier for the users. Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>