Re: [PATCH v2 03/11] zsmalloc: return handle from obj_allocated()

From: Yosry Ahmed

Date: Tue Nov 10 2026 - 11:48:24 EST


On Tue, Nov 10, 2026 at 02:48:08PM +0900, Sergey Senozhatsky wrote:
> Allocated handles are valid kernel addresses and never 0, so let
> obj_allocated() return the handle directly (or 0 if unallocated)
> instead of returning a bool.
>
> No functional change.
>
> Suggested-by: Yosry Ahmed <yosry@xxxxxxxxxx>
> Signed-off-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>

Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>