]> 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)
commitd22361171d3e3631f9ef20893f93f27192f8458a
tree0e5a9a613d1dd7168651abedee6cb98eb50b6d79
parent53a44901007b5993a859c7cbfd202bc4f9fbd0c1
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