aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index c5b890140d01..8a24e9be7cb0 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3908,7 +3908,7 @@ static int ext4_load_journal(struct super_block *sb,
3908 EXT4_SB(sb)->s_journal = journal; 3908 EXT4_SB(sb)->s_journal = journal;
3909 ext4_clear_journal_err(sb, es); 3909 ext4_clear_journal_err(sb, es);
3910 3910
3911 if (journal_devnum && 3911 if (!really_read_only && journal_devnum &&
3912 journal_devnum != le32_to_cpu(es->s_journal_dev)) { 3912 journal_devnum != le32_to_cpu(es->s_journal_dev)) {
3913 es->s_journal_dev = cpu_to_le32(journal_devnum); 3913 es->s_journal_dev = cpu_to_le32(journal_devnum);
3914 3914