diff options
| author | 2026-09-13 14:30:31 +0800 | |
|---|---|---|
| committer | 2026-10-08 22:55:13 -0700 | |
| commit | 9b20271285898e993c6a540aae6291af755da05a (patch) | |
| tree | d7ba2685e27c777ab76d51ec62d68d9ae1cb64a6 /scripts/Makefile.thinlto | |
| parent | kselftest: mm: remove exclusion of building soft-dirty test in arm64 (diff) | |
mm: zswap: return -ENOENT when the swap device is gone
zswap_writeback_entry() returns -EEXIST when get_swap_device() finds no
device. -EEXIST is the shrinker's "page already in swap cache" signal,
which makes zswap_shrinker_scan() stop shrinking entirely. A NULL
get_swap_device() instead means the device is being swapped off, so the
entry is simply stale.
Return -ENOENT so the shrinker skips the stale entry and keeps
scanning. It affects all swap devices.
Link: https://lore.kernel.org/20260913063031.1689420-1-hebaoquan@kylinos.cn
Signed-off-by: Baoquan He <hebaoquan@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Chris Li <chrisl@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kairui Song <kasong@tencent.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
