Files
linux/arch/xtensa/include/asm
Baolin Wang a62ca3f40f mm: change to return bool for ptep_test_and_clear_young()
Patch series "change young flag check functions to return bool", v2.

This is a cleanup patchset to change all young flag check functions to
return bool, as discussed with David in the previous thread[1].  Since
callers only care about whether the young flag was set, returning bool
makes the intention clearer.  No functional changes intended.


This patch (of 6):

Callers use ptep_test_and_clear_young() to clear the young flag and check
whether it was set.  Change the return type to bool to make the intention
clearer.

Link: https://lkml.kernel.org/r/cover.1774075004.git.baolin.wang@linux.alibaba.com
Link: https://lkml.kernel.org/r/57e70efa9703d43959aa645246ea3cbdba14fa17.1774075004.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-05 13:53:35 -07:00
..
2023-06-12 19:48:57 -07:00
2022-02-25 09:36:06 +01:00
2022-05-01 19:51:22 -07:00
2019-11-26 11:33:38 -08:00
2014-01-15 00:28:11 +04:00
2021-12-11 23:31:51 +01:00
2014-01-14 10:19:58 -08:00
2023-08-28 18:25:23 -07:00
2014-01-14 10:19:58 -08:00
2014-01-15 00:27:03 +04:00
2019-09-01 13:11:57 -07:00
2023-08-28 18:25:23 -07:00
2023-06-12 19:48:57 -07:00
2022-02-25 09:36:06 +01:00
2020-02-04 21:57:02 -08:00