lkml.org 
[lkml]   [2020]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] block, bfq: improve arithmetic division in bfq_delta()
    Date
    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

    \
     
     \ /
      Last update: 2020-01-22 18:34    [W:3.095 / U:0.208 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site