Thread (40 messages) 40 messages, 4 authors, 24d ago

Re: [PATCH RFC v3 12/21] mm/pgtable: redefine PGTABLE_LEVEL enum with ascend order from PGD

flat view

From: "David Hildenbrand (Arm)" <david@kernel.org>
Date: 2026-09-10 11:05:34
Also in: kvm-riscv, linux-arch, linux-mips, linux-mm, linux-riscv, lkml, loongarch

On 9/2/26 13:56, Yeoreum Yun wrote:
The PGTABLE_LEVEL enum values appear to be ordered in the opposite direction
from their intended usage.

Intuitively, higher page table levels should have smaller enum values,
but PTE is currently assigned 0.

For consistency and cleanup, reverse the enum value ordering.

Since there is no current user relies on these numbers to be ascending from
PTE->PGD, so it can be changed to be ascending from PGD->PTE, in the
direction of the page table walk.

Signed-off-by: Yeoreum Yun <redacted>
---
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

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