X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fjbd2%2Frecovery.c;h=5d0405a9e7ca081f1ce72cefd4d4b82c10c9b3fd;hb=1df5a8d004f64b1aa3fb93e0556886ba00ebc979;hp=d36356f7d222c94f63f5c64d16137a2692c09841;hpb=5531d28504461c4e96c6fbd80655a2bfd6481583;p=linux-2.6 diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index d36356f7d2..5d0405a9e7 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c @@ -535,7 +535,7 @@ static int do_one_pass(journal_t *journal, memcpy(nbh->b_data, obh->b_data, journal->j_blocksize); if (flags & JBD2_FLAG_ESCAPE) { - *((__be32 *)bh->b_data) = + *((__be32 *)nbh->b_data) = cpu_to_be32(JBD2_MAGIC_NUMBER); } @@ -641,7 +641,7 @@ static int do_one_pass(journal_t *journal, if (chksum_err) { info->end_transaction = next_commit_ID; - if (!JBD2_HAS_COMPAT_FEATURE(journal, + if (!JBD2_HAS_INCOMPAT_FEATURE(journal, JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT)){ printk(KERN_ERR "JBD: Transaction %u "