Re: [PATCH] mm: shmem/tmpfs hugepage defaults config choice

From: Baolin Wang

Date: Thu Oct 23 2025 - 21:41:04 EST




On 2025/10/24 02:12, Dmitry Ilvokhin wrote:
Allow to override defaults for shemem and tmpfs at config time. This is
consistent with how transparent hugepages can be configured.

Same results can be achieved with the existing
'transparent_hugepage_shmem' and 'transparent_hugepage_tmpfs' settings
in the kernel command line, but it is more convenient to define basic
settings at config time instead of changing kernel command line later.

Defaults for shmem and tmpfs were not changed. They are remained the
same as before: 'never' for both cases. Options 'deny' and 'force' are
omitted intentionally since these are special values and supposed to be
used for emergencies or testing and are not expected to be permanent
ones.

Make sense to me.

Signed-off-by: Dmitry Ilvokhin <d@xxxxxxxxxxxx>

With addressing Shakeel's comments:
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>