Re: [PATCH v3 10/11] zsmalloc: fold zs_obj_write() into zs_store()
From: Xueyuan Chen
Date: Tue Nov 17 2026 - 06:00:29 EST
On Wed, 11 Nov 2026 15:46:33 +0900, Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> wrote:
> zram and zswap always call zs_obj_write() right after zs_malloc(), and
> zs_obj_write() has to take pool->lock and look up object location
> again, which zs_malloc() just did.
>
> Replace zs_malloc() and zs_obj_write() with one single zs_store()
> call.
>
> [...]
Reviewed-by: Xueyuan Chen <xueyuan.chen21@xxxxxxxxx>
--
Best regards,
Xueyuan