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 <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -448,7 +448,7 @@ enum {
|
||||
OPT_ERR
|
||||
};
|
||||
|
||||
static const struct fs_parameter_spec fuse_param_specs[] = {
|
||||
static const struct fs_parameter_spec fuse_fs_parameters[] = {
|
||||
fsparam_string ("source", OPT_SOURCE),
|
||||
fsparam_u32 ("fd", OPT_FD),
|
||||
fsparam_u32oct ("rootmode", OPT_ROOTMODE),
|
||||
@@ -462,17 +462,13 @@ static const struct fs_parameter_spec fuse_param_specs[] = {
|
||||
{}
|
||||
};
|
||||
|
||||
static const struct fs_parameter_description fuse_fs_parameters = {
|
||||
.specs = fuse_param_specs,
|
||||
};
|
||||
|
||||
static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
|
||||
{
|
||||
struct fs_parse_result result;
|
||||
struct fuse_fs_context *ctx = fc->fs_private;
|
||||
int opt;
|
||||
|
||||
opt = fs_parse(fc, &fuse_fs_parameters, param, &result);
|
||||
opt = fs_parse(fc, fuse_fs_parameters, param, &result);
|
||||
if (opt < 0)
|
||||
return opt;
|
||||
|
||||
@@ -1346,7 +1342,7 @@ static struct file_system_type fuse_fs_type = {
|
||||
.name = "fuse",
|
||||
.fs_flags = FS_HAS_SUBTYPE | FS_USERNS_MOUNT,
|
||||
.init_fs_context = fuse_init_fs_context,
|
||||
.parameters = &fuse_fs_parameters,
|
||||
.parameters = fuse_fs_parameters,
|
||||
.kill_sb = fuse_kill_sb_anon,
|
||||
};
|
||||
MODULE_ALIAS_FS("fuse");
|
||||
@@ -1362,7 +1358,7 @@ static struct file_system_type fuseblk_fs_type = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "fuseblk",
|
||||
.init_fs_context = fuse_init_fs_context,
|
||||
.parameters = &fuse_fs_parameters,
|
||||
.parameters = fuse_fs_parameters,
|
||||
.kill_sb = fuse_kill_sb_blk,
|
||||
.fs_flags = FS_REQUIRES_DEV | FS_HAS_SUBTYPE,
|
||||
};
|
||||
|
Reference in New Issue
Block a user