From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6602843E9CD for ; Mon, 11 May 2026 18:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778523466; cv=none; b=LjacBLN2RK3TMPE7upoGIZv6d1IftoQwpgXY5v6/pYHQF/Zp5a6alQyza8JEHjlcSg0Pd473IbCsWIZMFpq0tjxctgwDRosywCKMFhfe1wJ/TAC4pWT+Ytn0MtbNsH7qOssBw8eUOdfcJ0BUXQtRgCXaU6uGvB3oLFOQsLWhfI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778523466; c=relaxed/simple; bh=N8z01zQnY5RSgiyrql55n+yMYC2DmI20ElaLua99WNk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DfIdorkSXd0r5q8lHGFy9RtxRzu0wRKzmuBEpRoHw4z1AcntbmXcaHlQCkBN2m4jRlFYPFzJYJSONqvha4YI5WpZA/wUNifHMTZzpMCeClAn6y/J4LV1CV8WAor+ehKQMfeJyY5j12yy9hHxFLAxC1wyTEogXyV8NBtowsHHyus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Wa4DQ1gx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Wa4DQ1gx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CE1DC2BCC9; Mon, 11 May 2026 18:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778523466; bh=N8z01zQnY5RSgiyrql55n+yMYC2DmI20ElaLua99WNk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Wa4DQ1gxnpsUnpQs73yDxj3xAm1Hf1la7aC9Oz0Cs8iKEY77k6/tD+XoKyTGd6bUL NLL2RF3t18OMA2HPU5oS54u9tXlzeePSVlsZ1rohnPAtbQPGKtkR2D1WhZyY14LriF J/O4Ll86+kca3WAqiWNO479TTRNG4uI8ytQjsr/Y5qIk1gka8sE8TkQFbR5idefFmf DhZG0P+mp03pTHjbkUZe0R0FKDp+lEI0uNWjI13LR+vOmrPtrotpC/3mm8WofpDTCp 1E2evNtJ3xfZULFNilTzkn0y+Blzm6ulYRx6E9AwcuNXmTF8n9vqi5o3mWvL/4KB7t ewJnFUL0OAFaA== Message-ID: <5b2efe47-bce9-4786-9088-a727e9d193c8@kernel.org> Date: Mon, 11 May 2026 20:17:39 +0200 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 v2 10/22] mm: introduce freetype_t Content-Language: en-US To: Brendan Jackman , Borislav Petkov , Dave Hansen , Peter Zijlstra , Andrew Morton , David Hildenbrand , Wei Xu , Johannes Weiner , Zi Yan , Lorenzo Stoakes Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org, rppt@kernel.org, Sumit Garg , derkling@google.com, reijiw@google.com, Will Deacon , rientjes@google.com, patrick.roy@linux.dev, "Itazuri, Takahiro" , Andy Lutomirski , David Kaplan , Thomas Gleixner , Yosry Ahmed References: <20260320-page_alloc-unmapped-v2-0-28bf1bd54f41@google.com> <20260320-page_alloc-unmapped-v2-10-28bf1bd54f41@google.com> From: "Vlastimil Babka (SUSE)" In-Reply-To: <20260320-page_alloc-unmapped-v2-10-28bf1bd54f41@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/20/26 19:23, Brendan Jackman wrote: > +/** > + * get_pfnblock_migratetype - Return the freetype of a pageblock Also just noticed the wrong name here > + * @page: The page within the block of interest > + * @pfn: The target page frame number > + * > + * Return: The freetype of the pageblock > + */ > +__always_inline freetype_t > +get_pfnblock_freetype(const struct page *page, unsigned long pfn) > +{ > + return __get_pfnblock_freetype(page, pfn, 0); > +}