Re: [PATCHv2 1/2] zsmalloc: introduce zs_huge_object() function

From: Sergey Senozhatsky
Date: Wed Feb 14 2018 - 00:52:35 EST


On (02/11/18 09:05), Mike Rapoport wrote:
[..]
> > +/**
> > + * zs_huge_object() - Test if a compressed object's size is too big for normal
> > + * zspool classes and it shall be stored in a huge class.
>
> I think "is should be stored" is more appropriate
>
> > + * @sz: Size of the compressed object (in bytes).
> > + *
> > + * The function checks if the object's size falls into huge_class
> > + * area. We must take handle size into account and test the actual
> > + * size we are going to use, because zs_malloc() unconditionally
> > + * adds %ZS_HANDLE_SIZE before it performs %size_class lookup.
>
> ^ &size_class ;-)

I'm sorry, Mike. Lost in branches/versions and sent out a half baked
version.

-ss