]> git.hungrycats.org Git - linux/commitdiff
Revert "zygo: btrfs: call find_free_dev_extent with the right num_bytes"
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 9 Sep 2023 04:27:18 +0000 (00:27 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 9 Sep 2023 04:27:18 +0000 (00:27 -0400)
This reverts commit 0df5c0b10b2c921f74745a3bd294cb41239c2f95.

fs/btrfs/volumes.c

index 66ea7a5b4a2d78e586ce96e4ec5dbc94b78131f8..8597dea08cda45120fb96a0b55b3751cb2167845 100644 (file)
@@ -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;