Re: [PATCH v3 04/10] mm: Rename memfd_luo to shmem_luo

From: Pratyush Yadav

Date: Wed Nov 04 2026 - 09:30:10 EST


On Tue, Nov 03 2026, David Matlack wrote:

> Rename the memfd Live Update file handler from memfd_luo to shmem_luo,
> including the source file, its KHO ABI header, its documentation and its
> Kconfig option (CONFIG_LIVEUPDATE_MEMFD to CONFIG_LIVEUPDATE_SHMEM).
>
> The handler preserves shmem files. Today those are memfds, but following
> commits extend it to other files on tmpfs mounts, for which the memfd
> name is confusing. Preserving memfds created with MFD_HUGETLB, which are
> hugetlbfs files, will need a separate handler, so naming the handler
> after the filesystem that backs the files also avoids having to rename
> it again then.
>
> Don't change the compatible string of the handler, "memfd-v2". It is
> matched against the preserved state from the previous kernel, so
> changing it would break live updates from kernels that use the old
> name. The serialized format doesn't change either.
>
> Also clarify in the documentation that memfd means a memfd created
> without MFD_HUGETLB, and name the ABI documentation after the handler.
>
> No functional change intended.
>
[...]
> diff --git a/kernel/liveupdate/Kconfig b/kernel/liveupdate/Kconfig
> index f50daee8eff0..9a1c49e2e0c4 100644
> --- a/kernel/liveupdate/Kconfig
> +++ b/kernel/liveupdate/Kconfig
> @@ -69,7 +69,7 @@ config LIVEUPDATE
>
> If unsure, say N.
>
> -config LIVEUPDATE_MEMFD
> +config LIVEUPDATE_SHMEM

Update the description too?

LGTM otherwise.

Acked-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>

> bool "Live update support for memfd"
> depends on LIVEUPDATE
> depends on MEMFD_CREATE
[...]

--
Regards,
Pratyush Yadav