Re: [PATCH] mm: simplify size2index conversion of __kmalloc_index

From: Matthew Wilcox
Date: Sun Aug 28 2022 - 23:12:11 EST


On Sun, Aug 28, 2022 at 11:14:48PM +0800, Dawei Li wrote:
> Current size2index is implemented by one to one hardcode mapping,
> which can be improved by order_base_2().
> Must be careful to not violate compile-time optimization rule.

This patch has been NACKed before (when submitted by other people).