diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 7c8faeb868f4e25cc9bb6da2f7bff0246c5ac600..a2c9d21176e270df3400482767faa2c65d0d0f6d 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -1441,8 +1441,8 @@ static inline int should_cow_block(struct btrfs_trans_handle *trans, if (btrfs_is_testing(root->fs_info)) return 0; - /* ensure we can see the force_cow */ - smp_rmb(); + /* Ensure we can see the FORCE_COW bit */ + smp_mb__before_atomic(); /* * We do not need to cow a block if