diff options
author | Amir Goldstein <amir73il@gmail.com> | 2023-10-12 15:24:17 +0300 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2023-10-12 18:53:36 +0300 |
commit | e001d1447cd4585d7f23a44ff668ba2bc624badb (patch) | |
tree | cb769c6d46a349991a42c05433f5fa63470ae0ce /include | |
parent | 94f6f0550c625fab1f373bb86a6669b45e9748b3 (diff) | |
download | linux-e001d1447cd4585d7f23a44ff668ba2bc624badb.tar.xz |
fs: factor out vfs_parse_monolithic_sep() helper
Factor out vfs_parse_monolithic_sep() from generic_parse_monolithic(),
so filesystems could use it with a custom option separator callback.
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs_context.h b/include/linux/fs_context.h index 96332db693d5..c13e99cbbf81 100644 --- a/include/linux/fs_context.h +++ b/include/linux/fs_context.h @@ -136,6 +136,8 @@ extern struct fs_context *vfs_dup_fs_context(struct fs_context *fc); extern int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param); extern int vfs_parse_fs_string(struct fs_context *fc, const char *key, const char *value, size_t v_size); +int vfs_parse_monolithic_sep(struct fs_context *fc, void *data, + char *(*sep)(char **)); extern int generic_parse_monolithic(struct fs_context *fc, void *data); extern int vfs_get_tree(struct fs_context *fc); extern void put_fs_context(struct fs_context *fc); |