Re: [PATCH] tmpfs: reset the memory policy on remount with mpol=default

From: David Hildenbrand

Date: Mon Nov 30 2026 - 07:21:17 EST


On Fri, 27 Nov 2026 15:00:15 -0800, Yifan Feng wrote:
> mpol_parse_str() returns a NULL policy for "default", and
> shmem_reconfigure() takes a NULL ctx->mpol to mean that no mpol option
> was given. So a remount with mpol=default succeeds but keeps the old
> policy:
>
> # mount -t tmpfs -o mpol=bind:1 none /mnt
> # mount -o remount,mpol=default /mnt
> # grep /mnt /proc/mounts
> none /mnt tmpfs rw,relatime,mpol=bind:1 0 0
>
> [...]

Applied, thanks!

tree: mm/core.git
branch: shmem-7.5.misc

Applied patches will appear soon in mm-next, followed by linux-next.

Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.

It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.

[1/1] tmpfs: reset the memory policy on remount with mpol=default
https://git.kernel.org/mm/core/c/cbd42552

--
Cheers,

David