--- zzzz-none-000/linux-5.4.213/mm/swapfile.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/mm/swapfile.c 2024-08-14 09:02:12.000000000 +0000 @@ -1891,6 +1891,7 @@ } dec_mm_counter(vma->vm_mm, MM_SWAPENTS); + inc_mm_counter(vma->vm_mm, MM_SWAPINS); inc_mm_counter(vma->vm_mm, MM_ANONPAGES); get_page(page); set_pte_at(vma->vm_mm, addr, pte,