--- zzzz-none-000/linux-4.4.60/mm/swapfile.c 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-1750e-727/linux-4.4.60/mm/swapfile.c 2021-02-04 17:41:59.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,