Re: [PATCH v7 01/16] mm/mglru: report evictable sizes per type

From: Baolin Wang

Date: Fri Nov 13 2026 - 06:58:48 EST




On 11/12/26 7:25 AM, Barry Song (Xiaomi) wrote:
From: Kairui Song <kasong@xxxxxxxxxxx>

Change lruvec_evictable_size() to return the number of evictable
anonymous and file pages separately instead of a single total, so
that callers can weigh the two types independently.

Update lruvec_is_sizable() and get_nr_to_scan() accordingly; the
summed totals are unchanged, so there is no functional change.

Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>
Signed-off-by: Barry Song (Xiaomi) <baohua@xxxxxxxxxx>
Reviewed-by: Kunwu Chan <kunwu.chan@xxxxxxxxx>
---

LGTM.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>