fs: move mnt_idmap
authorChristian Brauner <brauner@kernel.org>
Fri, 13 Jan 2023 11:49:33 +0000 (12:49 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Thu, 19 Jan 2023 08:24:30 +0000 (09:24 +0100)
commit3707d84c13670bf09b4a9a4dc6733326d8344b31
treea9aff073688334783a6e3d17f4789b9c24b81c43
parent4d7ca4090184c153f8ccb1a68ca5cf136dac108b
fs: move mnt_idmap

Now that we converted everything to just rely on struct mnt_idmap move it all
into a separate file. This ensure that no code can poke around in struct
mnt_idmap without any dedicated helpers and makes it easier to extend it in the
future. Filesystems will now not be able to conflate mount and filesystem
idmappings as they are two distinct types and require distinct helpers that
cannot be used interchangeably. We are now also able to extend struct mnt_idmap
as we see fit.

Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
MAINTAINERS
fs/Makefile
fs/internal.h
fs/mnt_idmapping.c [new file with mode: 0644]
fs/namespace.c
include/linux/mnt_idmapping.h
include/linux/mount.h