[PATCH v2 04/13] mm: Make HPAGE_PXD_* macros even if !THP
Jason Gunthorpe
jgg at nvidia.com
Tue Jan 16 04:59:29 AEDT 2024
On Wed, Jan 03, 2024 at 05:14:14PM +0800, peterx at redhat.com wrote:
> From: Peter Xu <peterx at redhat.com>
>
> These macros can be helpful when we plan to merge hugetlb code into generic
> code. Move them out and define them even if !THP.
>
> We actually already defined HPAGE_PMD_NR for other reasons even if !THP.
> Reorganize these macros.
>
> Reviewed-by: Christoph Hellwig <hch at infradead.org>
> Signed-off-by: Peter Xu <peterx at redhat.com>
> ---
> include/linux/huge_mm.h | 17 ++++++-----------
> 1 file changed, 6 insertions(+), 11 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the Linuxppc-dev
mailing list