From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBF6144AB6F for ; Thu, 23 Jul 2026 11:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784806242; cv=none; b=Zzbu+HTC/TOO3AZpdniqUaWIRXbad2rVNh0JZ7cy5OcjhoF9A4tdCfzVPO0MpRtphpyimGixJqw7h4NnNk+yeuJ+KDeuoVzY0cGEgAXSoth3qaDBbZ0fXRiabKtTWbRKwfZ2LiBoFV+yLrIbyyBW3hIfA8g0ZKwvXK+ync/C0p0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784806242; c=relaxed/simple; bh=YRdBILewMpo6OFyXoh6VceZYQDpoFHt18pz9vghiEpg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mqS0L7x+p2cOBZ7b9SQEEiGRDkqpFUtufZWwX0EYPXO5wv+xko9JDVScizd0bqgyN7MzXLOj7EusEEI+cbb30EYLQAF7qEMszEbHyRs9qR4woFv6xKbKqdhECHfVZVy9KW2qPaGtFsHtOSHrbJnS2iRLLLPvv05dRDSWPoiY//Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=GoUae43X; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="GoUae43X" Date: Thu, 23 Jul 2026 19:30:26 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784806237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZC7L0HZBSSBFm17jYwEmeIieyNJcmoqfrgZhjSok9hg=; b=GoUae43Xjonc4DcNTjzHA93JSBkg6hHt+SWUCUVrHOIKOQJm+eYyqzu26Z7Wd9C408DAuO 7gwZOlFmYC2nYqR7H1enXuVZ/jEFOlHUet+5Ftg77v/C1ZbDuVbg0HLL7fGx4TwE937uM1 JsdwSMgj86xisBjw4x8dsyZOk0xJ6mU= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Hao Li To: "Vlastimil Babka (SUSE)" Cc: Harry Yoo , Suren Baghdasaryan , Shakeel Butt , Alexander Potapenko , Marco Elver , Andrew Morton , Christoph Lameter , David Rientjes , Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2 05/13] mm/slab: make slab_obj_ext() determine object index Message-ID: References: <20260720-b4-objext_split-v2-0-2fa7c6f60dbe@kernel.org> <20260720-b4-objext_split-v2-5-2fa7c6f60dbe@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260720-b4-objext_split-v2-5-2fa7c6f60dbe@kernel.org> X-Migadu-Flow: FLOW_OUT On Mon, Jul 20, 2026 at 04:16:19PM +0200, Vlastimil Babka (SUSE) wrote: > All callers perform the same obj_to_index() calculation to pass the > index. Simplify by passing object pointer instead and determining the > index by slab_obj_ext(). > > Reviewed-by: Suren Baghdasaryan > Signed-off-by: Vlastimil Babka (SUSE) Looks good to me. Reviewed-by: Hao Li -- Thanks, Hao