diff options
| author | Baoquan He <hebaoquan@kylinos.cn> | 2026-09-13 14:30:31 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-08 22:55:13 -0700 |
| commit | 9b20271285898e993c6a540aae6291af755da05a (patch) | |
| tree | d7ba2685e27c777ab76d51ec62d68d9ae1cb64a6 /include/linux/timerqueue.h | |
| parent | fcf93a839f8047dd0468c0205f96e881ff8c67c2 (diff) | |
| download | linux-9b20271285898e993c6a540aae6291af755da05a.tar.gz linux-9b20271285898e993c6a540aae6291af755da05a.zip | |
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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
