From 65a6f1e52a2a5f7ca403134174409115ec674e79 Mon Sep 17 00:00:00 2001 From: Thomas Turner Date: Tue, 7 Oct 2025 20:53:29 +0100 Subject: [PATCH] fuse: backport virtiofs to use fs_parameter_spec We are missing this commit, which is difficult to apply right now. Author: Al Viro Date: Sat Sep 7 07:23:15 2019 -0400 fs_parse: fold fs_parameter_desc/fs_parameter_spec The former contains nothing but a pointer to an array of the latter... Signed-off-by: Al Viro Change-Id: Ie7b01f06eaf8211bdcf00f3d3a0c9202552d740d --- fs/fuse/virtio_fs.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 88299b00cd2e..f5830d07342f 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -86,11 +86,15 @@ enum { OPT_DAX, }; -static const struct fs_parameter_spec virtio_fs_parameters[] = { +static const struct fs_parameter_spec virtio_param_specs[] = { fsparam_flag("dax", OPT_DAX), {} }; +static const struct fs_parameter_description virtio_fs_parameters = { + .specs = virtio_param_specs, +}; + static int virtio_fs_parse_param(struct fs_context *fc, struct fs_parameter *param) { @@ -98,7 +102,7 @@ static int virtio_fs_parse_param(struct fs_context *fc, struct fuse_fs_context *ctx = fc->fs_private; int opt; - opt = fs_parse(fc, virtio_fs_parameters, param, &result); + opt = fs_parse(fc, &virtio_fs_parameters, param, &result); if (opt < 0) return opt;