Re: [PATCH v1 01/10] mm: remove READ_ONLY_THP_FOR_FS Kconfig option

David Hildenbrand (Arm)
2026-03-27T13:33:32Z

On 3/27/26 02:42, Zi Yan wrote:
> No one will be able to use it, so the related code can be removed in the
> coming commits.
>
> Signed-off-by: Zi Yan <ziy@nvidia.com>
> ---
> mm/Kconfig | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index bd283958d675..408fc7b82233 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -937,17 +937,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

Isn't that usually what we do at the very end when we converted all the
code?

--
Cheers,

David