]> git.ipfire.org Git - thirdparty/linux.git/commit
mnt_idmapping: remove nop check
authorChristian Brauner <brauner@kernel.org>
Wed, 22 Nov 2023 12:44:38 +0000 (13:44 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 28 Nov 2023 13:08:47 +0000 (14:08 +0100)
commit90fbd8b175ee75ee3d37d748b92bc317660b586d
treec98ed6bdbad4e3a9a3bd5bc293370be4642d1f77
parente65a29f0235a438ece414d2d99bbf0d31aa97d04
mnt_idmapping: remove nop check

All mounts default to nop_mnt_idmap and we don't allow creating idmapped
mounts that reuse the idmapping of the filesystem. So unless someone
passes a non-superblock namespace to these helpers this check will
always be false. Remove it and replace it with a simple check for
nop_mnt_idmap.

Link: https://lore.kernel.org/r/20231122-vfs-mnt_idmap-v1-2-dae4abdde5bd@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/mnt_idmapping.c