[PATCH 2/6] mm: change to return bool for ptep_clear_flush_young()/clear_flush_young_ptes()
Ritesh Harjani (IBM)
ritesh.list at gmail.com
Sat Mar 21 16:18:41 AEDT 2026
Baolin Wang <baolin.wang at linux.alibaba.com> writes:
> The ptep_clear_flush_young() and clear_flush_young_ptes() are used to clear
> the young flag and flush the TLB, returning whether the young flag was set.
> Change the return type to bool to make the intention clearer.
>
> Signed-off-by: Baolin Wang <baolin.wang at linux.alibaba.com>
> ---
> arch/arm64/include/asm/pgtable.h | 15 +++++++--------
> arch/arm64/mm/contpte.c | 4 ++--
> arch/parisc/include/asm/pgtable.h | 2 +-
> arch/parisc/kernel/cache.c | 8 ++++----
> arch/powerpc/include/asm/nohash/64/pgtable.h | 2 +-
> arch/riscv/include/asm/pgtable.h | 4 ++--
> arch/s390/include/asm/pgtable.h | 4 ++--
> arch/x86/include/asm/pgtable.h | 4 ++--
> arch/x86/mm/pgtable.c | 4 ++--
> include/linux/pgtable.h | 8 ++++----
> mm/pgtable-generic.c | 7 ++++---
> 11 files changed, 31 insertions(+), 31 deletions(-)
LGTM. Please feel free to add:
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list at gmail.com>
More information about the Linuxppc-dev
mailing list