@@ -490,7 +490,7 @@ static __always_inline int jbd2_do_replay(journal_t *journal,
490
490
struct buffer_head * bh ,
491
491
unsigned long * next_log_block ,
492
492
unsigned int next_commit_ID ,
493
- int * success , int * block_error )
493
+ int * success )
494
494
{
495
495
char * tagp ;
496
496
int flags ;
@@ -542,7 +542,6 @@ static __always_inline int jbd2_do_replay(journal_t *journal,
542
542
* success = - EFSBADCRC ;
543
543
pr_err ("JBD2: Invalid checksum recovering data block %llu in journal block %lu\n" ,
544
544
blocknr , io_block );
545
- * block_error = 1 ;
546
545
goto skip_write ;
547
546
}
548
547
@@ -596,7 +595,6 @@ static int do_one_pass(journal_t *journal,
596
595
unsigned int sequence ;
597
596
int blocktype ;
598
597
__u32 crc32_sum = ~0 ; /* Transactional Checksums */
599
- int block_error = 0 ;
600
598
bool need_check_commit_time = false;
601
599
__u64 last_trans_commit_time = 0 , commit_time ;
602
600
@@ -721,8 +719,7 @@ static int do_one_pass(journal_t *journal,
721
719
* done here!
722
720
*/
723
721
err = jbd2_do_replay (journal , info , bh , & next_log_block ,
724
- next_commit_ID , & success ,
725
- & block_error );
722
+ next_commit_ID , & success );
726
723
if (err )
727
724
goto failed ;
728
725
@@ -913,8 +910,6 @@ static int do_one_pass(journal_t *journal,
913
910
success = err ;
914
911
}
915
912
916
- if (block_error && success == 0 )
917
- success = - EIO ;
918
913
return success ;
919
914
920
915
failed :
0 commit comments