OpenCloudOS-Kernel/arch
Naoya Horiguchi 3a194f3f8a mm/hugetlb: make pud_huge() and follow_huge_pud() aware of non-present pud entry
follow_pud_mask() does not support non-present pud entry now.  As long as
I tested on x86_64 server, follow_pud_mask() still simply returns
no_page_table() for non-present_pud_entry() due to pud_bad(), so no severe
user-visible effect should happen.  But generally we should call
follow_huge_pud() for non-present pud entry for 1GB hugetlb page.

Update pud_huge() and follow_huge_pud() to handle non-present pud entries.
The changes are similar to previous works for pud entries commit
e66f17ff71 ("mm/hugetlb: take page table lock in follow_huge_pmd()") and
commit cbef8478be ("mm/hugetlb: pmd_huge() returns true for non-present
hugepage").

Link: https://lkml.kernel.org/r/20220714042420.1847125-3-naoya.horiguchi@linux.dev
Signed-off-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: kernel test robot <lkp@intel.com>
Cc: Liu Shixin <liushixin2@huawei.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-08-08 18:06:43 -07:00
..
alpha Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
arc Updates to various subsystems which I help look after. lib, ocfs2, 2022-08-07 10:03:24 -07:00
arm Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
arm64 mm: hugetlb_vmemmap: delete hugetlb_optimize_vmemmap_enabled() 2022-08-08 18:06:42 -07:00
csky Updates to various subsystems which I help look after. lib, ocfs2, 2022-08-07 10:03:24 -07:00
hexagon Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
ia64 Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
loongarch - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
m68k Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
microblaze - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
mips TTY / Serial driver changes for 6.0-rc1 2022-08-08 11:31:40 -07:00
nios2 nios2: drop definition of PGD_ORDER 2022-07-17 17:14:43 -07:00
openrisc Updates to various subsystems which I help look after. lib, ocfs2, 2022-08-07 10:03:24 -07:00
parisc Updates to various subsystems which I help look after. lib, ocfs2, 2022-08-07 10:03:24 -07:00
powerpc Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
riscv Updates to various subsystems which I help look after. lib, ocfs2, 2022-08-07 10:03:24 -07:00
s390 Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
sh Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
sparc Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
um - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
x86 mm/hugetlb: make pud_huge() and follow_huge_pud() aware of non-present pud entry 2022-08-08 18:06:43 -07:00
xtensa - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
.gitignore
Kconfig asm-generic: updates for 6.0 2022-08-05 10:07:23 -07:00