shmem: support idmapped mounts for tmpfs
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 20 Jan 2023 09:43:46 +0000 (10:43 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Fri, 20 Jan 2023 17:46:56 +0000 (18:46 +0100)
commit7a80e5b8c6fa7d0ae6624bd6aedc4a6a1cfc62fa
treed47a4b0a14834cf5a89a17c13e5199b46a7db2c3
parent3707d84c13670bf09b4a9a4dc6733326d8344b31
shmem: support idmapped mounts for tmpfs

This patch enables idmapped mounts for tmpfs when CONFIG_SHMEM is defined.
Since all dedicated helpers for this functionality exist, in this
patch we just pass down the idmap argument from the VFS methods to the
relevant helpers.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Tested-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
mm/shmem.c