Re: [PATCH v3 0/6] mm/mglru: clean up folio counters and flag usage

From: Andrew Morton

Date: Fri Aug 28 2026 - 19:19:50 EST


On Wed, 26 Aug 2026 01:53:33 +0800 Kairui Song via B4 Relay <devnull+kasong.tencent.com@xxxxxxxxxx> wrote:

> This is a cleanup series separated out from the MGLRU-FG series [1]. As
> that series is getting too long in following updates, seperate out the
> clean up part for easier review and merge.
>
> No feature change is intended, except one bugfix. It mostly replaces
> the open-coded bit operations scattered throughout the MGLRU code with
> new helpers, with proper kdocs, sanity debug checks, and hardens a few
> MGLRU functions.
>
> A subtle generation counter leak is also found during the refactoring
> and the fix is included.
>
> Also collected review feedbacks on the cleanup part from the posted
> series.

Thanks, I queued this for testing and further review.


I included a few notes-to-self:

- Unaddressed review comments:
https://lore.kernel.org/fbb40ab7-6942-4983-9621-ab8d5d50474f@xxxxxxxxxxxxxxxxx
https://lore.kernel.org/20260828052949.52874-1-lianux.mm@xxxxxxxxx

- [6/6] is pending review