We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c15129 commit daabeddCopy full SHA for daabedd
fs/jbd2/journal.c
@@ -419,12 +419,11 @@ int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
419
/*
420
* Did we need to do an escaping? Now we've done all the
421
* copying, we can finally do so.
422
+ * b_frozen_data is from jbd2_alloc() which always provides an
423
+ * address from the direct kernels mapping.
424
*/
- if (do_escape) {
- mapped_data = kmap_local_folio(new_folio, new_offset);
425
- *((unsigned int *)mapped_data) = 0;
426
- kunmap_local(mapped_data);
427
- }
+ if (do_escape)
+ *((unsigned int *)jh_in->b_frozen_data) = 0;
428
429
folio_set_bh(new_bh, new_folio, new_offset);
430
new_bh->b_size = bh_in->b_size;
0 commit comments