]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: update barrier in should_cow_block
authorDavid Sterba <dsterba@suse.com>
Fri, 16 Mar 2018 01:39:40 +0000 (02:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Sat, 31 Mar 2018 00:01:06 +0000 (02:01 +0200)
commit92c7fa1b81a8fe70a89b81e1e99a91c5dd43f8be
tree0fae91ad3ab13a05c9075ab410e0414b736a73d9
parentf0791d0405f04fe4d4518da9001eb9962d97c3b7
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: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c