]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove redundant memory barrier in dev stats
authorNikolay Borisov <nborisov@suse.com>
Fri, 20 Oct 2017 15:10:58 +0000 (18:10 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:10 +0000 (16:08 +0100)
commitdf45f1aa482f8643166df7bdef531d3c4faf4a68
tree89130cb6eb02df2822a16dc5debd7c432fe781e2
parent49bab98d70fff930092bd90d796871c33e563910
btrfs: Remove redundant memory barrier in dev stats

As per atomic_t.txt documentation :
 - RMW operations that have a return value are fully ordered;

atomic_xchg is one such operation so it already includes everything it
needs w.r.t memory ordering and add a comment to be more explicit about
that.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.h