Re: [PATCH 3/4] mm, swap: cleanup swap entry allocation parameter

From: Baolin Wang

Date: Mon Oct 13 2025 - 23:12:38 EST




On 2025/10/7 04:02, Kairui Song wrote:
From: Kairui Song <kasong@xxxxxxxxxxx>

We no longer need this GFP parameter after commit 8578e0c00dcf ("mm, swap:
use the swap table for the swap cache and switch API"). Before that
commit the GFP parameter is already almost identical for all callers, so
nothing changed by that commit. Swap table just moved the GFP to lower
layer and make it more defined and changes depend on atomic or sleep
allocation.

Now this parameter is no longer used, just remove it. No behavior
change.

Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>
---

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