Re: [PATCH v1] mm: use ptep_get() instead of directly dereferencing pte_t*

From: Dev Jain
Date: Tue Mar 11 2025 - 02:03:18 EST




On 10/03/25 7:34 pm, Ryan Roberts wrote:
It is best practice for all pte accesses to go via the arch helpers, to
ensure non-torn values and to allow the arch to intervene where needed
(contpte for arm64 for example). While in this case it was probably safe
to directly dereference, let's tidy it up for consistency.

Signed-off-by: Ryan Roberts <ryan.roberts@xxxxxxx>

Reviewed-by: Dev Jain <dev.jain@xxxxxxx>