kernel/fs/proc/task_mmu.c
.. .. @@ -774,9 +774,7 @@ 774 774 page = device_private_entry_to_page(swpent); 775 775 } 776 776 if (page) { 777 - int mapcount = page_mapcount(page);778 -779 - if (mapcount >= 2)777 + if (page_mapcount(page) >= 2 || hugetlb_pmd_shared(pte))780 778 mss->shared_hugetlb += huge_page_size(hstate_vma(vma)); 781 779 else 782 780 mss->private_hugetlb += huge_page_size(hstate_vma(vma));