]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/shmem: remove unnecessary restrain unmask of swap gfp flags
authorKairui Song <kasong@tencent.com>
Wed, 11 Feb 2026 14:33:23 +0000 (22:33 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 5 Apr 2026 20:53:01 +0000 (13:53 -0700)
commit7498bddab9455b3750b655c27cdcc0a2c48af318
tree0da4cdbf4750f05c764747f57d9ce0d24d3e8fb3
parentc5c48345135ff04e039377020df23294d59aa59a
mm/shmem: remove unnecessary restrain unmask of swap gfp flags

The comment makes it look like copy-paste leftovers from
shmem_replace_folio.  The first try of the swap doesn't always have a
limited zone.

So don't drop the restraint, which should make the GFP more accurate.

Link: https://lkml.kernel.org/r/20260211-shmem-swap-gfp-v1-1-e9781099a861@tencent.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c