Re: [PATCH 06/13] mm: pagewalk: Add 'depth' parameter to pte_hole
From: William Kucharski <hidden>
Date: 2019-02-20 11:36:03
Also in:
linux-mm, lkml
From: William Kucharski <hidden>
Date: 2019-02-20 11:36:03
Also in:
linux-mm, lkml
On Feb 15, 2019, at 10:02 AM, Steven Price [off-list ref] wrote: The pte_hole() callback is called at multiple levels of the page tables. Code dumping the kernel page tables needs to know what at what depth the missing entry is. Add this is an extra parameter to pte_hole(). When the depth isn't know (e.g. processing a vma) then -1 is passed. Note that depth starts at 0 for a PGD so that PUD/PMD/PTE retain their natural numbers as levels 2/3/4.
Nit: Could you add a comment noting this for anyone wondering how to calculate the level numbers in the future? Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel