Skip to content

Commit 4eb9bd1

Browse files
Kemeng Shitytso
authored andcommitted
jbd2: use bh_in instead of jh2bh(jh_in) to simplify code
We save jh2bh(jh_in) to bh_in, so use bh_in directly instead of jh2bh(jh_in) to simplify the code. Signed-off-by: Kemeng Shi <[email protected]> Reviewed-by: Zhang Yi <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent daabedd commit 4eb9bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/jbd2/journal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
360360
new_folio = virt_to_folio(jh_in->b_frozen_data);
361361
new_offset = offset_in_folio(new_folio, jh_in->b_frozen_data);
362362
} else {
363-
new_folio = jh2bh(jh_in)->b_folio;
364-
new_offset = offset_in_folio(new_folio, jh2bh(jh_in)->b_data);
363+
new_folio = bh_in->b_folio;
364+
new_offset = offset_in_folio(new_folio, bh_in->b_data);
365365
}
366366

367367
mapped_data = kmap_local_folio(new_folio, new_offset);

0 commit comments

Comments
 (0)