diff options
author | Zhang Yi <yi.zhang@huawei.com> | 2023-03-15 09:31:28 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-06-26 19:35:13 -0400 |
commit | 04c2e98179658d223665661f12c5043224e8f8d3 (patch) | |
tree | ca6bf16c7504cdc5680e5ac3aef709615fa99e9b /fs/jbd2 | |
parent | 3e5cf02cfa3fa9cc9f568930624faed6d3a53ff4 (diff) | |
download | linux-stable-04c2e98179658d223665661f12c5043224e8f8d3.tar.gz linux-stable-04c2e98179658d223665661f12c5043224e8f8d3.tar.bz2 linux-stable-04c2e98179658d223665661f12c5043224e8f8d3.zip |
jbd2: remove j_format_version
journal->j_format_version is no longer used, remove it.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230315013128.3911115-7-chengzhihao1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/journal.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index ee678f9e40c4..837a9a85e585 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -2006,15 +2006,6 @@ static int load_superblock(journal_t *journal) sb = journal->j_superblock; - switch (be32_to_cpu(sb->s_header.h_blocktype)) { - case JBD2_SUPERBLOCK_V1: - journal->j_format_version = 1; - break; - case JBD2_SUPERBLOCK_V2: - journal->j_format_version = 2; - break; - } - journal->j_tail_sequence = be32_to_cpu(sb->s_sequence); journal->j_tail = be32_to_cpu(sb->s_start); journal->j_first = be32_to_cpu(sb->s_first); |