Skip to content

Commit e4df0f3

Browse files
x-y-zakpm00
authored andcommitted
mm: remove READ_ONLY_THP_FOR_FS Kconfig option
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. Link: https://lore.kernel.org/[email protected] Signed-off-by: Zi Yan <[email protected]> Reviewed-by: Lorenzo Stoakes (Oracle) <[email protected]> Acked-by: David Hildenbrand (Arm) <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Reviewed-by: Nico Pache <[email protected]> Reviewed-by: Lance Yang <[email protected]> Cc: Al Viro <[email protected]> Cc: Barry Song <[email protected]> Cc: Chris Mason <[email protected]> Cc: Christian Brauner <[email protected]> Cc: David Sterba <[email protected]> Cc: Dev Jain <[email protected]> Cc: Jan Kara <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Nico Pache <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Song Liu <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent efc36a7 commit e4df0f3

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎mm/Kconfig‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -936,17 +936,6 @@ config THP_SWAP
936936

937937
For selection by architectures with reasonable THP sizes.
938938

939-
config READ_ONLY_THP_FOR_FS
940-
bool "Read-only THP for filesystems (EXPERIMENTAL)"
941-
depends on TRANSPARENT_HUGEPAGE
942-
943-
help
944-
Allow khugepaged to put read-only file-backed pages in THP.
945-
946-
This is marked experimental because it is a new feature. Write
947-
support of file THPs will be developed in the next few release
948-
cycles.
949-
950939
config NO_PAGE_MAPCOUNT
951940
bool "No per-page mapcount (EXPERIMENTAL)"
952941
help

0 commit comments

Comments
 (0)