Home
last modified time | relevance | path

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

123456

/linux/drivers/md/
A Ddm-bio-record.h25 struct bvec_iter bi_iter; member
36 bd->bi_iter = bio->bi_iter; in dm_bio_record()
48 bio->bi_iter = bd->bi_iter; in dm_bio_restore()
A 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()
A 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()
A 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()
A Ddm-zone.c396 if ((clone->bi_iter.bi_sector & (zsectors - 1)) != zwp_offset) in dm_zone_map_bio_begin()
407 clone->bi_iter.bi_sector = in dm_zone_map_bio_begin()
408 orig_bio->bi_iter.bi_sector + zwp_offset; in dm_zone_map_bio_begin()
620 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
621 clone->bi_iter.bi_sector & mask; in dm_zone_endio()
655 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
A Dmd-linear.c221 sector_t bio_sector = bio->bi_iter.bi_sector; in linear_make_request()
251 bio->bi_iter.bi_sector = bio->bi_iter.bi_sector - in linear_make_request()
271 (unsigned long long)bio->bi_iter.bi_sector, in linear_make_request()
A 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()
A Ddm-log-writes.c225 bio->bi_iter.bi_size = 0; in write_metadata()
226 bio->bi_iter.bi_sector = sector; in write_metadata()
284 bio->bi_iter.bi_size = 0; in write_inline_data()
285 bio->bi_iter.bi_sector = sector; in write_inline_data()
371 bio->bi_iter.bi_size = 0; in log_one_block()
372 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()
A Ddm-writecache.c1249 struct bio_vec bv = bio_iter_iovec(bio, bio->bi_iter); in bio_copy_block()
1299 writecache_discard(wc, bio->bi_iter.bi_sector, in writecache_flush_thread()
1356 if (bio->bi_iter.bi_size) in writecache_map_read()
1362 bio->bi_iter.bi_sector = cache_sector(wc, e); in writecache_map_read()
1381 while (bio_size < bio->bi_iter.bi_size) { in writecache_bio_copy_ssd()
1412 bio->bi_iter.bi_sector = start_cache_sec; in writecache_bio_copy_ssd()
1475 } while (bio->bi_iter.bi_size); in writecache_map_write()
1537 bio->bi_iter.bi_sector = dm_target_offset(ti, bio->bi_iter.bi_sector); in writecache_map()
1542 (unsigned long long)bio->bi_iter.bi_sector, in writecache_map()
1543 bio->bi_iter.bi_size, wc->block_size); in writecache_map()
[all …]
A Ddm-flakey.c284 bio->bi_iter.bi_sector = in flakey_map_bio()
285 flakey_map_sector(ti, bio->bi_iter.bi_sector); in flakey_map_bio()
311 (unsigned long long)bio->bi_iter.bi_sector, bio->bi_iter.bi_size); in corrupt_bio_data()
/linux/block/
A Dbio.c262 bio->bi_iter.bi_sector = 0; in bio_init()
263 bio->bi_iter.bi_size = 0; in bio_init()
264 bio->bi_iter.bi_idx = 0; in bio_init()
265 bio->bi_iter.bi_bvec_done = 0; in bio_init()
587 bio->bi_iter.bi_size = new_size; in bio_truncate()
730 bio->bi_iter = bio_src->bi_iter; in __bio_clone_fast()
844 bio->bi_iter.bi_size += len; in __bio_try_merge_page()
921 bio->bi_iter.bi_size += len; in bio_add_hw_page()
1004 bio->bi_iter.bi_size += len; in __bio_add_page()
1065 bio->bi_iter.bi_size = size; in bio_iov_bvec_set()
[all …]
A Dblk-lib.c99 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
103 bio->bi_iter.bi_size = req_sects << 9; in __blkdev_issue_discard()
193 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_same()
202 bio->bi_iter.bi_size = max_write_same_sectors << 9; in __blkdev_issue_write_same()
206 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_same()
269 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_zeroes()
276 bio->bi_iter.bi_size = max_write_zeroes_sectors << 9; in __blkdev_issue_write_zeroes()
280 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_zeroes()
321 bio->bi_iter.bi_sector = sector; in __blkdev_issue_zero_pages()
A Dblk-merge.c20 *bv = mp_bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); in bio_get_first_bvec()
25 struct bvec_iter iter = bio->bi_iter; in bio_get_last_bvec()
29 if (bv->bv_len == bio->bi_iter.bi_size) in bio_get_last_bvec()
130 tmp = bio->bi_iter.bi_sector + split_sectors - alignment; in blk_bio_discard_split()
184 unsigned start_offset = bio->bi_iter.bi_sector & (pbs - 1); in get_max_io_size()
366 trace_block_split(split, (*bio)->bi_iter.bi_sector); in __blk_queue_split()
536 if (likely(bio->bi_iter.bi_size)) { in __blk_bios_map_sg()
979 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_back_merge()
1004 req->__sector = bio->bi_iter.bi_sector; in bio_attempt_front_merge()
1005 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_front_merge()
[all …]
A Dbounce.c106 struct bvec_iter orig_iter = bio_orig->bi_iter; in bounce_end_io()
176 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
177 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
A Dfops.c80 bio.bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_simple()
89 ret = bio.bi_iter.bi_size; in __blkdev_direct_IO_simple()
227 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO()
246 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO()
251 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO()
252 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO()
328 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_async()
348 dio->size = bio->bi_iter.bi_size; in __blkdev_direct_IO_async()
358 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO_async()
A Dblk-crypto-fallback.c174 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in blk_crypto_fallback_clone_bio()
175 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in blk_crypto_fallback_clone_bio()
517 f_ctx->crypt_iter = bio->bi_iter; in blk_crypto_fallback_bio_prep()
/linux/drivers/md/bcache/
A Drequest.c123 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()
835 s->iop.bio->bi_iter.bi_sector = in cached_dev_read_done()
836 s->cache_miss->bi_iter.bi_sector; in cached_dev_read_done()
922 cache_bio->bi_iter.bi_sector = miss->bi_iter.bi_sector; in cached_dev_cache_miss()
1206 if (!bio->bi_iter.bi_size) { in cached_dev_submit_bio()
1252 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1254 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1258 if (!bio->bi_iter.bi_size) in flash_dev_cache_miss()
[all …]
A 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()
140 (uint64_t) bio->bi_iter.bi_sector); in bch_data_verify()
/linux/include/trace/events/
A 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/include/linux/
A Dbio.h33 #define bio_page(bio) bio_iter_page((bio), (bio)->bi_iter)
34 #define bio_offset(bio) bio_iter_offset((bio), (bio)->bi_iter)
35 #define bio_iovec(bio) bio_iter_iovec((bio), (bio)->bi_iter)
40 #define bio_sectors(bio) bvec_iter_sectors((bio)->bi_iter)
41 #define bio_end_sector(bio) bvec_iter_end_sector((bio)->bi_iter)
55 bio->bi_iter.bi_size && in bio_has_data()
137 if (nbytes == bio->bi_iter.bi_size) { in bio_advance()
138 bio->bi_iter.bi_size = 0; in bio_advance()
151 __bio_for_each_segment(bvl, bio, iter, (bio)->bi_iter)
161 __bio_for_each_bvec(bvl, bio, iter, (bio)->bi_iter)
/linux/drivers/block/
A 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()
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()
1172 get_zone(bio->bi_iter.bi_sector, pd)); in pkt_handle_queue()
1221 src_iter = src->bi_iter; in bio_list_copy_data()
1229 dst_iter = dst->bi_iter; in bio_list_copy_data()
2435 if (!bio->bi_iter.bi_size || (bio->bi_iter.bi_size % CD_FRAMESIZE)) { in pkt_submit_bio()
[all …]
/linux/fs/xfs/
A Dxfs_bio_io.c66 bio->bi_iter.bi_sector = sector; in xfs_rw_bdev()
79 bio->bi_iter.bi_sector = bio_end_sector(prev); in xfs_rw_bdev()
/linux/mm/
A Dpage_io.c46 (unsigned long long)bio->bi_iter.bi_sector); in end_swap_bio_write()
111 (unsigned long long)bio->bi_iter.bi_sector); in end_swap_bio_read()
342 bio->bi_iter.bi_sector = swap_page_sector(page); in __swap_writepage()
407 bio->bi_iter.bi_sector = swap_page_sector(page); in swap_readpage()
/linux/fs/btrfs/
A Draid56.c1090 last_end += last->bi_iter.bi_size; in rbio_add_io_page()
1107 bio->bi_iter.bi_size = 0; in rbio_add_io_page()
1109 bio->bi_iter.bi_sector = disk_start >> 9; in rbio_add_io_page()
1154 start = bio->bi_iter.bi_sector << 9; in index_rbio_pages()
1159 bio->bi_iter = btrfs_bio(bio)->iter; in index_rbio_pages()
1337 u64 physical = bio->bi_iter.bi_sector; in find_bio_stripe()
1361 u64 logical = bio->bi_iter.bi_sector << 9; in find_logical_bio_stripe()
1734 rbio->bio_list_bytes = bio->bi_iter.bi_size; in raid56_parity_write()
2144 __func__, bio->bi_iter.bi_sector << 9, in raid56_parity_recover()
2239 ASSERT(!bio->bi_iter.bi_size); in raid56_parity_alloc_scrub_rbio()
[all …]
/linux/drivers/block/rsxx/
A 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()

Completed in 45 milliseconds

123456