]> git.ipfire.org Git - people/ms/linux.git/commit
fs: add mnt_allow_writers() and simplify mount_setattr_prepare()
authorChristian Brauner <brauner@kernel.org>
Thu, 3 Feb 2022 13:14:08 +0000 (14:14 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 14 Feb 2022 07:37:39 +0000 (08:37 +0100)
commita26f788b6e7a10d193c4cc6889818e4d625e9461
treec4fbe3e3f699fdbe95d2bba6a93ce775c58c15b5
parent538f4f022a4612f969d5324ee227403c9f8b1d72
fs: add mnt_allow_writers() and simplify mount_setattr_prepare()

Add a tiny helper that lets us simplify the control-flow and can be used
in the next patch to avoid adding another condition open-coded into
mount_setattr_prepare(). Instead we can add it into the new helper.

Link: https://lore.kernel.org/r/20220203131411.3093040-5-brauner@kernel.org
Cc: Seth Forshee <seth.forshee@digitalocean.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c