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 463B236F42A for ; Thu, 16 Jul 2026 16:04:40 +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=1784217885; cv=none; b=Q8VOvdmEXP3k5trpWlVEOl2kEjyXGbBBrMd5Ta5lUtiCv6UdgIj/4cwTeojNqy3tBbqwY2TBtEvlFvfXFIZmGE4d2hM3RNb+tilRasup2ktSS7eYsS6e2Rh2e/nfOdOu2HN2eigQs+IltVgOJ+9Efi81EsNChYgCYwxzh78171o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784217885; c=relaxed/simple; bh=Tz9IYBII36hEmZ8WCkdw0Poo/VwDhmKC5JCuOyne4eQ=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=szrGs6cji5HnjhVm1OBVOSibqVllCh+Qv5sVicgIs6afpYD5nwqMWmcROQ0D8BgJH6GA4skIwOSEOQVCeFh/WQ2gPVxooID/x/BmOsQwJ1XZTM8Jaht6YrOnp5rUe52opYkfpIfW9d8YZDYpY4PbvcPWaqEatWGmAQouRyRycBs= 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=Xsgwr6/T; 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="Xsgwr6/T" Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784217878; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Tz9IYBII36hEmZ8WCkdw0Poo/VwDhmKC5JCuOyne4eQ=; b=Xsgwr6/T1iv1KWaE1PuNvf4s/O+/mxi0r+dxIsV2UrtO3cqwbAo/F13cifsh5A4y30WL0M OAfBvENtdO2+WNOtB8b1YZ9VkWLo9N61R3G0xE+YVfNijzJSDAweY+G+J3yVeHK+S33Z3J u3V4cUBGDVOKcydQVkb+bPN6FkiL5cw= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 16 Jul 2026 16:04:30 +0000 Message-Id: Cc: , , , , , , Subject: Re: [PATCH 1/3] mm: move internal mempolicy APIs to new internal header X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Brendan Jackman" To: "Vlastimil Babka (SUSE)" , "Brendan Jackman" , "Andrew Morton" , "David Hildenbrand" , "Lorenzo Stoakes" , "Liam R. Howlett" , "Mike Rapoport" , "Suren Baghdasaryan" , "Michal Hocko" , "Johannes Weiner" , "Zi Yan" , "Matthew Wilcox (Oracle)" , "Jan Kara" , "Joshua Hahn" , "Byungchul Park" , "Gregory Price" , "Ying Huang" , "Alistair Popple" , "Hugh Dickins" , "Baolin Wang" , "Chris Li" , "Kairui Song" , "Kemeng Shi" , "Nhat Pham" , "Baoquan He" , "Barry Song" , "Youngjun Park" , "Joerg Roedel (AMD)" , "Will Deacon" , "Robin Murphy" , "Huacai Chen" , "WANG Xuerui" , "Thomas Gleixner" , "Chuck Lever" , "Jeff Layton" , "NeilBrown" , "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" , "Trond Myklebust" , "Anna Schumaker" , "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Simon Horman" References: <20260716-folio-alloc-cleanups-v1-0-5363b8e92d33@google.com> <20260716-folio-alloc-cleanups-v1-1-5363b8e92d33@google.com> <73d3c545-dd8a-4131-9826-1a7096dd619a@kernel.org> In-Reply-To: <73d3c545-dd8a-4131-9826-1a7096dd619a@kernel.org> X-Migadu-Flow: FLOW_OUT On Thu Jul 16, 2026 at 3:22 PM UTC, Vlastimil Babka (SUSE) wrote: > On 7/16/26 16:30, Brendan Jackman wrote: >> There are no external users for this surface, reduce the scope. >>=20 >> Ulterior motive: a later patch will add an alloc_flags arg to some parts >> of this. >>=20 >> Note it might seem like this could just go in internal.h, since it's >> pretty small, but actually it will eventually need to import >> page_alloc.h, we don't want to import that from internal.h so best to >> proactively created this header now. > > Hmm, maybe it could just go to page_alloc.h then? After all this is just > bunch of internal page allocation functions, which just take the mempolic= y > pointer? That would work AFAICS, but I think it's quite tidy that, currently, all functions declared in page_alloc.h are defined in page_alloc.c. This would break that. If you're certain you don't care about that then I could live with using page_alloc.h.