Skip to content

kpageflags: fix wrong KPF_THP on non-pmd-mappable compound pages

ran xiaokai linux-fsdevel linux-mm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: Constify folio_order()/folio_test_pmd_mappable()include/linux/huge_mm.h include/linux/mm.h+2 -23 replies
2/2kpageflags: fix wrong KPF_THP on non-pmd-mappable compound pagesfs/proc/page.c+4 -1021 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] kpageflags: fix wrong KPF_THP on non-pmd-mappable compound pages

From: Ran Xiaokai <[email protected]>

KPF_THP means that the folio is a 2M pmd mappable compound page, meanwhile KPF_COMPOUND_HEAD and KPF_COMPOUND_TAIL are used to indicate common compound pages, so after commit 19eaf44954df ("mm: thp: support allocation of anonymous multi-size THP"), the folio_test_large() in stable_page_flags() is insufficient and should be replaced with folio_test_pmd_mappable().

Patch1 is a preparation to solve the compile time warning introduced by patch2.

Patch2 replaces folio_test_large() with folio_test_pmd_mappable() to indicate KPF_THP for only pmd mappable THP.

Ran Xiaokai (2):
mm: Constify folio_order()/folio_test_pmd_mappable()
kpageflags: fix wrong KPF_THP on non-pmd-mappable compound pages

 fs/proc/page.c          | 14 ++++----------
 include/linux/huge_mm.h |  2 +-
 include/linux/mm.h      |  2 +-
 3 files changed, 6 insertions(+), 12 deletions(-)
Signature · 1 line
2.15.2