Re: [PATCH v5 01/14] docs: tmpfs: remove implementation detail reference
From: Dev Jain
Date: Tue Jun 02 2026 - 06:36:55 EST
On 29/05/26 8:25 pm, Luiz Capitulino wrote:
> The tmpfs.rst doc references the has_transparent_hugepage() helper, which
> is an implementation detail in the kernel and not relevant for users
> wishing to properly configure THP support for tmpfs. Remove it.
>
> Acked-by: David Hildenbrand (Red Hat) <david@xxxxxxxxxx>
> Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>
> Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
> Signed-off-by: Luiz Capitulino <luizcap@xxxxxxxxxx>
> ---
Reviewed-by: Dev Jain <dev.jain@xxxxxxx>
> Documentation/filesystems/tmpfs.rst | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesystems/tmpfs.rst
> index d677e0428c3f..46fc986c3388 100644
> --- a/Documentation/filesystems/tmpfs.rst
> +++ b/Documentation/filesystems/tmpfs.rst
> @@ -109,9 +109,8 @@ noswap Disables swap. Remounts must respect the original settings.
> ====== ===========================================================
>
> tmpfs also supports Transparent Huge Pages which requires a kernel
> -configured with CONFIG_TRANSPARENT_HUGEPAGE and with huge supported for
> -your system (has_transparent_hugepage(), which is architecture specific).
> -The mount options for this are:
> +configured with CONFIG_TRANSPARENT_HUGEPAGE and with huge pages
> +supported for your system. The mount options for this are:
>
> ================ ==============================================================
> huge=never Do not allocate huge pages. This is the default.