diff options
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/journal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 0e8014ea6b94..262419f83d80 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -1371,6 +1371,10 @@ int jbd2_journal_check_used_features (journal_t *journal, unsigned long compat, | |||
1371 | 1371 | ||
1372 | if (!compat && !ro && !incompat) | 1372 | if (!compat && !ro && !incompat) |
1373 | return 1; | 1373 | return 1; |
1374 | /* Load journal superblock if it is not loaded yet. */ | ||
1375 | if (journal->j_format_version == 0 && | ||
1376 | journal_get_superblock(journal) != 0) | ||
1377 | return 0; | ||
1374 | if (journal->j_format_version == 1) | 1378 | if (journal->j_format_version == 1) |
1375 | return 0; | 1379 | return 0; |
1376 | 1380 | ||