is only a snapshot at
> best
> there was no point in reading the counter twice - once in
> btrfs_dev_stats_dirty
> and then again when assigning stats_cnt. Just collapse both reads into 1.
>
> Fixes: addc3fa74e5b ("Btrfs: Fix the problem that the dirty flag of dev sta
tats_ccnt);
> }
> @@ -523,6 +529,12 @@ static inline void btrfs_dev_stat_set(struct btrfs_device
> *dev,
> int index, unsigned long val)
> {
> atomic_set(dev->dev_stat_values + index, val);
> + /*
> + * This memory bar
- Original Message -
> From: "Omar Sandoval"
> To: "Chris Mason" , "Josef Bacik" ,
> linux-btrfs@vger.kernel.org, "Paul E. McKenney"
> , "Josh Triplett" ,
> "Steven Rostedt" ,
> "Mathieu Desnoyers&qu