Re: [PATCH v2] block: Add bio_max_segs

2021-02-26 Thread Jens Axboe
On 2/26/21 1:38 PM, Matthew Wilcox wrote: > > This seems to have missed the merge window ;-( It ain't over yet, and I haven't shipped my final bits for 5.12 for block yet... I'll queue it up. -- Jens Axboe

Re: [PATCH v2] block: Add bio_max_segs

2021-02-26 Thread Chaitanya Kulkarni
On 2/26/21 12:39, Matthew Wilcox wrote: > This seems to have missed the merge window ;-( > > On Fri, Jan 29, 2021 at 04:38:57AM +, Matthew Wilcox (Oracle) wrote: >> It's often inconvenient to use BIO_MAX_PAGES due to min() requiring the >> sign to be the same. Introduce bio_max_segs() and chan

Re: [PATCH v2] block: Add bio_max_segs

2021-02-26 Thread Matthew Wilcox
This seems to have missed the merge window ;-( On Fri, Jan 29, 2021 at 04:38:57AM +, Matthew Wilcox (Oracle) wrote: > 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

[PATCH v2] block: Add bio_max_segs

2021-01-28 Thread Matthew Wilcox (Oracle)
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. Signed-off-by: Matthew Wilcox (Oracle) --- v2: - Rename from bio_limit() to bio_max_segs() - Rebase on