Re: [RFC 1/3] mm: ptep_clear() page table helper

From: Pasha Tatashin
Date: Wed Nov 17 2021 - 11:44:41 EST


On Wed, Nov 17, 2021 at 3:52 AM Anshuman Khandual
<anshuman.khandual@xxxxxxx> wrote:
>
>
>
> On 11/17/21 3:30 AM, Pasha Tatashin wrote:
> > diff --git a/Documentation/vm/arch_pgtable_helpers.rst b/Documentation/vm/arch_pgtable_helpers.rst
> > index 552567d863b8..fbe06ec75370 100644
> > --- a/Documentation/vm/arch_pgtable_helpers.rst
> > +++ b/Documentation/vm/arch_pgtable_helpers.rst
> > @@ -66,9 +66,11 @@ PTE Page Table Helpers
> > +---------------------------+--------------------------------------------------+
> > | pte_mknotpresent | Invalidates a mapped PTE |
> > +---------------------------+--------------------------------------------------+
> > -| ptep_get_and_clear | Clears a PTE |
> > +| ptep_clear | Clears a PTE |
> > +---------------------------+--------------------------------------------------+
> > -| ptep_get_and_clear_full | Clears a PTE |
> > +| ptep_get_and_clear | Clears and returns PTE |
> > ++---------------------------+--------------------------------------------------+
> > +| ptep_get_and_clear_full | Clears and returns PTE (batched PTE unmap) |
> > +---------------------------+--------------------------------------------------+
> > | ptep_test_and_clear_young | Clears young from a PTE |
> > +---------------------------+--------------------------------------------------+
>
> Just curious. This does not have a corresponding change in mm/debug_vm_pgtable.c ?

You are right, I need to replace it in mm/debug_vm_pgtable.c as well.
I will do it in the next version.

Thanks,
Pasha