mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
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 7cef3c8341 ("erofs: separate plain and compressed
filesystems formally").
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
This commit is contained in:
parent
95e19a4d8d
commit
1572282de6
|
|
@ -1029,7 +1029,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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user