We have already handled cache_strategy option carefully, so incorrect setting could not pass option parsing. Meanwhile, print 'cache_strategy=(unknown)' can cause failure on remount.
Signed-off-by: Chengguang Xu <[email protected]> --- fs/erofs/super.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 06e721bd1c8c..65c7da996643 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -581,9 +581,6 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root) seq_puts(seq, ",cache_strategy=readahead"); } else if (sbi->cache_strategy == EROFS_ZIP_CACHE_READAROUND) { seq_puts(seq, ",cache_strategy=readaround"); - } else { - seq_puts(seq, ",cache_strategy=(unknown)"); - DBG_BUGON(1); } #endif return 0; -- 2.20.1
