fs: add helper to use mount option as path or fd
authorChristian Brauner <brauner@kernel.org>
Mon, 14 Oct 2024 09:40:56 +0000 (11:40 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 14 Oct 2024 14:31:15 +0000 (16:31 +0200)
commitc2f8fde8689272a55b9319b69dfe7e8f0e2e9dfe
tree7febbbcce74400887f7da55c3a8c37857ad037f3
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
fs: add helper to use mount option as path or fd

Allow filesystems to use a mount option either as a
file or path.

Link: https://lore.kernel.org/r/20241014-work-overlayfs-v3-1-32b3fed1286e@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fs_parser.c
include/linux/fs_parser.h