diff options
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/journal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 56dde1e85c24..b96bd8076b70 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -1852,13 +1852,12 @@ int jbd2_journal_set_features (journal_t *journal, unsigned long compat, | |||
1852 | journal->j_chksum_driver = NULL; | 1852 | journal->j_chksum_driver = NULL; |
1853 | return 0; | 1853 | return 0; |
1854 | } | 1854 | } |
1855 | } | ||
1856 | 1855 | ||
1857 | /* Precompute checksum seed for all metadata */ | 1856 | /* Precompute checksum seed for all metadata */ |
1858 | if (jbd2_journal_has_csum_v2or3(journal)) | ||
1859 | journal->j_csum_seed = jbd2_chksum(journal, ~0, | 1857 | journal->j_csum_seed = jbd2_chksum(journal, ~0, |
1860 | sb->s_uuid, | 1858 | sb->s_uuid, |
1861 | sizeof(sb->s_uuid)); | 1859 | sizeof(sb->s_uuid)); |
1860 | } | ||
1862 | } | 1861 | } |
1863 | 1862 | ||
1864 | /* If enabling v1 checksums, downgrade superblock */ | 1863 | /* If enabling v1 checksums, downgrade superblock */ |