Matthew Wilcox (Oracle) 5f7136db82 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>
2021-02-26 15:49:51 -07:00
..
2021-02-21 11:02:48 -08:00
2020-08-18 07:48:08 -07:00
2021-02-21 11:02:48 -08:00
2021-02-21 11:02:48 -08:00
2021-02-26 15:49:51 -07:00
2021-01-10 12:53:08 -08:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2020-05-29 16:30:39 -06:00
2020-09-23 09:18:13 -06:00
2021-02-23 19:28:51 -07:00
2020-01-06 20:59:04 -07:00