Re: [PATCH] mm: Fix PTE_AF handling in fault path on architectures with HW AF support

From: Alistair Popple
Date: Tue Jul 09 2024 - 21:06:52 EST



Matthew Wilcox <willy@xxxxxxxxxxxxx> writes:

> On Tue, Jul 09, 2024 at 05:09:42PM -0700, Ram Tummala wrote:
>> Commit 3bd786f76de2 ("mm: convert do_set_pte() to set_pte_range()")
>> replaced do_set_pte() with set_pte_range() and that introduced a regression
>> in the following faulting path of non-anonymous vmas on CPUs with HW AF
>
> At no point in this do you say what "AF" stands for.

It stands for "Access Flag", but that is specific to ARM64. As the fix
is in generic architecture independent code it would be better to use
that terminology (ie. old/young).