From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 931233BED76; Wed, 17 Jun 2026 09:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781688297; cv=none; b=smGA7fsHDvmMgV3PUXWM9N3w5DjsiOtBQnRJDJTuakJKpdbuz95FrnOPTu3q+BvrLJEkGQ0KwKOtqNCieHmeHm0DQdJ3izGrHiIXk2bXn+GjBPngFteXdouHJr5pMGHL2nhJsrO/0Z4Yj9B3zb0MLKlv/ZqKGIPkL1pveRNAdFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781688297; c=relaxed/simple; bh=ukDROeDwzr3ZoL8vVJ3NTzkwU232sE6vLyeqP7y78jw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=scdF+7F6BVW/q/9FHngGXGQbeg5b1zh4T1Z2cCoHgrlhASmArrem7tKrgxumAQFvc0FD9hzKQIWtl+JZv0JZarn30t8xD+r+LUpG28fY0Xu1ZLR/CUtm/Zz+wJihxWyEfdnLKbHcda3ygCK3kwl7gnxsvp4wAFlgA69JMM8mH9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MVKZCXUL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MVKZCXUL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48E2B1F000E9; Wed, 17 Jun 2026 09:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781688293; bh=ukDROeDwzr3ZoL8vVJ3NTzkwU232sE6vLyeqP7y78jw=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=MVKZCXULeCc3WHehHQnprURu8tAPLhNcCq/k4c0vi55Vk42y2WoRo6luW4D+o8FUK K8h8MeEyeIg2MhIiiLPh8kRC9LPQynCKhfxaA+aCu+5pUoGLpqSbXAyWlCIOKwLVQb Aec4MI0xzeskZa0VK89aplGsm2o9JhqXjG3GzxyNREu0Yn5ZJdf4z8/ajjeqd/qLk4 KZU1/YWovxiWjFxAA+xx2glO8JnUrPStRAiLjKXSikU1+R/91EH3d+fK119lfz9JLZ J0cHUT37Qt0OZHEzXwwNnTOErU36KY60pTySsx75q5njKlFylGee/J/n5grhzSt6CU UiF7wUqT6Kuuw== Message-ID: Date: Wed, 17 Jun 2026 18:24:44 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 09/15] mm/slab: replace slab_alloc_node() parameters with slab_alloc_context To: "Vlastimil Babka (SUSE)" Cc: Hao Li , Christoph Lameter , David Rientjes , Roman Gushchin , Suren Baghdasaryan , Alexei Starovoitov , Andrew Morton , Johannes Weiner , Michal Hocko , Shakeel Butt , Alexander Potapenko , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org References: <20260615-slab_alloc_flags-v3-0-ce1146d140fb@kernel.org> <20260615-slab_alloc_flags-v3-9-ce1146d140fb@kernel.org> Content-Language: en-US From: Harry Yoo In-Reply-To: <20260615-slab_alloc_flags-v3-9-ce1146d140fb@kernel.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------tWEfSKJRdmtGLwcIaNnNhpfw" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------tWEfSKJRdmtGLwcIaNnNhpfw Content-Type: multipart/mixed; boundary="------------XVYSd1G00Q7d0rl9kEo4pZcy"; protected-headers="v1" From: Harry Yoo To: "Vlastimil Babka (SUSE)" Cc: Hao Li , Christoph Lameter , David Rientjes , Roman Gushchin , Suren Baghdasaryan , Alexei Starovoitov , Andrew Morton , Johannes Weiner , Michal Hocko , Shakeel Butt , Alexander Potapenko , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Message-ID: Subject: Re: [PATCH v3 09/15] mm/slab: replace slab_alloc_node() parameters with slab_alloc_context References: <20260615-slab_alloc_flags-v3-0-ce1146d140fb@kernel.org> <20260615-slab_alloc_flags-v3-9-ce1146d140fb@kernel.org> In-Reply-To: <20260615-slab_alloc_flags-v3-9-ce1146d140fb@kernel.org> --------------XVYSd1G00Q7d0rl9kEo4pZcy Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 6/15/26 8:54 PM, Vlastimil Babka (SUSE) wrote: > The function takes all the parameters that exist as fields in > slab_alloc_context, except alloc_flags. Replace them with a single > pointer. >=20 > This moves slab_alloc_context initialization to a number of callers, > which is more verbose, but arguably also more clear than a long list of= > parameters, and most do not use the 'lru' field. >=20 > This will also allow kmalloc_nolock() to call slab_alloc_node() and > reduce the special open-coding it currently has. >=20 > Link: https://patch.msgid.link/20260610-slab_alloc_flags-v2-10-7190909d= b118@kernel.org > Reviewed-by: Hao Li > Reviewed-by: Suren Baghdasaryan > Signed-off-by: Vlastimil Babka (SUSE) > --- Looks good to me, Reviewed-by: Harry Yoo (Oracle) --=20 Cheers, Harry / Hyeonggon --------------XVYSd1G00Q7d0rl9kEo4pZcy-- --------------tWEfSKJRdmtGLwcIaNnNhpfw Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQQ1ub6gR5ogjaKRmOGXBN6rc5S1gUCajJn3AAKCRCGXBN6rc5S 1n9AAP9BIM7s05pk3i6+4MllnOO0QTEqYjoecioUKF0ZmLq1KgD/aE3egAllgoSq jLfLRz8KrH5YC0vg+GWDmTfCQokaEwY= =xhq6 -----END PGP SIGNATURE----- --------------tWEfSKJRdmtGLwcIaNnNhpfw--