erofs: hide "cache_strategy=" for plain filesystems
PATCH 1/1 erofs: hide "cache_strategy=" for plain filesystems
"cache_strategy=" is meaningless and confusing on unencoded EROFS filesystems; gate it on compressed images only since it's now possible after commit 7cef3c834194 ("erofs: separate plain and compressed filesystems formally").
Signed-off-by Gao Xiang <[email protected]>
--- fs/erofs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/erofs/super.c +1 -1
@@ -1038,7 +1038,7 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root) ",user_xattr" : ",nouser_xattr"); if (IS_ENABLED(CONFIG_EROFS_FS_POSIX_ACL))seq_puts (seq,test_opt (opt,POSIX_ACL ) ?",acl" :",noacl" ); -if (IS_ENABLED (CONFIG_EROFS_FS_ZIP )) +if (IS_ENABLED (CONFIG_EROFS_FS_ZIP ) && sbi->available_compr_algs)seq_printf (seq,",cache_strategy=%s" , erofs_param_cache_strategy[opt->cache_strategy].name);if (test_opt (opt,DAX_ALWAYS ))
Signature · 1 line
2.43.5