Skip to content

Commit 04c2e98

Browse files
zhangyi089tytso
authored andcommitted
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>
1 parent 3e5cf02 commit 04c2e98

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

fs/jbd2/journal.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,15 +2006,6 @@ static int load_superblock(journal_t *journal)
20062006

20072007
sb = journal->j_superblock;
20082008

2009-
switch (be32_to_cpu(sb->s_header.h_blocktype)) {
2010-
case JBD2_SUPERBLOCK_V1:
2011-
journal->j_format_version = 1;
2012-
break;
2013-
case JBD2_SUPERBLOCK_V2:
2014-
journal->j_format_version = 2;
2015-
break;
2016-
}
2017-
20182009
journal->j_tail_sequence = be32_to_cpu(sb->s_sequence);
20192010
journal->j_tail = be32_to_cpu(sb->s_start);
20202011
journal->j_first = be32_to_cpu(sb->s_first);

include/linux/jbd2.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,6 @@ struct journal_s
792792
*/
793793
journal_superblock_t *j_superblock;
794794

795-
/**
796-
* @j_format_version: Version of the superblock format.
797-
*/
798-
int j_format_version;
799-
800795
/**
801796
* @j_state_lock: Protect the various scalars in the journal.
802797
*/

0 commit comments

Comments
 (0)