From: Alan Huang Date: Tue, 18 Mar 2025 07:50:01 +0000 (+0800) Subject: bcachefs: Remove spurious smp_mb() X-Git-Tag: v6.15-rc1~146^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd7ae389ff84acb4f332f3fa614d15a3e1f2087f;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Remove spurious smp_mb() The smp_mb() is paired with nothing. Signed-off-by: Alan Huang Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 8d4f3bfaa228d..fc15644c9f24f 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -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 &&