diff options
| author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2026-07-13 16:35:29 +0800 |
|---|---|---|
| committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2026-07-13 16:41:42 +0800 |
| commit | 1572282de6d3377ca8605d48c50df3a8c08468e9 (patch) | |
| tree | 0c25f579f20a0b946d31a52f3bbe41e0d034dd16 /fs | |
| parent | 95e19a4d8dd3072d51209081a29467d887c84158 (diff) | |
| download | linux-next-1572282de6d3377ca8605d48c50df3a8c08468e9.tar.gz linux-next-1572282de6d3377ca8605d48c50df3a8c08468e9.zip | |
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 <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/erofs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/super.c b/fs/erofs/super.c index c5881bb8d52b..9d8f862f309f 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -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)) |
