Thread (36 messages) 36 messages, 4 authors, 2024-02-22

Re: [PATCH v2 04/13] mm: Make HPAGE_PXD_* macros even if !THP

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2024-01-15 17:59:34
Also in: linux-arm-kernel, linux-mm, linux-riscv, lkml

On Wed, Jan 03, 2024 at 05:14:14PM +0800, peterx@redhat.com wrote:
From: Peter Xu <peterx@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@infradead.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 include/linux/huge_mm.h | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help