fs: add i_user_ns() helper
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 3 Dec 2021 11:17:06 +0000 (12:17 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 5 Dec 2021 09:28:57 +0000 (10:28 +0100)
commita1ec9040a2a9122605ac26e5725c6de019184419
tree0e5a9a613d1dd7168651abedee6cb98eb50b6d79
parent209188ce75d0d357c292f6bb81d712acdd4e7db7
fs: add i_user_ns() helper

Since we'll be passing the filesystem's idmapping in even more places in
the following patches and we do already dereference struct inode to get
to the filesystem's idmapping multiple times add a tiny helper.

Link: https://lore.kernel.org/r/20211123114227.3124056-10-brauner@kernel.org
Link: https://lore.kernel.org/r/20211130121032.3753852-10-brauner@kernel.org
Link: https://lore.kernel.org/r/20211203111707.3901969-10-brauner@kernel.org
Cc: Seth Forshee <sforshee@digitalocean.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
CC: linux-fsdevel@vger.kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Seth Forshee <sforshee@digitalocean.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
include/linux/fs.h