Home
last modified time | relevance | path

Searched refs:bio_sectors (Results 1 – 25 of 42) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/md/bcache/
Drequest.c114 bio_sectors(bio), (uint64_t) bio->bi_iter.bi_sector); in bch_data_invalidate()
116 while (bio_sectors(bio)) { in bch_data_invalidate()
117 unsigned int sectors = min(bio_sectors(bio), in bch_data_invalidate()
195 if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) in bch_data_insert_start()
222 if (!bch_alloc_sectors(op->c, k, bio_sectors(bio), in bch_data_insert_start()
398 bio_sectors(bio) & (c->cache->sb.block_size - 1)) { in check_should_bypass()
454 bch_rescale_priorities(c, bio_sectors(bio)); in check_should_bypass()
457 bch_mark_sectors_bypassed(c, dc, bio_sectors(bio)); in check_should_bypass()
525 unsigned int bio_sectors = bio_sectors(bio); in cache_lookup_fn() local
536 BUG_ON(bio_sectors <= sectors); in cache_lookup_fn()
[all …]
Dwriteback.h113 bio_sectors(bio))) in should_writeback()
/kernel/linux/linux-5.10/include/trace/events/
Dblock.h253 __entry->nr_sector = bio_sectors(bio);
289 __entry->nr_sector = bio_sectors(bio);
317 __entry->nr_sector = bio_sectors(bio);
384 __entry->nr_sector = bio_sectors(bio);
412 __entry->nr_sector = bio ? bio_sectors(bio) : 0;
588 __entry->nr_sector = bio_sectors(bio);
/kernel/linux/linux-5.10/block/
Dblk-merge.c87 if (bio_sectors(bio) <= max_discard_sectors) in blk_bio_discard_split()
115 if (bio_sectors(bio) <= q->limits.max_write_zeroes_sectors) in blk_bio_write_zeroes_split()
131 if (bio_sectors(bio) <= q->limits.max_write_same_sectors) in blk_bio_write_same_split()
592 if (blk_rq_sectors(req) + bio_sectors(bio) > in ll_back_merge_fn()
611 if (blk_rq_sectors(req) + bio_sectors(bio) > in ll_front_merge_fn()
627 if (blk_rq_sectors(req) + bio_sectors(next->bio) > in req_attempt_discard_merge()
904 else if (blk_rq_pos(rq) - bio_sectors(bio) == bio->bi_iter.bi_sector) in blk_try_merge()
982 if (blk_rq_sectors(req) + bio_sectors(bio) > in bio_attempt_discard_merge()
Dbio-integrity.c226 if (!bio_sectors(bio)) in bio_integrity_prep()
242 intervals = bio_integrity_intervals(bi, bio_sectors(bio)); in bio_integrity_prep()
402 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in bio_integrity_trim()
Dblk-core.c701 if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) in bio_check_ro()
729 unsigned int nr_sectors = bio_sectors(bio); in bio_check_eod()
757 if (bio_sectors(bio)) { in blk_partition_remap()
778 int nr_sectors = bio_sectors(bio); in blk_check_zone_append()
845 if (!bio_sectors(bio)) { in submit_bio_checks()
1090 count = bio_sectors(bio); in submit_bio()
1337 return __part_start_io_acct(*part, bio_sectors(bio), bio_op(bio)); in part_start_io_acct()
Dbounce.c308 if (!passthrough && sectors < bio_sectors(*bio_orig)) { in __blk_queue_bounce()
Dblk-crypto-fallback.c222 if (num_sectors < bio_sectors(bio)) { in blk_crypto_split_bio_if_needed()
/kernel/linux/linux-5.10/include/linux/
Dbio.h44 #define bio_sectors(bio) bvec_iter_sectors((bio)->bi_iter) macro
377 if (sectors >= bio_sectors(bio)) in bio_next_split()
Dblk-cgroup.h527 bio_issue_init(&bio->bi_issue, bio_sectors(bio)); in blkcg_bio_issue_init()
/kernel/linux/linux-5.10/drivers/md/
Ddm-log-writes.c692 if (!bio_sectors(bio) && !flush_bio) in log_writes_map()
726 block->nr_sectors = bio_to_dev_sectors(lc, bio_sectors(bio)); in log_writes_map()
738 if (flush_bio && !bio_sectors(bio)) { in log_writes_map()
Ddm-zoned.h46 #define dmz_bio_blocks(bio) dmz_sect2blk(bio_sectors(bio))
Ddm-linear.c93 if (bio_sectors(bio) || op_is_zone_mgmt(bio_op(bio))) in linear_map_bio()
Ddm-delay.c298 if (bio_sectors(bio)) in delay_map()
Ddm-flakey.c283 if (bio_sectors(bio) || op_is_zone_mgmt(bio_op(bio))) in flakey_map_bio()
Ddm-crypt.c1140 if (!bio_sectors(bio) || !io->cc->on_disk_tag_size) in dm_crypt_integrity_io_alloc()
1147 tag_len = io->cc->on_disk_tag_size * (bio_sectors(bio) >> io->cc->sector_shift); in dm_crypt_integrity_io_alloc()
2064 sector += bio_sectors(clone); in kcryptd_crypt_write_convert()
3354 if (bio_sectors(bio)) in crypt_map()
3381 unsigned tag_len = cc->on_disk_tag_size * (bio_sectors(bio) >> cc->sector_shift); in crypt_map()
3386 if (bio_sectors(bio) > cc->tag_pool_max_sectors) in crypt_map()
Ddm-ebs-target.c49 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks()
Draid1.c1181 r1_bio->sectors = bio_sectors(bio); in init_r1bio()
1281 if (max_sectors < bio_sectors(bio)) { in raid1_read_request()
1452 if (max_sectors < bio_sectors(bio)) { in raid1_write_request()
1565 bio->bi_iter.bi_sector, bio_sectors(bio)); in raid1_make_request()
2211 md_sync_acct(conf->mirrors[i].rdev->bdev, bio_sectors(wbio)); in sync_request_write()
Ddm-integrity.c1519 if (likely(!bio->bi_status) && unlikely(bio_sectors(bio) != dio->range.n_sectors)) { in dec_in_flight()
1755 sector_t end_boundary = (sec + bio_sectors(bio) - 1) >> log2_max_io_len; in dm_integrity_map()
1777 if (unlikely(dio->range.logical_sector + bio_sectors(bio) > ic->provided_data_sectors)) { in dm_integrity_map()
1779 dio->range.logical_sector, bio_sectors(bio), in dm_integrity_map()
1783 …if (unlikely((dio->range.logical_sector | bio_sectors(bio)) & (unsigned)(ic->sectors_per_block - 1… in dm_integrity_map()
1786 dio->range.logical_sector, bio_sectors(bio)); in dm_integrity_map()
1805 unsigned wanted_tag_size = bio_sectors(bio) >> ic->sb->log2_sectors_per_block; in dm_integrity_map()
2011 dio->range.n_sectors = bio_sectors(bio); in dm_integrity_map_continue()
Draid10.c1175 if (max_sectors < bio_sectors(bio)) { in raid10_read_request()
1460 if (r10_bio->sectors < bio_sectors(bio)) { in raid10_write_request()
1510 int sectors = bio_sectors(bio); in raid10_make_request()
2083 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write()
2107 bio_sectors(tbio)); in sync_request_write()
2238 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(wbio)); in recovery_request_write()
2244 bio_sectors(wbio2)); in recovery_request_write()
Ddm.c606 bio->bi_iter.bi_sector, bio_sectors(bio), in start_io_acct()
617 bio->bi_iter.bi_sector, bio_sectors(bio), in end_io_acct()
1651 ci.sector_count = bio_sectors(bio); in __split_and_process_bio()
1663 struct bio *b = bio_split(bio, bio_sectors(bio) - ci.sector_count, in __split_and_process_bio()
/kernel/linux/linux-5.10/drivers/ide/
Dide-cd.c151 unsigned long bio_sectors; in cdrom_analyze_sense_data() local
192 bio_sectors = max(bio_sectors(failed_command->bio), 4U); in cdrom_analyze_sense_data()
193 sector &= ~(bio_sectors - 1); in cdrom_analyze_sense_data()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c194 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in nvmet_bdev_alloc_bip()
/kernel/linux/linux-5.10/fs/ext4/
Dpage-io.c336 (unsigned) bio_sectors(bio), in ext4_end_bio()
/kernel/linux/linux-5.10/drivers/block/
Dps3disk.c94 __func__, __LINE__, i, bio_sectors(iter.bio), in ps3disk_scatter_gather()

12