]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: s390: Remove ptep_zap_softleaf_entry()
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 2 Jun 2026 14:23:56 +0000 (16:23 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 2 Jun 2026 17:31:20 +0000 (19:31 +0200)
commitc1edda54a0f713412f5914f9c9080856694bddca
tree4090b9f0406c06dca14910feef76059ccce466fe
parent6ae67dcac742529210a23dac6c9a7de1acfb52a3
KVM: s390: Remove ptep_zap_softleaf_entry()

Migration entries do not need to be removed.

The swap subsystem has been (and still is being) heavily reworked. The
current implementation of ptep_zap_softleaf_entry() has been slowly
modified and is now wrong, since it unconditionally calls
swap_put_entries_direct() for both swap and migration entries.

Remove ptep_zap_softleaf_entry() altogether, merge the path for proper
swap entries directly in the only caller, and ignore migration entries.

Fixes: 200197908dc4 ("KVM: s390: Refactor and split some gmap helpers")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260602142356.169458-11-imbrenda@linux.ibm.com>
arch/s390/mm/gmap_helpers.c