]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde8ea4834dce8ca7b1b4bdc56e6a2fa22db2212d
tree0e5a9a613d1dd7168651abedee6cb98eb50b6d79
parent00e82b8258d4f9b981eca062b6505a357fa80cd1
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