Message ID | 20211027141857.33657-12-lczerner@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ext4: new mount API conversion | expand |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index b66087f55009..67efe9c6b9e8 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3039,12 +3039,12 @@ static inline void ext4_show_quota_options(struct seq_file *seq, static const char *token2str(int token) { - const struct match_token *t; + const struct fs_parameter_spec *spec; - for (t = tokens; t->token != Opt_err; t++) - if (t->token == token && !strchr(t->pattern, '=')) + for (spec = ext4_param_specs; spec->name != NULL; spec++) + if (spec->opt == token && !spec->type) break; - return t->pattern; + return spec->name; } /*