Skip to content
Commit d1980131 authored by David Sterba's avatar David Sterba
Browse files

btrfs: update barrier in should_cow_block



Once there was a simple int force_cow that was used with the plain
barriers, and then converted to a bit, so we should use the appropriate
barrier helper.

Other variables in the complex if condition do not depend on a barrier,
so we should be fine in case the atomic barrier becomes a no-op.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a32bf9a3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment