[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20221025125542.wenx6m624wu4vuxf@cab-wsm-0029881.lan>
Date: Tue, 25 Oct 2022 12:56:08 +0000
From: Aleksey Romanov <AVRomanov@...rdevices.ru>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
CC: Andrew Morton <akpm@...ux-foundation.org>,
"minchan@...nel.org" <minchan@...nel.org>,
"ngupta@...are.org" <ngupta@...are.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
kernel <kernel@...rdevices.ru>
Subject: Re: [PATCH v1] zram: add size class equals check into recompression
On Tue, Oct 25, 2022 at 09:38:04PM +0900, Sergey Senozhatsky wrote:
> On (22/10/25 11:55), Aleksey Romanov wrote:
> > > Return: the index of the zsmalloc &size_class that hold objects of the
> > > provided size.
> > >
> > > unsigned int zs_lookup_class_index(struct zs_pool *pool, unsigned int size)
> > > {
> > > struct size_class *class = pool->size_class[get_size_class_index(size)];
> > >
> > > return class->index;
> > > }
> >
> > Sure. I think it would be more logical, and perhaps such a function
> > would be more applicable in other cases, in the future.
> >
> > Will you fix it in your cherry-pick?
>
> For that I probably will ask you to send out v2, if possible.
Okay, I will send v2 soon.
--
Thank you,
Alexey
Powered by blists - more mailing lists