diff --git a/fs/ext4/super.c b/fs/ext4/super.c index ebde5fb672221f815c89f960c5f16fa6f21af96b..285f18f643ca3c0e957533bfde2bad7c0a04e6d8 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3046,12 +3046,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; } /*