From 8efebe934453644c1f8465f31b1f24f2cf79c559 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sat, 9 Sep 2023 00:27:18 -0400 Subject: [PATCH] Revert "zygo: btrfs: call find_free_dev_extent with the right num_bytes" This reverts commit 0df5c0b10b2c921f74745a3bd294cb41239c2f95. --- fs/btrfs/volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 66ea7a5b4a2d..8597dea08cda 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -5193,7 +5193,7 @@ static int gather_device_info(struct btrfs_fs_devices *fs_devices, struct btrfs_fs_info *info = fs_devices->fs_info; struct btrfs_device *device; u64 total_avail; - u64 dev_extent_want = ctl->max_stripe_size; + u64 dev_extent_want = ctl->max_stripe_size * ctl->dev_stripes; int ret; int ndevs = 0; u64 max_avail; -- 2.39.5