From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout12.his.huawei.com (canpmsgout12.his.huawei.com [113.46.200.227]) (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 2EBE23C3BF7 for ; Fri, 17 Jul 2026 07:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.227 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784272632; cv=none; b=D5+V69VzqxNJbswTDJY6sH2wACvwG3AIDCD2Snt3KoNbdmSZHkdxA22m5qFXjRzKnIcnmL/+yXoPcyjVl4D3JTwBu3eUzHlXsr32zuLWPmermeKMElxX1iEwCTaPhi9Vj5T7f4m5QkZY+XUVOt2/qLawvODKnK/5GI0c57q0ALw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784272632; c=relaxed/simple; bh=lu3/IDZB2WbiM6fLakRb26+wmc2JDHPLze3eiVlk+w8=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=kLrDzcQD+NlMYSOPcRfose3J1DfB2vk2OdtZ8jUF7P1uiyrxiEVF+EyT2rQ4XEhINodbNV2hSPybOASLP9KQFS9YItLHljfw3A3FxIChoICxIwhGPFT20RbOCwA9XmnQwKGmm7CWJgrqfaVy5xgSqji10ZloBqX3LyhJzBPDxs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=Nbz7XIQ3; arc=none smtp.client-ip=113.46.200.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="Nbz7XIQ3" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=O35vjd1SR6ZVSLxnkW6dqYrRQCrgj2fUSxcFsujseus=; b=Nbz7XIQ3R27VwE2oO9uRkwO2uffyJWZ/WUgazsKuyIc3S2aASmVIs0ZgRxNSMcQ6EZi96xCM9 Vi3Rd4VEfiJopsgwkRlBJpC9GUw8EXxlJKZnu3Tcc1mSHqGAExuQDtkN6adOSJx6TpP+XjQLHbs JoXbTyXSBkButzes9y3y/j4= Received: from mail.maildlp.com (unknown [172.19.163.15]) by canpmsgout12.his.huawei.com (SkyGuard) with ESMTPS id 4h1gw26NXtznTVv; Fri, 17 Jul 2026 15:07:30 +0800 (CST) Received: from dggemv706-chm.china.huawei.com (unknown [10.3.19.33]) by mail.maildlp.com (Postfix) with ESMTPS id 0814240586; Fri, 17 Jul 2026 15:17:05 +0800 (CST) Received: from kwepemq500010.china.huawei.com (7.202.194.235) by dggemv706-chm.china.huawei.com (10.3.19.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 17 Jul 2026 15:17:04 +0800 Received: from [10.173.124.160] (10.173.124.160) by kwepemq500010.china.huawei.com (7.202.194.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 17 Jul 2026 15:17:03 +0800 Subject: Re: [PATCH v6 1/5] mm/page_alloc: introduce __free_prepared_contig_range() with fpi_t To: Jiaqi Yan CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20260705180714.3708947-1-jiaqiyan@google.com> <20260705180714.3708947-2-jiaqiyan@google.com> From: Miaohe Lin Message-ID: Date: Fri, 17 Jul 2026 15:17:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20260705180714.3708947-2-jiaqiyan@google.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemq500010.china.huawei.com (7.202.194.235) On 2026/7/6 2:07, Jiaqi Yan wrote: > A future commit introducing free_has_hwpoison() to be called within > __free_pages_prepare() will need to pass specific fpi_t flags when > freeing a contiguous range of pages. Currently, > free_prepared_contig_range() hardcodes the FPI_PREPARED flag and > does not accept any caller-provided flags. > > Rename the core logic to __free_prepared_contig_range() to accept > an fpi_t argument. It bitwise ORs with the required FPI_PREPARED > flag. > > This is a preparatory commit with no functional changes. > > Signed-off-by: Jiaqi Yan > --- > mm/page_alloc.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > Reviewed-by: Miaohe Lin Thanks. .