Home
last modified time | relevance | path

Searched refs:bi_iter (Results 1 – 25 of 151) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/md/
Ddm-bio-record.h25 struct bvec_iter bi_iter; member
37 bd->bi_iter = bio->bi_iter; in dm_bio_record()
50 bio->bi_iter = bd->bi_iter; in dm_bio_restore()
Dmd-faulty.c68 b->bi_iter.bi_size = bio->bi_iter.bi_size; in faulty_fail()
69 b->bi_iter.bi_sector = bio->bi_iter.bi_sector; in faulty_fail()
179 if (check_sector(conf, bio->bi_iter.bi_sector, in faulty_make_request()
183 add_sector(conf, bio->bi_iter.bi_sector, in faulty_make_request()
191 if (check_sector(conf, bio->bi_iter.bi_sector, in faulty_make_request()
197 add_sector(conf, bio->bi_iter.bi_sector, in faulty_make_request()
202 add_sector(conf, bio->bi_iter.bi_sector, in faulty_make_request()
Ddm-ebs-target.c49 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks()
143 sector_t block, blocks, sector = bio->bi_iter.bi_sector; in __ebs_discard_bio()
167 sector_t blocks, sector = bio->bi_iter.bi_sector; in __ebs_forget_bio()
193 block1 = __sector_to_block(ec, bio->bi_iter.bi_sector); in __ebs_process_bios()
198 if (__block_mod(bio->bi_iter.bi_sector, ec->u_bs)) in __ebs_process_bios()
364 bio->bi_iter.bi_sector = ec->start + dm_target_offset(ti, bio->bi_iter.bi_sector); in ebs_map()
373 if (likely(__block_mod(bio->bi_iter.bi_sector, ec->u_bs) || in ebs_map()
Dmd-multipath.c94 (unsigned long long)bio->bi_iter.bi_sector); in multipath_end_request()
127 mp_bh->bio.bi_iter.bi_sector += multipath->rdev->data_offset; in multipath_make_request()
311 bio->bi_iter.bi_sector = mp_bh->master_bio->bi_iter.bi_sector; in multipathd()
316 (unsigned long long)bio->bi_iter.bi_sector); in multipathd()
321 (unsigned long long)bio->bi_iter.bi_sector); in multipathd()
323 bio->bi_iter.bi_sector += in multipathd()
Dmd-linear.c222 sector_t bio_sector = bio->bi_iter.bi_sector; in linear_make_request()
252 bio->bi_iter.bi_sector = bio->bi_iter.bi_sector - in linear_make_request()
273 (unsigned long long)bio->bi_iter.bi_sector, in linear_make_request()
Ddm-stripe.c256 stripe_map_range_sector(sc, bio->bi_iter.bi_sector, in stripe_map_range()
262 bio->bi_iter.bi_sector = begin + in stripe_map_range()
264 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
294 stripe_map_sector(sc, bio->bi_iter.bi_sector, in stripe_map()
295 &stripe, &bio->bi_iter.bi_sector); in stripe_map()
297 bio->bi_iter.bi_sector += sc->stripe[stripe].physical_start; in stripe_map()
Ddm-writecache.c1214 struct bio_vec bv = bio_iter_iovec(bio, bio->bi_iter); in bio_copy_block()
1264 writecache_discard(wc, bio->bi_iter.bi_sector, in writecache_flush_thread()
1315 bio->bi_iter.bi_sector = dm_target_offset(ti, bio->bi_iter.bi_sector); in writecache_map()
1317 if (unlikely((((unsigned)bio->bi_iter.bi_sector | bio_sectors(bio)) & in writecache_map()
1320 (unsigned long long)bio->bi_iter.bi_sector, in writecache_map()
1321 bio->bi_iter.bi_size, wc->block_size); in writecache_map()
1329 writecache_discard(wc, bio->bi_iter.bi_sector, bio_end_sector(bio)); in writecache_map()
1339 e = writecache_find_entry(wc, bio->bi_iter.bi_sector, WFE_RETURN_FOLLOWING); in writecache_map()
1340 if (e && read_original_sector(wc, e) == bio->bi_iter.bi_sector) { in writecache_map()
1343 if (bio->bi_iter.bi_size) in writecache_map()
[all …]
Ddm-log-writes.c225 bio->bi_iter.bi_size = 0; in write_metadata()
226 bio->bi_iter.bi_sector = sector; in write_metadata()
285 bio->bi_iter.bi_size = 0; in write_inline_data()
286 bio->bi_iter.bi_sector = sector; in write_inline_data()
372 bio->bi_iter.bi_size = 0; in log_one_block()
373 bio->bi_iter.bi_sector = sector; in log_one_block()
394 bio->bi_iter.bi_size = 0; in log_one_block()
395 bio->bi_iter.bi_sector = sector; in log_one_block()
725 block->sector = bio_to_dev_sectors(lc, bio->bi_iter.bi_sector); in log_writes_map()
/kernel/linux/linux-5.10/include/trace/events/
Dbcache.h28 __entry->sector = bio->bi_iter.bi_sector;
29 __entry->orig_sector = bio->bi_iter.bi_sector - 16;
30 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
31 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
103 __entry->sector = bio->bi_iter.bi_sector;
104 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
105 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
138 __entry->sector = bio->bi_iter.bi_sector;
139 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
140 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
[all …]
Dblock.h256 __entry->sector = bio->bi_iter.bi_sector;
258 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
292 __entry->sector = bio->bi_iter.bi_sector;
295 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
320 __entry->sector = bio->bi_iter.bi_sector;
322 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
387 __entry->sector = bio->bi_iter.bi_sector;
389 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size);
415 __entry->sector = bio ? bio->bi_iter.bi_sector : 0;
550 __entry->sector = bio->bi_iter.bi_sector;
[all …]
/kernel/linux/linux-5.10/drivers/md/bcache/
Drequest.c114 bio_sectors(bio), (uint64_t) bio->bi_iter.bi_sector); in bch_data_invalidate()
123 bio->bi_iter.bi_sector += sectors; in bch_data_invalidate()
124 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate()
128 bio->bi_iter.bi_sector, in bch_data_invalidate()
220 SET_KEY_OFFSET(k, bio->bi_iter.bi_sector); in bch_data_insert_start()
397 if (bio->bi_iter.bi_sector & (c->cache->sb.block_size - 1) || in check_should_bypass()
416 hlist_for_each_entry(i, iohash(dc, bio->bi_iter.bi_sector), hash) in check_should_bypass()
417 if (i->last == bio->bi_iter.bi_sector && in check_should_bypass()
426 if (i->sequential + bio->bi_iter.bi_size > i->sequential) in check_should_bypass()
427 i->sequential += bio->bi_iter.bi_size; in check_should_bypass()
[all …]
Ddebug.c54 bio->bi_iter.bi_sector = PTR_OFFSET(&b->key, 0); in bch_btree_verify()
55 bio->bi_iter.bi_size = KEY_SIZE(&v->key) << 9; in bch_btree_verify()
119 check->bi_iter.bi_sector = bio->bi_iter.bi_sector; in bch_data_verify()
120 check->bi_iter.bi_size = bio->bi_iter.bi_size; in bch_data_verify()
142 (uint64_t) bio->bi_iter.bi_sector); in bch_data_verify()
/kernel/linux/linux-5.10/block/
Dblk-lib.c98 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
102 bio->bi_iter.bi_size = req_sects << 9; in __blkdev_issue_discard()
192 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_same()
201 bio->bi_iter.bi_size = max_write_same_sectors << 9; in __blkdev_issue_write_same()
205 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_same()
268 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_zeroes()
275 bio->bi_iter.bi_size = max_write_zeroes_sectors << 9; in __blkdev_issue_write_zeroes()
279 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_zeroes()
320 bio->bi_iter.bi_sector = sector; in __blkdev_issue_zero_pages()
Dbio.c564 if (new_size >= bio->bi_iter.bi_size) in bio_truncate()
594 bio->bi_iter.bi_size = new_size; in bio_truncate()
630 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()
633 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()
634 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()
691 bio->bi_iter = bio_src->bi_iter; in __bio_clone_fast()
800 if (((bio->bi_iter.bi_size + len) >> 9) > max_sectors) in bio_add_hw_page()
827 bio->bi_iter.bi_size += len; in bio_add_hw_page()
881 if (bio->bi_iter.bi_size > UINT_MAX - len) { in __bio_try_merge_page()
886 bio->bi_iter.bi_size += len; in __bio_try_merge_page()
[all …]
Dblk-merge.c97 tmp = bio->bi_iter.bi_sector + split_sectors - alignment; in blk_bio_discard_split()
147 unsigned sectors = blk_max_size_offset(q, bio->bi_iter.bi_sector, 0); in get_max_io_size()
151 unsigned start_offset = bio->bi_iter.bi_sector & (pbs - 1); in get_max_io_size()
341 trace_block_split(q, split, (*bio)->bi_iter.bi_sector); in __blk_queue_split()
509 if (likely(bio->bi_iter.bi_size)) { in __blk_bios_map_sg()
608 blk_rq_get_max_sectors(req, bio->bi_iter.bi_sector)) { in ll_front_merge_fn()
891 else if (blk_rq_pos(rq) + blk_rq_sectors(rq) == bio->bi_iter.bi_sector) in blk_try_merge()
893 else if (blk_rq_pos(rq) - bio_sectors(bio) == bio->bi_iter.bi_sector) in blk_try_merge()
930 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_back_merge()
955 req->__sector = bio->bi_iter.bi_sector; in bio_attempt_front_merge()
[all …]
Dbounce.c166 struct bvec_iter orig_iter = bio_orig->bi_iter; in bounce_end_io()
253 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
254 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
Dblk-core.c255 if (bio->bi_iter.bi_size) in req_bio_endio()
258 bio->bi_iter.bi_sector = rq->__sector; in req_bio_endio()
262 if (bio->bi_iter.bi_size == 0 && !(rq->rq_flags & RQF_FLUSH_SEQ)) in req_bio_endio()
716 if (should_fail_request(&bio->bi_disk->part0, bio->bi_iter.bi_size)) in should_fail_bio()
733 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()
752 if (unlikely(should_fail_request(p, bio->bi_iter.bi_size))) in blk_partition_remap()
760 bio->bi_iter.bi_sector += p->start_sect; in blk_partition_remap()
762 bio->bi_iter.bi_sector - p->start_sect); in blk_partition_remap()
777 sector_t pos = bio->bi_iter.bi_sector; in blk_check_zone_append()
1095 task_io_account_read(bio->bi_iter.bi_size); in submit_bio()
[all …]
Dblk-crypto-fallback.c174 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in blk_crypto_clone_bio()
175 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in blk_crypto_clone_bio()
513 f_ctx->crypt_iter = bio->bi_iter; in blk_crypto_fallback_bio_prep()
/kernel/linux/linux-5.10/include/linux/
Dbio.h37 #define bio_page(bio) bio_iter_page((bio), (bio)->bi_iter)
38 #define bio_offset(bio) bio_iter_offset((bio), (bio)->bi_iter)
39 #define bio_iovec(bio) bio_iter_iovec((bio), (bio)->bi_iter)
44 #define bio_sectors(bio) bvec_iter_sectors((bio)->bi_iter)
45 #define bio_end_sector(bio) bvec_iter_end_sector((bio)->bi_iter)
59 bio->bi_iter.bi_size && in bio_has_data()
89 return bio->bi_iter.bi_size; in bio_cur_bytes()
113 if (bio->bi_iter.bi_size > UINT_MAX - len) in bio_full()
155 __bio_for_each_segment(bvl, bio, iter, (bio)->bi_iter)
165 __bio_for_each_bvec(bvl, bio, iter, (bio)->bi_iter)
[all …]
/kernel/linux/linux-5.10/drivers/s390/block/
Dxpram.c196 if ((bio->bi_iter.bi_sector & 7) != 0 || in xpram_submit_bio()
197 (bio->bi_iter.bi_size & 4095) != 0) in xpram_submit_bio()
200 if ((bio->bi_iter.bi_size >> 12) > xdev->size) in xpram_submit_bio()
203 if ((bio->bi_iter.bi_sector >> 3) > 0xffffffffU - xdev->offset) in xpram_submit_bio()
205 index = (bio->bi_iter.bi_sector >> 3) + xdev->offset; in xpram_submit_bio()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_bio_io.c31 bio->bi_iter.bi_sector = sector; in xfs_rw_bdev()
44 bio->bi_iter.bi_sector = bio_end_sector(prev); in xfs_rw_bdev()
/kernel/linux/linux-5.10/drivers/block/
Dpktcdvd.c655 if (s <= tmp->bio->bi_iter.bi_sector) in pkt_rbtree_find()
664 if (s > tmp->bio->bi_iter.bi_sector) { in pkt_rbtree_find()
669 BUG_ON(s > tmp->bio->bi_iter.bi_sector); in pkt_rbtree_find()
680 sector_t s = node->bio->bi_iter.bi_sector; in pkt_rbtree_insert()
686 if (s < tmp->bio->bi_iter.bi_sector) in pkt_rbtree_insert()
865 if (bio && (bio->bi_iter.bi_sector == in pkt_iosched_process_queue()
898 bio->bi_iter.bi_size >> 10; in pkt_iosched_process_queue()
955 (unsigned long long)bio->bi_iter.bi_sector, bio->bi_status); in pkt_end_io_read()
1003 int first_frame = (bio->bi_iter.bi_sector - pkt->sector) / in pkt_gather_data()
1005 int num_frames = bio->bi_iter.bi_size / CD_FRAMESIZE; in pkt_gather_data()
[all …]
/kernel/linux/linux-5.10/mm/
Dpage_io.c38 bio->bi_iter.bi_sector = map_swap_page(page, &bdev); in get_swap_bio()
40 bio->bi_iter.bi_sector <<= PAGE_SHIFT - 9; in get_swap_bio()
65 (unsigned long long)bio->bi_iter.bi_sector); in end_swap_bio_write()
130 (unsigned long long)bio->bi_iter.bi_sector); in end_swap_bio_read()
/kernel/linux/linux-5.10/drivers/nvdimm/
Dnd_virtio.c107 if (bio && bio->bi_iter.bi_sector != -1) { in async_pmem_flush()
114 child->bi_iter.bi_sector = -1; in async_pmem_flush()
/kernel/linux/linux-5.10/drivers/block/rsxx/
Ddev.c145 if (bio->bi_iter.bi_size == 0) { in rsxx_submit_bio()
165 (u64)bio->bi_iter.bi_sector << 9, bio->bi_iter.bi_size); in rsxx_submit_bio()

1234567