Re: [PATCH v4 1/4] mm/zsmalloc: encode class index in obj value for lockless class lookup
From: Wenchao Hao
Date: Thu Jun 11 2026 - 22:01:05 EST
On Thu, Jun 11, 2026 at 10:31 PM Nhat Pham <nphamcs@xxxxxxxxx> wrote:
>
> 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 :)
Thanks! Since the rest of 1/4 is unchanged from v4 apart from the
rename, would you be open to re-applying your Reviewed-by on the
next spin?
Wenchao