Merge tag 'for-5.12-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[platform/kernel/linux-rpi.git] / fs / btrfs / volumes.c
index e2df6e6..1c6810b 100644 (file)
@@ -421,7 +421,7 @@ static struct btrfs_device *__alloc_device(struct btrfs_fs_info *fs_info)
         * Preallocate a bio that's always going to be used for flushing device
         * barriers and matches the device lifespan
         */
-       dev->flush_bio = bio_alloc_bioset(GFP_KERNEL, 0, NULL);
+       dev->flush_bio = bio_kmalloc(GFP_KERNEL, 0);
        if (!dev->flush_bio) {
                kfree(dev);
                return ERR_PTR(-ENOMEM);