Extend some inode methods with an additional user namespace argument. A
filesystem that is aware of idmapped mounts will receive the user
namespace the mount has been marked with. This can be used for
additional permission checking and also to enable filesystems to
translate between uids and gids if they need to. We have implemented all
relevant helpers in earlier patches.
As requested we simply extend the exisiting inode method instead of
introducing new ones. This is a little more code churn but it's mostly
mechanical and doesnt't leave us with additional inode methods.
Cc: Christoph Hellwig <email@example.com>
Cc: David Howells <firstname.lastname@example.org>
Cc: Al Viro <email@example.com>
Reviewed-by: Christoph Hellwig <firstname.lastname@example.org>
Signed-off-by: Christian Brauner <email@example.com>