Re: [PATCH 02/11] mm/zsmalloc: Make all obj_idx unsigned ints

From: Nhat Pham

Date: Wed Mar 11 2026 - 16:01:29 EST


On Wed, Mar 11, 2026 at 12:51 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: Nhat Pham <nphamcs@xxxxxxxxx>