Home
last modified time | relevance | path

Searched refs:bi_sector (Results 1 – 25 of 135) sorted by relevance

123456

/Linux-v6.1/drivers/md/
Ddm-ebs-target.c49 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks()
71 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec()
72 sector_t block = __sector_to_block(ec, iter->bi_sector); in __ebs_rw_bvec()
144 sector_t block, blocks, sector = bio->bi_iter.bi_sector; in __ebs_discard_bio()
168 sector_t blocks, sector = bio->bi_iter.bi_sector; in __ebs_forget_bio()
194 block1 = __sector_to_block(ec, bio->bi_iter.bi_sector); in __ebs_process_bios()
199 if (__block_mod(bio->bi_iter.bi_sector, ec->u_bs)) in __ebs_process_bios()
365 bio->bi_iter.bi_sector = ec->start + dm_target_offset(ti, bio->bi_iter.bi_sector); in ebs_map()
374 if (likely(__block_mod(bio->bi_iter.bi_sector, ec->u_bs) || in ebs_map()
Dmd-faulty.c69 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()
Dmd-multipath.c93 (unsigned long long)bio->bi_iter.bi_sector); in multipath_end_request()
125 mp_bh->bio.bi_iter.bi_sector += multipath->rdev->data_offset; in multipath_make_request()
304 bio->bi_iter.bi_sector = mp_bh->master_bio->bi_iter.bi_sector; in multipathd()
309 (unsigned long long)bio->bi_iter.bi_sector); in multipathd()
314 (unsigned long long)bio->bi_iter.bi_sector); in multipathd()
316 bio->bi_iter.bi_sector += in multipathd()
Ddm-linear.c80 static sector_t linear_map_sector(struct dm_target *ti, sector_t bi_sector) in linear_map_sector() argument
84 return lc->start + dm_target_offset(ti, bi_sector); in linear_map_sector()
92 bio->bi_iter.bi_sector = linear_map_sector(ti, bio->bi_iter.bi_sector); in linear_map()
Dmd-linear.c211 sector_t bio_sector = bio->bi_iter.bi_sector; in linear_make_request()
241 bio->bi_iter.bi_sector = bio->bi_iter.bi_sector - in linear_make_request()
260 (unsigned long long)bio->bi_iter.bi_sector, in linear_make_request()
Ddm-flakey.c275 static sector_t flakey_map_sector(struct dm_target *ti, sector_t bi_sector) in flakey_map_sector() argument
279 return fc->start + dm_target_offset(ti, bi_sector); in flakey_map_sector()
287 bio->bi_iter.bi_sector = flakey_map_sector(ti, bio->bi_iter.bi_sector); in flakey_map_bio()
313 (unsigned long long)bio->bi_iter.bi_sector, bio->bi_iter.bi_size); in corrupt_bio_data()
Ddm-stripe.c255 stripe_map_range_sector(sc, bio->bi_iter.bi_sector, in stripe_map_range()
261 bio->bi_iter.bi_sector = begin + in stripe_map_range()
292 stripe_map_sector(sc, bio->bi_iter.bi_sector, in stripe_map()
293 &stripe, &bio->bi_iter.bi_sector); in stripe_map()
295 bio->bi_iter.bi_sector += sc->stripe[stripe].physical_start; in stripe_map()
Ddm-zone.c393 if ((clone->bi_iter.bi_sector & (zsectors - 1)) != zwp_offset) in dm_zone_map_bio_begin()
404 clone->bi_iter.bi_sector += zwp_offset; in dm_zone_map_bio_begin()
608 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
609 clone->bi_iter.bi_sector & mask; in dm_zone_endio()
643 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
Ddm-io-rewind.c62 bip->bip_iter.bi_sector -= bio_integrity_intervals(bi, bytes_done >> 9); in dm_bio_integrity_rewind()
115 iter->bi_sector -= bytes >> 9; in dm_bio_rewind_iter()
Ddm-stats.c616 sector_t bi_sector, sector_t end_sector, in __dm_stat_bio() argument
623 if (end_sector <= s->start || bi_sector >= s->end) in __dm_stat_bio()
625 if (unlikely(bi_sector < s->start)) { in __dm_stat_bio()
629 rel_sector = bi_sector - s->start; in __dm_stat_bio()
630 todo = end_sector - bi_sector; in __dm_stat_bio()
654 sector_t bi_sector, unsigned bi_sectors, bool end, in dm_stats_account_io() argument
667 end_sector = bi_sector + bi_sectors; in dm_stats_account_io()
676 (bi_sector == (READ_ONCE(last->last_sector) && in dm_stats_account_io()
695 __dm_stat_bio(s, bi_rw, bi_sector, end_sector, end, duration_jiffies, stats_aux); in dm_stats_account_io()
Ddm-unstripe.c119 sector_t sector = bio->bi_iter.bi_sector; in map_to_core()
139 bio->bi_iter.bi_sector = map_to_core(ti, bio) + uc->physical_start; in unstripe_map()
/Linux-v6.1/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()
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()
520 if (bkey_cmp(k, &KEY(s->iop.inode, bio->bi_iter.bi_sector, 0)) <= 0) in cache_lookup_fn()
524 KEY_START(k) > bio->bi_iter.bi_sector) { in cache_lookup_fn()
528 KEY_START(k) - bio->bi_iter.bi_sector) in cache_lookup_fn()
[all …]
Ddebug.c54 bio->bi_iter.bi_sector = PTR_OFFSET(&b->key, 0); in bch_btree_verify()
120 check->bi_iter.bi_sector = bio->bi_iter.bi_sector; in bch_data_verify()
141 (uint64_t) bio->bi_iter.bi_sector); in bch_data_verify()
/Linux-v6.1/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.1/block/
Dblk-lib.c68 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
136 bio->bi_iter.bi_sector = sector; 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()
Dblk-merge.c138 tmp = bio->bi_iter.bi_sector + split_sectors - in bio_split_discard()
176 blk_chunk_sectors_left(bio->bi_iter.bi_sector, in get_max_io_size()
180 start = bio->bi_iter.bi_sector & (pbs - 1); in get_max_io_size()
360 trace_block_split(split, bio->bi_iter.bi_sector); in __bio_split_to_limits()
649 blk_rq_get_max_sectors(req, bio->bi_iter.bi_sector)) { in ll_front_merge_fn()
909 else if (blk_rq_pos(rq) + blk_rq_sectors(rq) == bio->bi_iter.bi_sector) in blk_try_merge()
911 else if (blk_rq_pos(rq) - bio_sectors(bio) == bio->bi_iter.bi_sector) in blk_try_merge()
973 req->__sector = bio->bi_iter.bi_sector; in bio_attempt_front_merge()
Dbounce.c172 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
/Linux-v6.1/include/trace/events/
Dbcache.h28 __entry->sector = bio->bi_iter.bi_sector;
29 __entry->orig_sector = bio->bi_iter.bi_sector - 16;
103 __entry->sector = bio->bi_iter.bi_sector;
138 __entry->sector = bio->bi_iter.bi_sector;
169 __entry->sector = bio->bi_iter.bi_sector;
238 __entry->sector = bio->bi_iter.bi_sector;
Dblock.h272 __entry->sector = bio->bi_iter.bi_sector;
300 __entry->sector = bio->bi_iter.bi_sector;
457 __entry->sector = bio->bi_iter.bi_sector;
496 __entry->sector = bio->bi_iter.bi_sector;
/Linux-v6.1/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()
/Linux-v6.1/fs/ext4/
Dpage-io.c327 sector_t bi_sector = bio->bi_iter.bi_sector; in ext4_end_bio() local
331 (long long) bio->bi_iter.bi_sector, in ext4_end_bio()
347 bi_sector >> (inode->i_blkbits - 9)); in ext4_end_bio()
402 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio()
/Linux-v6.1/fs/crypto/
Dbio.c70 bio->bi_iter.bi_sector = in fscrypt_zeroout_range_inline_crypt()
159 bio->bi_iter.bi_sector = pblk << (blockbits - 9); in fscrypt_zeroout_range()
/Linux-v6.1/drivers/block/
Dpktcdvd.c639 if (s <= tmp->bio->bi_iter.bi_sector) in pkt_rbtree_find()
648 if (s > tmp->bio->bi_iter.bi_sector) { in pkt_rbtree_find()
653 BUG_ON(s > tmp->bio->bi_iter.bi_sector); in pkt_rbtree_find()
664 sector_t s = node->bio->bi_iter.bi_sector; in pkt_rbtree_insert()
670 if (s < tmp->bio->bi_iter.bi_sector) in pkt_rbtree_insert()
851 if (bio && (bio->bi_iter.bi_sector == in pkt_iosched_process_queue()
941 (unsigned long long)bio->bi_iter.bi_sector, bio->bi_status); in pkt_end_io_read()
991 int first_frame = (bio->bi_iter.bi_sector - pkt->sector) / in pkt_gather_data()
1019 bio->bi_iter.bi_sector = pkt->sector + f * (CD_FRAMESIZE >> 9); in pkt_gather_data()
1117 zone = get_zone(bio->bi_iter.bi_sector, pd); in pkt_handle_queue()
[all …]
/Linux-v6.1/include/linux/
Dbvec.h39 sector_t bi_sector; /* device address in 512 byte member
151 .bi_sector = 0, \
/Linux-v6.1/mm/
Dpage_io.c48 (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()
360 bio->bi_iter.bi_sector = swap_page_sector(page); in __swap_writepage()
494 bio->bi_iter.bi_sector = swap_page_sector(page); in swap_readpage()

123456