|
@@ -53,7 +53,7 @@ static struct biovec_slab bvec_slabs[BVEC_POOL_NR] __read_mostly = {
|
|
|
* fs_bio_set is the bio_set containing bio and iovec memory pools used by
|
|
|
* IO code that does not need private memory pools.
|
|
|
*/
|
|
|
-struct bio_set *fs_bio_set;
|
|
|
+struct bio_set fs_bio_set;
|
|
|
EXPORT_SYMBOL(fs_bio_set);
|
|
|
|
|
|
/*
|
|
@@ -2055,11 +2055,10 @@ static int __init init_bio(void)
|
|
|
bio_integrity_init();
|
|
|
biovec_init_slabs();
|
|
|
|
|
|
- fs_bio_set = bioset_create(BIO_POOL_SIZE, 0, BIOSET_NEED_BVECS);
|
|
|
- if (!fs_bio_set)
|
|
|
+ if (bioset_init(&fs_bio_set, BIO_POOL_SIZE, 0, BIOSET_NEED_BVECS))
|
|
|
panic("bio: can't allocate bios\n");
|
|
|
|
|
|
- if (bioset_integrity_create(fs_bio_set, BIO_POOL_SIZE))
|
|
|
+ if (bioset_integrity_create(&fs_bio_set, BIO_POOL_SIZE))
|
|
|
panic("bio: can't create integrity pool\n");
|
|
|
|
|
|
return 0;
|