Re: [PATCH] linux/blkdev.h: Use ilog2() directly in blksize_bits()

From: Jens Axboe
Date: Sat May 23 2020 - 13:07:39 EST


On 5/23/20 9:50 AM, Kaitao Cheng wrote:
> blksize_bits() can be achieved through ilog2(), and ilog2() is
> more efficient.

I like the simplification, but do you have any results to back up
that claim? Is the generated code shorter? Runs faster?

--
Jens Axboe