File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,6 @@ int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
351
351
atomic_set (& new_bh -> b_count , 1 );
352
352
353
353
spin_lock (& jh_in -> b_state_lock );
354
- repeat :
355
354
/*
356
355
* If a new transaction has already done a buffer copy-out, then
357
356
* we use that version of the data for the commit.
@@ -399,22 +398,22 @@ int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
399
398
spin_lock (& jh_in -> b_state_lock );
400
399
if (jh_in -> b_frozen_data ) {
401
400
jbd2_free (tmp , bh_in -> b_size );
402
- goto repeat ;
401
+ goto copy_done ;
403
402
}
404
403
405
404
jh_in -> b_frozen_data = tmp ;
406
405
memcpy_from_folio (tmp , new_folio , new_offset , bh_in -> b_size );
407
-
408
- new_folio = virt_to_folio (tmp );
409
- new_offset = offset_in_folio (new_folio , tmp );
410
- done_copy_out = 1 ;
411
-
412
406
/*
413
407
* This isn't strictly necessary, as we're using frozen
414
408
* data for the escaping, but it keeps consistency with
415
409
* b_frozen_data usage.
416
410
*/
417
411
jh_in -> b_frozen_triggers = jh_in -> b_triggers ;
412
+
413
+ copy_done :
414
+ new_folio = virt_to_folio (jh_in -> b_frozen_data );
415
+ new_offset = offset_in_folio (new_folio , jh_in -> b_frozen_data );
416
+ done_copy_out = 1 ;
418
417
}
419
418
420
419
/*
You can’t perform that action at this time.
0 commit comments