Re: [PATCH v3 2/3] mm: move folio LRU code out of swap

From: Jianyue Wu

Date: Tue Jun 02 2026 - 09:48:06 EST


On Tue, Jun 2, 2026 at 7:28 PM Baoquan He <baoquan.he@xxxxxxxxx> wrote:
>
> Isn't the main action of this patch renaming mm/swap.c to
> mm/folio_lru.c? Why the subject still saying moving folio LRU code out
> of swap? I am a little confused?
Hello Baoquan,

You are right, this patch actually only renamed mm/swap.c to mm/folio_lru.c,
I'll update it, The swap-specific was moved out in the preceding
patch, forgetting
to update it when split patch.

>
> Sorry, I don't get what are 'these files' for most of which default
> values and initialization routines can be found in mm/swap.c or
> mm/swap_state.c. I tried to search some of them, they are not in
> mm/swap*. Could you double check if this sentence is still meaningful.
>
This sentence is outdated, I'll remove it, the sysctl defaults are
spread across many mm/*.c files.
I'll also fix the stale file header comment in folio_lru.c and check
other files.

Thanks,
Best regards,
Jianyue