erofs: remove unnecessary output in erofs_show_options()
PATCH 1/1 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.
Signed-off-by Chengguang Xu <[email protected]>
--- fs/erofs/super.c | 3 --- 1 file changed, 3 deletions(-)
fs/erofs/super.c +0 -3
@@ -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 ;
Signature · 1 line
2.20.1
Quoted 6 lines · Chengguang Xu
We have already handled
cache_strategyoption 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]>
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang
Quoted 6 lines · Chengguang Xu
We have already handled
cache_strategyoption 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]>
Reviewed-by Chao Yu <[email protected]>
Thanks,