fs_parse: get rid of ->enums
Don't do a single array; attach them to fsparam_enum() entry instead. And don't bother trying to embed the names into those - it actually loses memory, with no real speedup worth mentioning. Simplifies validation as well. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -283,7 +283,7 @@ static const struct fs_parameter_spec ceph_param_specs[] = {
|
||||
fsparam_u32 ("osd_request_timeout", Opt_osd_request_timeout),
|
||||
fsparam_u32 ("osdkeepalive", Opt_osdkeepalivetimeout),
|
||||
__fsparam (fs_param_is_s32, "osdtimeout", Opt_osdtimeout,
|
||||
fs_param_deprecated),
|
||||
fs_param_deprecated, NULL),
|
||||
fsparam_string ("secret", Opt_secret),
|
||||
fsparam_flag_no ("share", Opt_share),
|
||||
fsparam_flag_no ("tcp_nodelay", Opt_tcp_nodelay),
|
||||
|
Reference in New Issue
Block a user