Skip to contentSkip to conversation

erofs: remove unnecessary output in erofs_show_options()

PATCH In review Chengguang Xu 3 participants 3 messages Nov 19, 2019 – Nov 21, 2019 EROFS file system

lore
Share & tools
lore
#0 lore raw

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.

---
 fs/erofs/super.c | 3 ---
 1 file changed, 3 deletions(-)
fs/erofs/super.c +0 -3
index 06e721bd1c8c..65c7da996643 100644
@@ -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