Merge tag 'for-5.12/block-2021-02-17' of git://git.kernel.dk/linux-block
[sfrench/cifs-2.6.git] / fs / btrfs / volumes.c
index b8fab44394f5a5a4666a769a60de3d8cdc3c3516..bc3b33efddc5694df8afef1e481c8969829b11ff 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);