[PATCH 0/5] Convert seed devices to proper list API

Nikolay Borisov
2020-07-15T10:48:54Z

This series converts the existing seed devices pointer in btrfs_fs_devices to
proper list api. First 4 patches are cleanups preparing the code for the switch.
Patch 5 has more information about the required transformations, it might seem
lengthy but he logic everywhere is pretty much the same so shouldn't be that
cumbersome to review.

This series survived xfstest runs and even caught 2 bugs while developing it.

Nikolay Borisov (5):
btrfs: Factor out reada loop in __reada_start_machine
btrfs: Factor out loop logic from btrfs_free_extra_devids
btrfs: Make close_fs_devices return void
btrfs: Simplify setting/clearing fs_info to btrfs_fs_devices
btrfs: Switch seed device to list api

fs/btrfs/disk-io.c | 39 +++++------
fs/btrfs/reada.c | 26 ++++---
fs/btrfs/sysfs.c | 4 --
fs/btrfs/volumes.c | 166 ++++++++++++++++++++-------------------------
fs/btrfs/volumes.h | 6 +-
5 files changed, 112 insertions(+), 129 deletions(-)

--
2.17.1