33 code results in torvalds/linux

C
drivers/md/dm-rq.h
Showing the top two matches Last indexed Sep 14, 2017
36 * For request-based dm - the bio clones we allocate are embedded in these
37 * structs.
38 *
39 * We allocate these with bio_alloc_bioset, using the front_pad parameter when
40 * the bioset is created - this means the bio has to come at the end of the
41 * struct.
C
block/bounce.c
Showing the top three matches Last indexed Dec 21, 2017
44 pr_info("pool size: %d pages\n", POOL_SIZE);
45
46 bounce_bio_set = bioset_create(BIO_POOL_SIZE, 0, BIOSET_NEED_BVECS);
47 BUG_ON(!bounce_bio_set);
48 if (bioset_integrity_create(bounce_bio_set, BIO_POOL_SIZE))
49 BUG_ON(1);
50
51 bounce_bio_split = bioset_create(BIO_POOL_SIZE, 0, 0);
C
include/linux/bio.h
Showing the top four matches Last indexed Dec 21, 2017
383 return bio_split(bio, sectors, gfp, bs);
384 }
385
386 extern struct bio_set *bioset_create(unsigned int, unsigned int, int flags);
387 enum {
388 BIOSET_NEED_BVECS = BIT(0),
389 BIOSET_NEED_RESCUER = BIT(1),
390 };
391 extern void bioset_free(struct bio_set *);
392 extern mempool_t *biovec_create_pool(int pool_entries);
C
fs/xfs/xfs_aops.h
Showing the top match Last indexed Sep 12, 2017
21 extern struct bio_set *xfs_ioend_bioset;
22
23 /*
24 * Types of I/O for bmap clustering and I/O completion tracking.
25 */
26 enum {
C
block/bio.c
Showing the top match Last indexed Dec 21, 2017
294 * After calling bio_reset(), @bio will be in the same state as a freshly
295 * allocated bio returned bio bio_alloc_bioset() - the only fields that are
296 * preserved are the ones that are initialized by bio_alloc_bioset(). See
297 * comment in struct bio.
298 */
299 void bio_reset(struct bio *bio)
C
drivers/target/target_core_iblock.c
Showing the top three matches Last indexed Sep 7, 2017
94 return -EINVAL;
95 }
96
97 ib_dev->ibd_bio_set = bioset_create(IBLOCK_BIO_POOL_SIZE, 0, BIOSET_NEED_BVECS);
98 if (!ib_dev->ibd_bio_set) {
99 pr_err("IBLOCK: Unable to create bioset\n");
100 goto out;
101 }
102
103 pr_debug( "IBLOCK: Claiming struct block_device: %s\n",
C
drivers/md/dm-io.c
Showing the top four matches Last indexed Sep 7, 2017
43 static struct kmem_cache *_dm_io_cache;
44
45 /*
46 * Create a client with mempool and bioset.
47 */
48 struct dm_io_client *dm_io_client_create(void)
61 client->bios = bioset_create(min_ios, 0, (BIOSET_NEED_BVECS |
62 BIOSET_NEED_RESCUER));
63 if (!client->bios)
C
block/bio-integrity.c
Showing the top two matches Last indexed Nov 15, 2017
288 printk(KERN_ERR "could not allocate data integrity bioset\n");
289 kfree(buf);
290 status = BLK_STS_RESOURCE;
467 int bioset_integrity_create(struct bio_set *bs, int pool_size)
468 {
469 if (bs->bio_integrity_pool)
470 return 0;
471
472 bs->bio_integrity_pool = mempool_create_slab_pool(pool_size, bip_slab);
C
fs/xfs/xfs_super.c
Showing the top three matches Last indexed Dec 22, 2017
66 struct bio_set *xfs_ioend_bioset;
67
68 static struct kset *xfs_kset; /* top-level xfs sysfs dir */
69 #ifdef DEBUG
70 static struct xfs_kobj xfs_dbg_kobj; /* global debug sysfs attrs */
1799 MODULE_ALIAS_FS("xfs");
1800
1801 STATIC int __init
1802 xfs_init_zones(void)
1803 {
1804 xfs_ioend_bioset = bioset_create(4 * MAX_BUF_PER_PAGE,
C
fs/btrfs/extent_io.c
Showing the top three matches Last indexed Nov 29, 2017
27 static struct bio_set *btrfs_bioset;
28
29 static inline bool extent_state_in_tree(const struct extent_state *state)
161 SLAB_MEM_SPREAD, NULL);
162 if (!extent_buffer_cache)
163 goto free_state_cache;
164
165 btrfs_bioset = bioset_create(BIO_POOL_SIZE,