Home
last modified time | relevance | path

Searched refs:bi_vcnt (Results 1 – 33 of 33) sorted by relevance

/linux-4.1.27/fs/logfs/
Ddev_bdev.c28 bio.bi_vcnt = 1; in sync_request()
94 bio->bi_vcnt = i; in __bdev_writeseg()
121 bio->bi_vcnt = nr_pages; in __bdev_writeseg()
164 BUG_ON(bio->bi_vcnt == 0); in erase_end_io()
186 bio->bi_vcnt = i; in do_erase()
207 bio->bi_vcnt = nr_pages; in do_erase()
/linux-4.1.27/block/
Dblk-merge.c106 seg_cnt = bio->bi_vcnt; in blk_recount_segments()
221 if (bio->bi_vcnt) in __blk_bios_map_sg()
363 return bvec_gap_to_prev(&prev->bi_io_vec[prev->bi_vcnt - 1], in req_gap_to_prev()
595 bprev = &rq->biotail->bi_io_vec[rq->biotail->bi_vcnt - 1]; in blk_rq_merge_ok()
Dbio.c657 bio->bi_io_vec[bio->bi_vcnt++] = bio_src->bi_io_vec[0]; in bio_clone_bioset()
662 bio->bi_io_vec[bio->bi_vcnt++] = bv; in bio_clone_bioset()
723 if (bio->bi_vcnt > 0) { in __bio_add_page()
724 struct bio_vec *prev = &bio->bi_io_vec[bio->bi_vcnt - 1]; in __bio_add_page()
763 if (bio->bi_vcnt >= bio->bi_max_vecs) in __bio_add_page()
770 bvec = &bio->bi_io_vec[bio->bi_vcnt]; in __bio_add_page()
774 bio->bi_vcnt++; in __bio_add_page()
814 if (bio->bi_vcnt > 1 && (BIOVEC_PHYS_MERGEABLE(bvec-1, bvec))) in __bio_add_page()
824 bio->bi_vcnt--; in __bio_add_page()
Dblk-lib.c189 bio->bi_vcnt = 1; in blkdev_issue_write_same()
Dblk-core.c1454 bio->bi_vcnt = 1; in blk_add_request_payload()
/linux-4.1.27/Documentation/block/
Dbiovecs.txt70 reached the end of a bio, not bi_vcnt - and the bio_iovec() macro takes
104 * bi_vcnt can't be trusted or relied upon by driver code - i.e. anything that
108 biovec, in order to calculate bi_vcnt for the new bio we'd have to iterate
111 So, don't use bi_vcnt anymore.
Dbiodoc.txt437 unsigned int bi_vcnt; /* how may bio_vec's */
/linux-4.1.27/drivers/md/bcache/
Dutil.c231 BUG_ON(bio->bi_vcnt); in bch_bio_map()
236 for (; size; bio->bi_vcnt++, bv++) { in bch_bio_map()
Dbtree.c436 b->bio->bi_vcnt = 0; in do_btree_node_write()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dlloop.c306 LASSERT(first->bi_vcnt <= LLOOP_MAX_SEGMENTS); in loop_get_bio()
314 page_count, (*bio)->bi_vcnt); in loop_get_bio()
315 if (page_count + (*bio)->bi_vcnt > LLOOP_MAX_SEGMENTS) in loop_get_bio()
319 page_count += (*bio)->bi_vcnt; in loop_get_bio()
/linux-4.1.27/include/linux/
Dblk_types.h87 unsigned short bi_vcnt; /* how many bio_vec's */ member
Dbio.h205 for (i = 0, bvl = (bio)->bi_io_vec; i < (bio)->bi_vcnt; i++, bvl++)
/linux-4.1.27/fs/btrfs/
Dcompression.c185 cb->orig_bio->bi_vcnt, in end_compressed_bio_read()
462 page = cb->orig_bio->bi_io_vec[cb->orig_bio->bi_vcnt - 1].bv_page; in add_ra_bio_pages()
574 unsigned long uncompressed_len = bio->bi_vcnt * PAGE_CACHE_SIZE; in btrfs_submit_compressed_read()
651 uncompressed_len = bio->bi_vcnt * PAGE_CACHE_SIZE; in btrfs_submit_compressed_read()
Dfile-item.c207 WARN_ON(bio->bi_vcnt <= 0); in __btrfs_lookup_bio_sums()
223 while (bio_index < bio->bi_vcnt) { in __btrfs_lookup_bio_sums()
439 WARN_ON(bio->bi_vcnt <= 0); in btrfs_csum_one_bio()
458 while (bio_index < bio->bi_vcnt) { in btrfs_csum_one_bio()
Dcheck-integrity.c2989 rw, bio->bi_vcnt, in __btrfsic_submit_bio()
2993 mapped_datav = kmalloc_array(bio->bi_vcnt, in __btrfsic_submit_bio()
2998 for (i = 0; i < bio->bi_vcnt; i++) { in __btrfsic_submit_bio()
3018 mapped_datav, bio->bi_vcnt, in __btrfsic_submit_bio()
Draid56.c1149 for (i = 0; i < bio->bi_vcnt; i++) { in index_rbio_pages()
1430 for (i = 0; i < bio->bi_vcnt; i++) { in set_bio_pages_uptodate()
Dextent_io.c2314 if (failed_bio->bi_vcnt > 1) { in btrfs_check_repairable()
2420 if (failed_bio->bi_vcnt > 1) in bio_readpage_error()
2753 struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1; in submit_one_bio()
Dvolumes.c5732 if (WARN_ON(bio->bi_vcnt == 0)) in bio_size_ok()
5735 prev = &bio->bi_io_vec[bio->bi_vcnt - 1]; in bio_size_ok()
5795 while (bvec <= (first_bio->bi_io_vec + first_bio->bi_vcnt - 1)) { in breakup_stripe_bio()
Dinode.c7704 if (failed_bio->bi_vcnt > 1) in dio_read_error()
8142 while (bvec <= (orig_bio->bi_io_vec + orig_bio->bi_vcnt - 1)) { in btrfs_submit_direct_hook()
/linux-4.1.27/drivers/md/
Draid1.c128 bio->bi_vcnt = RESYNC_PAGES; in r1buf_pool_alloc()
1006 struct bio_vec *bvecs = kzalloc(bio->bi_vcnt * sizeof(struct bio_vec), in alloc_behind_pages()
1022 r1_bio->behind_page_count = bio->bi_vcnt; in alloc_behind_pages()
1027 for (i = 0; i < bio->bi_vcnt; i++) in alloc_behind_pages()
1979 b->bi_vcnt = vcnt; in process_checks()
2239 wbio->bi_vcnt = vcnt; in narrow_write_error()
2705 page = bio->bi_io_vec[bio->bi_vcnt].bv_page; in sync_request()
2708 bio->bi_io_vec[bio->bi_vcnt].bv_page = page; in sync_request()
2715 bio->bi_vcnt--; in sync_request()
2726 } while (r1_bio->bios[disk]->bi_vcnt < RESYNC_PAGES); in sync_request()
Draid10.c2097 tbio->bi_vcnt = vcnt; in sync_request_write()
3358 page = bio->bi_io_vec[bio->bi_vcnt].bv_page; in sync_request()
3363 bio->bi_io_vec[bio->bi_vcnt].bv_page = page; in sync_request()
3368 bio2->bi_vcnt--; in sync_request()
3376 } while (biolist->bi_vcnt < RESYNC_PAGES); in sync_request()
4396 read_bio->bi_vcnt = 0; in reshape_request()
4450 bio2->bi_vcnt--; in reshape_request()
Ddm-crypt.c1006 bvec = &clone->bi_io_vec[clone->bi_vcnt++]; in crypt_alloc_buffer()
Draid5.c1020 bi->bi_vcnt = 1; in ops_run_io()
1029 bi->bi_vcnt = 0; in ops_run_io()
1069 rbi->bi_vcnt = 1; in ops_run_io()
1078 rbi->bi_vcnt = 0; in ops_run_io()
Ddm.c2123 md_in_flight(md) && rq->bio && rq->bio->bi_vcnt == 1 && in dm_request_fn()
/linux-4.1.27/drivers/target/
Dtarget_core_pscsi.c947 bio->bi_vcnt, nr_vecs); in pscsi_map_sg()
949 if (bio->bi_vcnt > nr_vecs) { in pscsi_map_sg()
952 " bio\n", bio->bi_vcnt, i, bio); in pscsi_map_sg()
/linux-4.1.27/mm/
Dpage_io.c39 bio->bi_vcnt = 1; in get_swap_bio()
/linux-4.1.27/fs/exofs/
Dore_raid.c379 per_dev->bio->bi_vcnt); in _add_to_r4w()
Dore.c636 per_dev->bio->bi_vcnt, in _ore_add_stripe_unit()
/linux-4.1.27/fs/jfs/
Djfs_logmgr.c2006 bio->bi_vcnt = 1; in lbmRead()
2152 bio->bi_vcnt = 1; in lbmStartIO()
/linux-4.1.27/fs/
Dbuffer.c2967 struct bio_vec *bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; in guard_bio_eod()
3029 bio->bi_vcnt = 1; in _submit_bh()
/linux-4.1.27/drivers/block/
Dpktcdvd.c1162 pkt->bio->bi_vcnt = pkt->frames; in pkt_start_recovery()
1315 pkt_dbg(2, pd, "vcnt=%d\n", pkt->w_bio->bi_vcnt); in pkt_start_write()
Dfloppy.c3811 bio.bi_vcnt = 1; in __floppy_read_block_0()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_receiver.c1439 if (bio->bi_vcnt == 0) { in drbd_submit_peer_request()