lkml.org 
[lkml]   [2022]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1] zram: add size class equals check into recompression
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.

\
 
 \ /
  Last update: 2022-10-25 14:38    [W:0.056 / U:1.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site