File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,6 @@ int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
325
325
struct buffer_head * * bh_out ,
326
326
sector_t blocknr )
327
327
{
328
- int need_copy_out = 0 ;
329
328
int done_copy_out = 0 ;
330
329
int do_escape = 0 ;
331
330
char * mapped_data ;
@@ -380,16 +379,14 @@ int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
380
379
/*
381
380
* Check for escaping
382
381
*/
383
- if (* ((__be32 * )mapped_data ) == cpu_to_be32 (JBD2_MAGIC_NUMBER )) {
384
- need_copy_out = 1 ;
382
+ if (* ((__be32 * )mapped_data ) == cpu_to_be32 (JBD2_MAGIC_NUMBER ))
385
383
do_escape = 1 ;
386
- }
387
384
kunmap_local (mapped_data );
388
385
389
386
/*
390
387
* Do we need to do a data copy?
391
388
*/
392
- if (need_copy_out && !done_copy_out ) {
389
+ if (do_escape && !done_copy_out ) {
393
390
char * tmp ;
394
391
395
392
spin_unlock (& jh_in -> b_state_lock );
You can’t perform that action at this time.
0 commit comments