]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: add path_mounted()
authorChristian Brauner <brauner@kernel.org>
Wed, 3 May 2023 11:18:39 +0000 (13:18 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 19 May 2023 02:30:07 +0000 (04:30 +0200)
commit78aa08a8cab6731ab8f8241a9eb0b5021a648dd6
tree688281ea7e38f8179ddabc48c20dcaa082b832e7
parentf1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6
fs: add path_mounted()

Add a small helper to check whether a path refers to the root of the
mount instead of open-coding this everywhere.

Reviewed-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
Message-Id: <20230202-fs-move-mount-replace-v4-1-98f3d80d7eaa@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c