From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 85EF63AD501 for ; Fri, 12 Jun 2026 05:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781242146; cv=none; b=h7zd7Xr0ru8I4f4+H++PfiIq1ViRwYo5DDNtixjw9gr6oeNaDRKSpcN9dieRjvUyGYTcLNPYF0Dvt0iLi6ww1ripr50l1oSpR3q18OdlrYPB9AYuLypRpU9kLAEN223jz7gRA9E6iDyGfZJL0cqLX/YjhVHhYTL6Q0n5yPcAusE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781242146; c=relaxed/simple; bh=tgavCVhdQqzGKqx2jq38NuXFfwAT7FyShZMKVGqWDrE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sSk9bqmi3vxijXO0iiAx9DAJlDVYxcQpZy1onfjiYtKzGGeMzwHabVE0zdppiZ8/TTw0TrE5L544laAJjjDnfJWW/VJUwRZ3K9bFymKkB6d+tyEx+F/c0nrvVgz52pPQdrAiTzZkoT9Ca4EI8MGhV/rma6zG/n5r8A4BQoHYJWo= 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=AaeLdqPA; arc=none smtp.client-ip=95.215.58.174 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="AaeLdqPA" Date: Fri, 12 Jun 2026 13:28:25 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781242138; 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=co9Iw/3AbNoVqm+ieCaPAwVCcZFfa5kR/NB5heC5dsQ=; b=AaeLdqPA+cTJiMoWuujUNtd2oszWJnPer5VhmZi2FK+MwabP4xVhKs74kxVVTTz+uB2Lvl 1+PYBj3PTDOSg9m/SR5tqt0RpmCOmEfsycBu3xPGBk+hAF0Oe/kOq2p18z7vVamONGyyrx vMUeI80xwDMdvhNEfDP7OnznDQw0oUE= 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 , 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 Subject: Re: [PATCH v2 10/16] mm/slab: replace slab_alloc_node() parameters with slab_alloc_context Message-ID: References: <20260610-slab_alloc_flags-v2-0-7190909db118@kernel.org> <20260610-slab_alloc_flags-v2-10-7190909db118@kernel.org> Precedence: bulk X-Mailing-List: cgroups@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: <20260610-slab_alloc_flags-v2-10-7190909db118@kernel.org> X-Migadu-Flow: FLOW_OUT On Wed, Jun 10, 2026 at 05:40:12PM +0200, 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. > > 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. > > This will also allow kmalloc_nolock() to call slab_alloc_node() and > reduce the special open-coding it currently has. > > Signed-off-by: Vlastimil Babka (SUSE) > --- Reviewed-by: Hao Li -- Thanks, Hao