|
@@ -514,7 +514,7 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
|
|
|
{
|
|
|
struct f2fs_sb_info *sbi = F2FS_SB(root->d_sb);
|
|
|
|
|
|
- if (!(root->d_sb->s_flags & MS_RDONLY) && test_opt(sbi, BG_GC))
|
|
|
+ if (!f2fs_readonly(sbi->sb) && test_opt(sbi, BG_GC))
|
|
|
seq_printf(seq, ",background_gc=%s", "on");
|
|
|
else
|
|
|
seq_printf(seq, ",background_gc=%s", "off");
|
|
@@ -542,7 +542,7 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
|
|
|
seq_puts(seq, ",disable_ext_identify");
|
|
|
if (test_opt(sbi, INLINE_DATA))
|
|
|
seq_puts(seq, ",inline_data");
|
|
|
- if (test_opt(sbi, FLUSH_MERGE))
|
|
|
+ if (!f2fs_readonly(sbi->sb) && test_opt(sbi, FLUSH_MERGE))
|
|
|
seq_puts(seq, ",flush_merge");
|
|
|
seq_printf(seq, ",active_logs=%u", sbi->active_logs);
|
|
|
|