From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 C181978F39 for ; Sat, 25 Jul 2026 03:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784951714; cv=none; b=YwMZdUGyflHe22tIQmrlNqKaPJp5n3MkWHeks997dSgM2h+xVb9k1ocmtqYXKOF0dHUl6RhKSm7M5VBH2znmm7J56onJ5Eo5gcm7lbzwxIcOt5c9r/HbxehTzhXsBusleSK6Fs3AkpeRXQv/ndij5xVfp5y7IQxGbQ1OqZeLXtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784951714; c=relaxed/simple; bh=MuJ4/5C6luBILu5Uk+iIfk2e42n6DBfOZj+1SQWa8N0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N2ArtHOccWG7gLUVlsmn2R9hzhREpu5q3B7mkMuyYtxAgFavlPgHNGoW2kVkaWsX34yWXfv0Eyor468H1Mbu/aM1bEn0MSc8SgnijtcmjxukykQjlPbm2mDh2D0xKHrrW9qZGrEdaXpxgl5jx5Rfqua3A7UCcLAbC70Z1iyQYLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=PzKn2Y8S; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="PzKn2Y8S" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nFdW8Apb0lNay40VhfzizdVH02etiqNvRj5AEYt7aMk=; b=PzKn2Y8SEq6X5iOWOyPiwAYTue g+9He0EYlQR5lEZMpSTfEKtG4pDe7N9+MxYmtTldz/iIb6N9C7gKsV0nJOuWXtG26wb065PEK0GpE OTxSZ7jPuP7AqTZ/XdbFy4GIBPs5y12Uaq+GqaXmWI5flM5yg55gz6eHGMgqSUyfSv65mzio+K96Q 89Lt7/1PGQYn5Biivo5HB9DlOlsTA/+xp2GFvDnIXzm/z8AYY5yljz/lWCMn5BVR0Eb2txUyK+Boj E5xDsHAClQDzatZFDy7GygLc6dktx6PCTmwLe77d7nxkz6j6CEltm+OdcNUDTKVuXDqJonBYOp3DY VsstCmEQ==; Received: from willy by casper.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1wnTTS-00000005LGf-3LOs; Sat, 25 Jul 2026 03:54:54 +0000 Date: Sat, 25 Jul 2026 04:54:54 +0100 From: Matthew Wilcox To: Jiaqi Yan Cc: linmiaohe@huawei.com, ljs@kernel.org, ziy@nvidia.com, vbabka@kernel.org, osalvador@kernel.org, harry.yoo@oracle.com, osalvador@suse.de, jackmanb@google.com, hannes@cmpxchg.org, nao.horiguchi@gmail.com, david@kernel.org, william.roche@oracle.com, tony.luck@intel.com, wangkefeng.wang@huawei.com, jane.chu@oracle.com, akpm@linux-foundation.org, muchun.song@linux.dev, liam@infradead.org, rientjes@google.com, duenwen@google.com, jthoughton@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, vbabka@suse.cz, rppt@kernel.org, shuah@kernel.org, surenb@google.com, mhocko@suse.com, boudewijn@delta-utec.com Subject: Re: [PATCH v6 1/5] mm/page_alloc: introduce __free_prepared_contig_range() with fpi_t Message-ID: References: <20260705180714.3708947-1-jiaqiyan@google.com> <20260705180714.3708947-2-jiaqiyan@google.com> 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: <20260705180714.3708947-2-jiaqiyan@google.com> On Sun, Jul 05, 2026 at 06:07:10PM +0000, Jiaqi Yan wrote: > Rename the core logic to __free_prepared_contig_range() to accept > an fpi_t argument. It bitwise ORs with the required FPI_PREPARED > flag. There are only three callers of free_prepared_contig_range(), all in the same function. It would seem like less effort to just modify free_prepared_contig_range() to take an fpi_t than introduce this wrapper.