Skip to contentSkip to conversation

mm-remove-read_only_thp_for_fs-kconfig-option.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 21

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: remove READ_ONLY_THP_FOR_FS Kconfig option
has been removed from the -mm tree. Its filename was
mm-remove-read_only_thp_for_fs-kconfig-option.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Zi Yan <[email protected]>
Subject: mm: remove READ_ONLY_THP_FOR_FS Kconfig option
Date: Sun, 17 May 2026 09:54:07 -0400

After removing READ_ONLY_THP_FOR_FS check in file_thp_enabled(), khugepaged and MADV_COLLAPSE can run on FSes with PMD THP pagecache support even without READ_ONLY_THP_FOR_FS enabled. Remove the Kconfig first so that no one can use READ_ONLY_THP_FOR_FS as upcoming commits remove mapping->nr_thps, which its safe guard mechanism relies on.

---

 mm/Kconfig |   11 -----------
 1 file changed, 11 deletions(-)
mm/Kconfig renamed from mm/Kconfig~mm-remove-read_only_thp_for_fs-kconfig-option +0 -11
@@ -936,17 +936,6 @@ config THP_SWAP
 
 	  For selection by architectures with reasonable THP sizes.
 
-config READ_ONLY_THP_FOR_FS
-	bool "Read-only THP for filesystems (EXPERIMENTAL)"
-	depends on TRANSPARENT_HUGEPAGE
-
-	help
-	  Allow khugepaged to put read-only file-backed pages in THP.
-
-	  This is marked experimental because it is a new feature. Write
-	  support of file THPs will be developed in the next few release
-	  cycles.
-
 config NO_PAGE_MAPCOUNT
 	bool "No per-page mapcount (EXPERIMENTAL)"
 	help

_

Patches currently in -mm which might be from [email protected] are