[PATCH 0/2][v2] Fix init for device stats for seed devices

Josef Bacik
2020-09-18T20:44:38Z

v1->v2:
- Rework initial fix to work with the new seed_list.
- Add a follow up patch to address the fact that we were ignoring errors on
reading the device tree.

Hello,

We see a lot of messages in the fleet where we use seed devices because we're
not init'ing the stats for seed devices properly. I have an xfstest that shows
this (which I need to update), and this patch fixes the problem. It's
relatively straightforward, simply init the stats on seed devices at the same
time we init them on our primary devices. Thanks,

Josef

Josef Bacik (2):
btrfs: init device stats for seed devices
btrfs: return error if we're unable to read device stats

fs/btrfs/volumes.c | 93 +++++++++++++++++++++++++++-------------------
1 file changed, 55 insertions(+), 38 deletions(-)

--
2.26.2