Re: [PATCH 02/11] mm/zsmalloc: Make all obj_idx unsigned ints
From: Yosry Ahmed
Date: Wed Mar 11 2026 - 15:59:05 EST
On Wed, Mar 11, 2026 at 12:52 PM Joshua Hahn <joshua.hahnjy@xxxxxxxxx> wrote:
>
> object indices, which describe the location of an object in a zspage,
> cannot be negative. To reflect this most helpers calculate and return
> these values as unsigned ints.
>
> Convert find_alloced_obj, the only function that calculates obj_idx as
> a signed int, to use an unsigned int as well.
>
> No functional change intended.
>
> Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>
Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>