Re: [PATCH] block, bfq: improve arithmetic division in bfq_delta()

From: Jens Axboe
Date: Wed Jan 22 2020 - 12:34:32 EST


On 1/20/20 3:04 AM, Wen Yang wrote:
> do_div() does a 64-by-32 division. Use div64_ul() instead of it
> if the divisor is unsigned long, to avoid truncation to 32-bit.
> And as a nice side effect also cleans up the function a bit.

Applied, thanks.

--
Jens Axboe