]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Add missing smp_rmb()
authorAlan Huang <mmpgouride@gmail.com>
Tue, 18 Mar 2025 07:50:00 +0000 (15:50 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 24 Mar 2025 13:50:35 +0000 (09:50 -0400)
commit5d361ae5afeef075264b369c413dbed0a0d04cfa
treeac06107610b7996111da30cefc4da5860c4a0927
parent4a4000b9a6fd0d1de0349cd398433fd7fdf64292
bcachefs: Add missing smp_rmb()

The smp_rmb() guarantees that reads from reservations.counter
occur before accessing cur_entry_u64s. It's paired with the
atomic64_try_cmpxchg in journal_entry_open.

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.h