Re: [PATCH RFC 04/13] mm/x86: Change pXd_huge() behavior to exclude swap entries

2024-03-07 Thread Jason Gunthorpe
On Wed, Mar 06, 2024 at 06:41:38PM +0800, pet...@redhat.com wrote: > From: Peter Xu > > This patch partly reverts below commits: > > 3a194f3f8ad0 ("mm/hugetlb: make pud_huge() and follow_huge_pud() aware of > non-present pud entry") > cbef8478bee5 ("mm/hugetlb: pmd_huge() returns true for

[PATCH RFC 04/13] mm/x86: Change pXd_huge() behavior to exclude swap entries

2024-03-06 Thread peterx
From: Peter Xu This patch partly reverts below commits: 3a194f3f8ad0 ("mm/hugetlb: make pud_huge() and follow_huge_pud() aware of non-present pud entry") cbef8478bee5 ("mm/hugetlb: pmd_huge() returns true for non-present hugepage") Right now, pXd_huge() definition across kernel is unclear. We