X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Fjbd2%2Fcommit.c;h=efd0ce9489ae9d453d37abd4a66b8ad574fa5b4b;hb=3ce8461f45a7486b286afa2ae5619ce6aed8b6db;hp=2eb55c3361a8b170afd64bc807c28408d24127e7;hpb=55b97be83f2c0a8327d05e74482b3c3d25719ca6;p=linux.git diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 2eb55c3361a8..efd0ce9489ae 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -694,9 +694,11 @@ void jbd2_journal_commit_transaction(journal_t *journal) the last tag we set up. */ tag->t_flags |= cpu_to_be16(JBD2_FLAG_LAST_TAG); - - jbd2_descriptor_block_csum_set(journal, descriptor); start_journal_io: + if (descriptor) + jbd2_descriptor_block_csum_set(journal, + descriptor); + for (i = 0; i < bufs; i++) { struct buffer_head *bh = wbuf[i]; /*