Skip to content

Convert seed devices to proper list API

Nikolay Borisov linux-btrfs oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: Factor out reada loop in __reada_start_machinefs/btrfs/reada.c+16 -53 replies
2/5btrfs: Factor out loop logic from btrfs_free_extra_devidsfs/btrfs/volumes.c+21 -134 replies
3/5btrfs: Make close_fs_devices return voidfs/btrfs/volumes.c fs/btrfs/volumes.h+5 -92 replies
4/5btrfs: Simplify setting/clearing fs_info to btrfs_fs_devicesfs/btrfs/sysfs.c fs/btrfs/volumes.c fs/btrfs/volumes.h+2 -262 replies
5/5btrfs: Switch seed device to list apifs/btrfs/disk-io.c fs/btrfs/reada.c fs/btrfs/volumes.c +1 more+72 -808 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJosef BacikAnand Jain
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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