Skip to content

Commit fff6f35

Browse files
ebiggerstytso
authored andcommitted
jbd2: remove journal_t argument from jbd2_superblock_csum()
Since jbd2_superblock_csum() no longer uses its journal_t argument, remove it. Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Baokun Li <libaokun1@huawei.com> Link: https://patch.msgid.link/20250513053809.699974-5-ebiggers@kernel.org Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 7600571 commit fff6f35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/jbd2/journal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void __jbd2_debug(int level, const char *file, const char *func,
115115
#endif
116116

117117
/* Checksumming functions */
118-
static __be32 jbd2_superblock_csum(journal_t *j, journal_superblock_t *sb)
118+
static __be32 jbd2_superblock_csum(journal_superblock_t *sb)
119119
{
120120
__u32 csum;
121121
__be32 old_csum;
@@ -1384,7 +1384,7 @@ static int journal_check_superblock(journal_t *journal)
13841384
}
13851385

13861386
/* Check superblock checksum */
1387-
if (sb->s_checksum != jbd2_superblock_csum(journal, sb)) {
1387+
if (sb->s_checksum != jbd2_superblock_csum(sb)) {
13881388
printk(KERN_ERR "JBD2: journal checksum error\n");
13891389
err = -EFSBADCRC;
13901390
return err;
@@ -1819,7 +1819,7 @@ static int jbd2_write_superblock(journal_t *journal, blk_opf_t write_flags)
18191819
set_buffer_uptodate(bh);
18201820
}
18211821
if (jbd2_journal_has_csum_v2or3(journal))
1822-
sb->s_checksum = jbd2_superblock_csum(journal, sb);
1822+
sb->s_checksum = jbd2_superblock_csum(sb);
18231823
get_bh(bh);
18241824
bh->b_end_io = end_buffer_write_sync;
18251825
submit_bh(REQ_OP_WRITE | write_flags, bh);

0 commit comments

Comments
 (0)