--- zzzz-none-000/linux-4.4.271/mm/swapfile.c 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/mm/swapfile.c 2023-12-20 10:37:39.000000000 +0000 @@ -1158,6 +1158,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,