Re: [PATCH v4 1/4] mm/zsmalloc: encode class index in obj value for lockless class lookup
From: Nhat Pham
Date: Thu Jun 11 2026 - 10:32:04 EST
On Wed, Jun 10, 2026 at 8:15 PM Wenchao Hao <haowenchao22@xxxxxxxxx> wrote:
>
> On Thu, Jun 11, 2026 at 5:28 AM Barry Song <baohua@xxxxxxxxxx> wrote:
>
> Agreed, will follow the convention and drop MAX_:
>
> ZS_CHAIN_LOG2 -> ZS_PAGES_PER_ZSPAGE_BITS
> ZS_MAX_OBJ_PER_PAGE_LOG2 -> ZS_OBJS_PER_PAGE_BITS
> ZS_OBJ_IDX_DENSE_BITS -> ZS_OBJS_PER_ZSPAGE_BITS
>
> Nhat -- sorry for the churn; this supersedes the names I proposed
> earlier. Let me know if the new naming still reads well to you.
No worries at all. I like this a lot :)