+ if (unlikely(rc == -EIO)) {
+ /* something bad happened to the processing, probably I/O
+ * error or the log got corrupted..
+ * to be able to finally release the log we discard any
+ * remaining bits in the header */
+ CERROR("llog found corrupted\n");
+ while (index <= last_index) {
+ if (ext2_test_bit(index, llh->llh_bitmap) != 0)
+ llog_cancel_rec(lpi->lpi_env, loghandle, index);
+ index++;
+ }
+ rc = 0;
+ }
+