Home
last modified time | relevance | path

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

1234567

/Linux-v6.6/drivers/md/
Ddm-bio-record.h26 struct bvec_iter bi_iter; member
37 bd->bi_iter = bio->bi_iter; in dm_bio_record()
49 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-flakey.c338 bio->bi_iter.bi_sector = flakey_map_sector(ti, bio->bi_iter.bi_sector); in flakey_map_bio()
360 (unsigned long long)bio->bi_iter.bi_sector, in corrupt_bio_common()
361 bio->bi_iter.bi_size); in corrupt_bio_common()
386 corrupt_byte = get_random_u32() % bio->bi_iter.bi_size; in corrupt_bio_random()
417 struct bvec_iter iter = bio->bi_iter; in clone_bio()
419 if (unlikely(bio->bi_iter.bi_size > UIO_MAXIOV << PAGE_SHIFT)) in clone_bio()
422 size = bio->bi_iter.bi_size; in clone_bio()
431 clone->bi_iter.bi_sector = flakey_map_sector(ti, bio->bi_iter.bi_sector); in clone_bio()
Ddm-ebs-target.c50 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks()
145 sector_t block, blocks, sector = bio->bi_iter.bi_sector; in __ebs_discard_bio()
169 sector_t blocks, sector = bio->bi_iter.bi_sector; in __ebs_forget_bio()
195 block1 = __sector_to_block(ec, bio->bi_iter.bi_sector); in __ebs_process_bios()
200 if (__block_mod(bio->bi_iter.bi_sector, ec->u_bs)) in __ebs_process_bios()
366 bio->bi_iter.bi_sector = ec->start + dm_target_offset(ti, bio->bi_iter.bi_sector); in ebs_map()
375 if (likely(__block_mod(bio->bi_iter.bi_sector, ec->u_bs) || in ebs_map()
Dmd-multipath.c93 (unsigned long long)bio->bi_iter.bi_sector); in multipath_end_request()
126 mp_bh->bio.bi_iter.bi_sector += multipath->rdev->data_offset; in multipath_make_request()
305 bio->bi_iter.bi_sector = mp_bh->master_bio->bi_iter.bi_sector; in multipathd()
310 (unsigned long long)bio->bi_iter.bi_sector); in multipathd()
315 (unsigned long long)bio->bi_iter.bi_sector); in multipathd()
317 bio->bi_iter.bi_sector += in multipathd()
Ddm-writecache.c1255 struct bio_vec bv = bio_iter_iovec(bio, bio->bi_iter); in bio_copy_block()
1307 writecache_discard(wc, bio->bi_iter.bi_sector, in writecache_flush_thread()
1344 read_original_sector(wc, e) - bio->bi_iter.bi_sector; in writecache_map_remap_origin()
1345 if (next_boundary < bio->bi_iter.bi_size >> SECTOR_SHIFT) in writecache_map_remap_origin()
1357 e = writecache_find_entry(wc, bio->bi_iter.bi_sector, WFE_RETURN_FOLLOWING); in writecache_map_read()
1358 if (e && read_original_sector(wc, e) == bio->bi_iter.bi_sector) { in writecache_map_read()
1362 if (bio->bi_iter.bi_size) in writecache_map_read()
1368 bio->bi_iter.bi_sector = cache_sector(wc, e); in writecache_map_read()
1375 wc->stats.reads += (bio->bi_iter.bi_size - wc->block_size) >> wc->block_size_bits; in writecache_map_read()
1389 while (bio_size < bio->bi_iter.bi_size) { in writecache_bio_copy_ssd()
[all …]
Dmd-linear.c211 sector_t bio_sector = bio->bi_iter.bi_sector; in linear_make_request()
243 bio->bi_iter.bi_sector = bio->bi_iter.bi_sector - in linear_make_request()
262 (unsigned long long)bio->bi_iter.bi_sector, in linear_make_request()
Ddm-stripe.c254 stripe_map_range_sector(sc, bio->bi_iter.bi_sector, in stripe_map_range()
260 bio->bi_iter.bi_sector = begin + in stripe_map_range()
262 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
291 stripe_map_sector(sc, bio->bi_iter.bi_sector, in stripe_map()
292 &stripe, &bio->bi_iter.bi_sector); in stripe_map()
294 bio->bi_iter.bi_sector += sc->stripe[stripe].physical_start; in stripe_map()
Ddm-log-writes.c222 bio->bi_iter.bi_size = 0; in write_metadata()
223 bio->bi_iter.bi_sector = sector; in write_metadata()
275 bio->bi_iter.bi_size = 0; in write_inline_data()
276 bio->bi_iter.bi_sector = sector; in write_inline_data()
356 bio->bi_iter.bi_size = 0; in log_one_block()
357 bio->bi_iter.bi_sector = sector; in log_one_block()
374 bio->bi_iter.bi_size = 0; in log_one_block()
375 bio->bi_iter.bi_sector = sector; in log_one_block()
703 block->sector = bio_to_dev_sectors(lc, bio->bi_iter.bi_sector); in log_writes_map()
Ddm-zone.c392 if ((clone->bi_iter.bi_sector & (zsectors - 1)) != zwp_offset) in dm_zone_map_bio_begin()
403 clone->bi_iter.bi_sector += zwp_offset; in dm_zone_map_bio_begin()
607 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
608 clone->bi_iter.bi_sector & mask; in dm_zone_endio()
642 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
/Linux-v6.6/block/
Dbio.c255 bio->bi_iter.bi_sector = 0; in bio_init()
256 bio->bi_iter.bi_size = 0; in bio_init()
257 bio->bi_iter.bi_idx = 0; in bio_init()
258 bio->bi_iter.bi_bvec_done = 0; in bio_init()
636 if (new_size >= bio->bi_iter.bi_size) in bio_truncate()
666 bio->bi_iter.bi_size = new_size; in bio_truncate()
693 if (unlikely(bio->bi_iter.bi_sector >= maxsector)) in guard_bio_eod()
696 maxsector -= bio->bi_iter.bi_sector; in guard_bio_eod()
697 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()
816 bio->bi_iter = bio_src->bi_iter; in __bio_clone()
[all …]
Dblk-lib.c68 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
69 bio->bi_iter.bi_size = req_sects << 9; in __blkdev_issue_discard()
136 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_zeroes()
141 bio->bi_iter.bi_size = max_write_zeroes_sectors << 9; in __blkdev_issue_write_zeroes()
145 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_zeroes()
182 bio->bi_iter.bi_sector = sector; in __blkdev_issue_zero_pages()
329 bio->bi_iter.bi_sector = sector; in blkdev_issue_secure_erase()
330 bio->bi_iter.bi_size = len << SECTOR_SHIFT; in blkdev_issue_secure_erase()
Dbounce.c106 struct bvec_iter orig_iter = bio_orig->bi_iter; in bounce_end_io()
172 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
173 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
Dblk-merge.c23 *bv = mp_bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); in bio_get_first_bvec()
28 struct bvec_iter iter = bio->bi_iter; in bio_get_last_bvec()
32 if (bv->bv_len == bio->bi_iter.bi_size) in bio_get_last_bvec()
139 tmp = bio->bi_iter.bi_sector + split_sectors - in bio_split_discard()
178 blk_chunk_sectors_left(bio->bi_iter.bi_sector, in get_max_io_size()
182 start = bio->bi_iter.bi_sector & (pbs - 1); in get_max_io_size()
383 trace_block_split(split, bio->bi_iter.bi_sector); in __bio_split_to_limits()
554 if (likely(bio->bi_iter.bi_size)) { in __blk_bios_map_sg()
665 blk_rq_get_max_sectors(req, bio->bi_iter.bi_sector)) { in ll_front_merge_fn()
954 else if (blk_rq_pos(rq) + blk_rq_sectors(rq) == bio->bi_iter.bi_sector) in blk_try_merge()
[all …]
Dfops.c75 bio.bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_simple()
81 ret = bio.bi_iter.bi_size; in __blkdev_direct_IO_simple()
205 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO()
239 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO()
241 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO()
242 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO()
323 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_async()
342 dio->size = bio->bi_iter.bi_size; in __blkdev_direct_IO_async()
350 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO_async()
Dblk-core.c512 if (should_fail_request(bdev_whole(bio->bi_bdev), bio->bi_iter.bi_size)) in should_fail_bio()
530 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()
534 bio->bi_iter.bi_sector, nr_sectors, maxsector); in bio_check_eod()
547 if (unlikely(should_fail_request(p, bio->bi_iter.bi_size))) in blk_partition_remap()
550 bio->bi_iter.bi_sector += p->bd_start_sect; in blk_partition_remap()
552 bio->bi_iter.bi_sector - in blk_partition_remap()
572 if (!bdev_is_zone_start(bio->bi_bdev, bio->bi_iter.bi_sector) || in blk_check_zone_append()
828 task_io_account_read(bio->bi_iter.bi_size); in submit_bio()
/Linux-v6.6/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()
120 check->bi_iter.bi_sector = bio->bi_iter.bi_sector; in bch_data_verify()
121 check->bi_iter.bi_size = bio->bi_iter.bi_size; in bch_data_verify()
141 (uint64_t) bio->bi_iter.bi_sector); in bch_data_verify()
/Linux-v6.6/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;
103 __entry->sector = bio->bi_iter.bi_sector;
104 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
138 __entry->sector = bio->bi_iter.bi_sector;
139 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
169 __entry->sector = bio->bi_iter.bi_sector;
170 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
238 __entry->sector = bio->bi_iter.bi_sector;
[all …]
/Linux-v6.6/fs/btrfs/
Dbio.c200 repair_bbio->bio.bi_iter = repair_bbio->saved_iter; in btrfs_end_repair_bio()
268 repair_bio->bi_iter.bi_sector = failed_bbio->saved_iter.bi_sector; in repair_one_sector()
454 u64 physical = bio->bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_submit_dev_bio()
458 bio->bi_iter.bi_sector = zone_start >> SECTOR_SHIFT; in btrfs_submit_dev_bio()
462 __func__, bio_op(bio), bio->bi_opf, bio->bi_iter.bi_sector, in btrfs_submit_dev_bio()
464 dev->devid, bio->bi_iter.bi_size); in btrfs_submit_dev_bio()
491 bio->bi_iter.bi_sector = bioc->stripes[dev_nr].physical >> SECTOR_SHIFT; in btrfs_submit_mirrored_bio()
502 bio->bi_iter.bi_sector = smap->physical >> SECTOR_SHIFT; in __btrfs_submit_bio()
651 u64 logical = bio->bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_submit_chunk()
652 u64 length = bio->bi_iter.bi_size; in btrfs_submit_chunk()
[all …]
/Linux-v6.6/include/linux/
Dbio.h35 #define bio_page(bio) bio_iter_page((bio), (bio)->bi_iter)
36 #define bio_offset(bio) bio_iter_offset((bio), (bio)->bi_iter)
37 #define bio_iovec(bio) bio_iter_iovec((bio), (bio)->bi_iter)
42 #define bio_sectors(bio) bvec_iter_sectors((bio)->bi_iter)
43 #define bio_end_sector(bio) bvec_iter_end_sector((bio)->bi_iter)
57 bio->bi_iter.bi_size && in bio_has_data()
138 if (nbytes == bio->bi_iter.bi_size) { in bio_advance()
139 bio->bi_iter.bi_size = 0; in bio_advance()
152 __bio_for_each_segment(bvl, bio, iter, (bio)->bi_iter)
162 __bio_for_each_bvec(bvl, bio, iter, (bio)->bi_iter)
[all …]
/Linux-v6.6/fs/xfs/
Dxfs_bio_io.c31 bio->bi_iter.bi_sector = sector; in xfs_rw_bdev()
43 bio->bi_iter.bi_sector = bio_end_sector(prev); in xfs_rw_bdev()
/Linux-v6.6/drivers/block/
Dpktcdvd.c670 if (s <= tmp->bio->bi_iter.bi_sector) in pkt_rbtree_find()
679 if (s > tmp->bio->bi_iter.bi_sector) { in pkt_rbtree_find()
684 BUG_ON(s > tmp->bio->bi_iter.bi_sector); in pkt_rbtree_find()
695 sector_t s = node->bio->bi_iter.bi_sector; in pkt_rbtree_insert()
701 if (s < tmp->bio->bi_iter.bi_sector) in pkt_rbtree_insert()
882 if (bio && (bio->bi_iter.bi_sector == in pkt_iosched_process_queue()
915 bio->bi_iter.bi_size >> 10; in pkt_iosched_process_queue()
973 bio, pkt->sector, bio->bi_iter.bi_sector, bio->bi_status); in pkt_end_io_read()
1024 int first_frame = (bio->bi_iter.bi_sector - pkt->sector) / in pkt_gather_data()
1026 int num_frames = bio->bi_iter.bi_size / CD_FRAMESIZE; in pkt_gather_data()
[all …]
/Linux-v6.6/mm/
Dpage_io.c46 (unsigned long long)bio->bi_iter.bi_sector); in __end_swap_bio_write()
65 (unsigned long long)bio->bi_iter.bi_sector); in __end_swap_bio_read()
338 bio.bi_iter.bi_sector = swap_page_sector(page); in swap_writepage_bdev_sync()
360 bio->bi_iter.bi_sector = swap_page_sector(page); in swap_writepage_bdev_async()
467 bio.bi_iter.bi_sector = swap_page_sector(page); in swap_readpage_bdev_sync()
486 bio->bi_iter.bi_sector = swap_page_sector(page); in swap_readpage_bdev_async()
/Linux-v6.6/drivers/nvdimm/
Dnd_virtio.c107 if (bio && bio->bi_iter.bi_sector != -1) { in async_pmem_flush()
115 child->bi_iter.bi_sector = -1; in async_pmem_flush()

1234567