Merge tag 'for-5.12/drivers-2021-02-17' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / drivers / block / drbd / drbd_main.c
index 7e5fcce..25cd8a2 100644 (file)
@@ -138,19 +138,6 @@ static const struct block_device_operations drbd_ops = {
        .release        = drbd_release,
 };
 
-struct bio *bio_alloc_drbd(gfp_t gfp_mask)
-{
-       struct bio *bio;
-
-       if (!bioset_initialized(&drbd_md_io_bio_set))
-               return bio_alloc(gfp_mask, 1);
-
-       bio = bio_alloc_bioset(gfp_mask, 1, &drbd_md_io_bio_set);
-       if (!bio)
-               return NULL;
-       return bio;
-}
-
 #ifdef __CHECKER__
 /* When checking with sparse, and this is an inline function, sparse will
    give tons of false positives. When this is a real functions sparse works.