[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166722282123.67008.17742280061886191847.b4-ty@kernel.dk>
Date: Mon, 31 Oct 2022 07:27:01 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Dawei Li <set_pte_at@...look.com>
Cc: hch@....de, bvanassche@....org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] block: simplify blksize_bits() implementation
On Sun, 30 Oct 2022 13:20:08 +0800, Dawei Li wrote:
> Convert current looping-based implementation into bit operation,
> which can bring improvement for:
>
> 1) bitops is more efficient for its arch-level optimization.
>
> 2) Given that blksize_bits() is inline, _if_ @size is compile-time
> constant, it's possible that order_base_2() _may_ make output
> compile-time evaluated, depending on code context and compiler behavior.
>
> [...]
Applied, thanks!
[1/1] block: simplify blksize_bits() implementation
commit: adff215830fcf3ef74f2f0d4dd5a47a6927d450b
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists