Re: [PATCH v2] block: Add bio_max_segs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 +0000, 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 easier for the users.
>>
>> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
>> ---
>> v2:
>>  - Rename from bio_limit() to bio_max_segs()
>>  - Rebase on next-20210128
>>  - Use DIV_ROUND_UP in dm-log-writes.c
>>  - Use DIV_ROUND_UP in iomap/buffered-io.c
Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux