Skip to content

btrfs: cleanup prepare_sprout

Anand Jain linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest3 patches 10 repliesIn review

Changes in v6 from the cover letter

Patch 1/3 and 2/3 are new.
Removed RFC from 3/3. Take memory allocation out of device_list_mutex.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: declare seeding_dev in init_new_device as boolfs/btrfs/volumes.c+2 -24 replies
2/3btrfs: remove unused device_list_mutex for seed fs_devicesfs/btrfs/volumes.c+0 -12 replies
3/3btrfs: consolidate device_list_mutex in prepare_sprout to its parentfs/btrfs/volumes.c+31 -154 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchNikolay Borisov
1/3R-b
2/3
3/3

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

Read the v6 thread

Cover letter [PATCH v6 0/3] btrfs: cleanup prepare_sprout

Patch 3/3 was part of the patchset [1] before.
[1] btrfs: device_list_mutex fix lockdep warn and cleanup
As the patch 1/2 in [1] is already merged, so the patch 2/2 in [1] along with the other cleanup has formed a new set here.

Patch 1/3 and 2/3 are a minor cleanup in btrfs_prepare_sprout(). Patch 3/3 cleans btrfs_prepare_sprout() so that a part of it can be within the device_list_mutex in the parent function btrfs_init_new_device().

v6:
Patch 1/3 and 2/3 are new.
Removed RFC from 3/3. Take memory allocation out of device_list_mutex.

Anand Jain (3):
btrfs: declare seeding_dev in init_new_device as bool
btrfs: remove unused device_list_mutex for seed fs_devices
btrfs: consolidate device_list_mutex in prepare_sprout to its parent

 fs/btrfs/volumes.c | 51 ++++++++++++++++++++++++++++++----------------
 1 file changed, 33 insertions(+), 18 deletions(-)
Signature · 1 line
2.31.1