Re: [PATCH 3/6] mm: change to return bool for pmdp_test_and_clear_young()

From: Baolin Wang

Date: Thu Mar 19 2026 - 23:07:43 EST




On 3/19/26 7:31 PM, Lorenzo Stoakes (Oracle) wrote:
On Thu, Mar 19, 2026 at 11:24:02AM +0800, Baolin Wang wrote:
Callers use pmdp_test_and_clear_young() to clear the young flag and check
whether it was set for this PMD entry. Change the return type to bool to
make the intention clearer.

Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>

Some nits similar to before, otherwise LGTM so:

Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@xxxxxxxxxx>

Thanks. And all comments acked.