Commit dd7ae389 authored by Alan Huang's avatar Alan Huang Committed by Kent Overstreet
Browse files

bcachefs: Remove spurious smp_mb()



The smp_mb() is paired with nothing.

Signed-off-by: default avatarAlan Huang <mmpgouride@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5cc0ab39
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -761,7 +761,6 @@ void bch2_journal_entry_res_resize(struct journal *j,
		goto out;

	j->cur_entry_u64s = max_t(int, 0, j->cur_entry_u64s - d);
	smp_mb();
	state = READ_ONCE(j->reservations);

	if (state.cur_entry_offset < JOURNAL_ENTRY_CLOSED_VAL &&