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)
commit4660c49f9b4ad50eab410de09eeacc2e3aebf1f5
tree89130cb6eb02df2822a16dc5debd7c432fe781e2
parent9deae9689231964972a94bb56a79b669f9d47ac1
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