Re: [PATCH 0/6] change young flag check functions to return bool

From: Baolin Wang

Date: Thu Mar 19 2026 - 23:21:51 EST




On 3/20/26 11:18 AM, Andrew Morton wrote:
On Thu, 19 Mar 2026 11:23:59 +0800 Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> wrote:

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.

One observation from Sashiko. Minorish, worth addressing:
https://sashiko.dev/#/patchset/cover.1773890510.git.baolin.wang%40linux.alibaba.com

Yes, good catch. Will fix in next version. Thanks.