From: Jane Chu <jane.chu@oracle.com>
+commit 14967a9c7d247841b0312c48dcf8cd29e55a4cc8 upstream.
+
commit 59d9094df3d79 ("mm: hugetlb: independent PMD page table shared
count") introduced ->pt_share_count dedicated to hugetlb PMD share count
tracking, but omitted fixing copy_hugetlb_page_range(), leaving the
From: David Hildenbrand (Red Hat) <david@kernel.org>
-Commit ca1a47cd3f5f4c46ca188b1c9a27af87d1ab2216 upstream.
+commit ca1a47cd3f5f4c46ca188b1c9a27af87d1ab2216 upstream.
Patch series "mm/hugetlb: fixes for PMD table sharing (incl. using
mmu_gather)", v3.
From: David Hildenbrand (Red Hat) <david@kernel.org>
+commit 3937027caecb4f8251e82dd857ba1d749bb5a428 upstream.
+
Ever since we stopped using the page count to detect shared PMD page
tables, these comments are outdated.
From: Miaohe Lin <linmiaohe@huawei.com>
+commit 3aa4ed8040e1535d95c03cef8b52cf11bf0d8546 upstream.
+
If the pagetables are shared, we shouldn't copy or take references. Since
src could have unshared and dst shares with another vma, huge_pte_none()
is thus used to determine whether dst_pte is shared. But this check isn't
From: David Hildenbrand (Red Hat) <david@kernel.org>
+commit a8682d500f691b6dfaa16ae1502d990aeb86e8be upstream.
+
PMD page table unsharing no longer touches the refcount of a PMD page
table. Also, it is not about dropping the refcount of a "PMD page" but
the "PMD page table".