On Tue, Mar 18, 2025 at 03:50:01PM +0800, Alan Huang wrote:
> The smp_mb() is paired with nothing.
> 
> Signed-off-by: Alan Huang <[email protected]>

Applied

> ---
>  fs/bcachefs/journal.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c
> index 8d4f3bfaa228..fc15644c9f24 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 &&
> -- 
> 2.48.1
> 

Reply via email to