mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 20:14:08 +00:00
erofs: remove unnecessary output in erofs_show_options()
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. Link: https://lore.kernel.org/r/20191119115049.3401-1-cgxu519@mykernel.net Signed-off-by: Chengguang Xu <cgxu519@mykernel.net> Reviewed-by: Gao Xiang <gaoxiang25@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
This commit is contained in:
parent
0c638f70d7
commit
3dcb5fa23e
1 changed files with 0 additions and 3 deletions
|
@ -598,9 +598,6 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root)
|
||||||
seq_puts(seq, ",cache_strategy=readahead");
|
seq_puts(seq, ",cache_strategy=readahead");
|
||||||
} else if (sbi->cache_strategy == EROFS_ZIP_CACHE_READAROUND) {
|
} else if (sbi->cache_strategy == EROFS_ZIP_CACHE_READAROUND) {
|
||||||
seq_puts(seq, ",cache_strategy=readaround");
|
seq_puts(seq, ",cache_strategy=readaround");
|
||||||
} else {
|
|
||||||
seq_puts(seq, ",cache_strategy=(unknown)");
|
|
||||||
DBG_BUGON(1);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue