X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Fext4%2Fext4_jbd2.c;h=b4323ba846b52ad09fe0740699ea2d82ff92ba65;hb=4476c0eead051ae6ff8abbc358763b00790d1635;hp=bfa65b49d4243d75a5c73456fc2ee4e3698537f4;hpb=ad54e461137765aaf090eb7f54c3b51fc0ad5d62;p=cascardo%2Flinux.git diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index bfa65b49d424..b4323ba846b5 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -143,17 +143,13 @@ int __ext4_handle_dirty_super(const char *where, unsigned int line, struct buffer_head *bh = EXT4_SB(sb)->s_sbh; int err = 0; + ext4_superblock_csum_set(sb); if (ext4_handle_valid(handle)) { - ext4_superblock_csum_set(sb, - (struct ext4_super_block *)bh->b_data); err = jbd2_journal_dirty_metadata(handle, bh); if (err) ext4_journal_abort_handle(where, line, __func__, bh, handle, err); - } else { - ext4_superblock_csum_set(sb, - (struct ext4_super_block *)bh->b_data); + } else mark_buffer_dirty(bh); - } return err; }