Re: [PATCH 1/2] mm/mincore, swap: consolidate swap cache checking for mincore
From: Nhat Pham
Date: Mon Aug 11 2025 - 15:12:13 EST
On Mon, Aug 11, 2025 at 10:21 AM Kairui Song <ryncsn@xxxxxxxxx> wrote:
>
> From: Kairui Song <kasong@xxxxxxxxxxx>
>
> The filemap_get_incore_folio (previously find_get_incore_page) helper
> was introduced by commit 61ef18655704 ("mm: factor find_get_incore_page
> out of mincore_page") to be used by later commit f5df8635c5a3 ("mm: use
> find_get_incore_page in memcontrol"), so memory cgroup charge move code
> can be simplified.
>
> But commit 6b611388b626 ("memcg-v1: remove charge move code") removed
> that user completely, it's only used by mincore now.
>
> So this commit basically reverts commit 61ef18655704 ("mm: factor
> find_get_incore_page out of mincore_page"). Move it back to mincore side
> to simplify the code.
>
> Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>
LGTM.
Acked-by: Nhat Pham <nphamcs@xxxxxxxxx>