Re: [RFC PATCH 05/12] fs/proc/task_mmu: refactor pagemap_pmd_range()

Gregory Price
2025-10-24T20:37:22Z

On Fri, Oct 24, 2025 at 09:15:59PM +0100, Lorenzo Stoakes wrote:
> On Fri, Oct 24, 2025 at 03:12:08PM -0400, Gregory Price wrote:
>
> So maybe actually that isn't too bad of an idea...
>
> Could also be
>
> nonpresent_or_swap_t but that's kinda icky...

clearly we need:

union {
swp_entry_t swap;
nonpresent_entry_t np;
pony_entry_t pony;
plum_emtry_t beer;
} leaf_entry_t;

with

leaf_type whats_that_pte(leaf_entry_t);

with 20 more new functions about how to manage leaf_entries ;]

no not seriously, please have a good weekend!

and thanks again for doing this!
~Gregory