/openbmc/linux/block/ |
H A D | blk-core.c | 505 if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) in bio_check_ro() 537 unsigned int nr_sectors = bio_sectors(bio); in bio_check_eod() 560 if (bio_sectors(bio)) { in blk_partition_remap() 576 int nr_sectors = bio_sectors(bio); in blk_check_zone_append() 767 if (!bio_sectors(bio)) { in submit_bio_noacct() 848 count_vm_events(PGPGIN, bio_sectors(bio)); in submit_bio() 850 count_vm_events(PGPGOUT, bio_sectors(bio)); in submit_bio() 1018 bdev_end_io_acct(orig_bdev, bio_op(bio), bio_sectors(bio), start_time); in bio_end_io_acct_remapped()
|
H A D | blk-merge.c | 130 if (bio_sectors(bio) <= max_discard_sectors) in bio_split_discard() 156 if (bio_sectors(bio) <= lim->max_write_zeroes_sectors) in bio_split_write_zeroes() 653 if (blk_rq_sectors(req) + bio_sectors(bio) > in ll_back_merge_fn() 672 if (blk_rq_sectors(req) + bio_sectors(bio) > in ll_front_merge_fn() 688 if (blk_rq_sectors(req) + bio_sectors(next->bio) > in req_attempt_discard_merge() 966 else if (blk_rq_pos(rq) - bio_sectors(bio) == bio->bi_iter.bi_sector) in blk_try_merge() 1048 if (blk_rq_sectors(req) + bio_sectors(bio) > in bio_attempt_discard_merge()
|
H A D | bio-integrity.c | 228 if (!bio_sectors(bio)) in bio_integrity_prep() 254 len = bio_integrity_bytes(bi, bio_sectors(bio)); in bio_integrity_prep() 397 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in bio_integrity_trim()
|
H A D | bounce.c | 228 if (sectors < bio_sectors(bio_orig)) { in __blk_queue_bounce()
|
H A D | blk-cgroup.h | 381 bio_issue_init(&bio->bi_issue, bio_sectors(bio)); in blkcg_bio_issue_init()
|
H A D | blk-crypto-fallback.c | 223 if (num_sectors < bio_sectors(bio)) { in blk_crypto_fallback_split_bio_if_needed()
|
H A D | bio.c | 1630 BUG_ON(sectors >= bio_sectors(bio)); in bio_split() 1666 offset + size > bio_sectors(bio))) in bio_trim()
|
/openbmc/linux/drivers/md/bcache/ |
H A D | request.c | 114 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 …]
|
H A D | writeback.h | 117 bio_sectors(bio))) in should_writeback()
|
/openbmc/linux/drivers/md/ |
H A D | dm-zone.c | 135 return !op_is_flush(bio->bi_opf) && bio_sectors(bio); in dm_is_zone_write() 495 if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) in dm_need_zone_wp_tracking() 534 orig_bio_details.nr_sectors = bio_sectors(clone); in dm_zone_map_bio() 638 if (WARN_ON_ONCE(zwp_offset < bio_sectors(orig_bio))) in dm_zone_endio() 643 zwp_offset - bio_sectors(orig_bio); in dm_zone_endio()
|
H A D | dm.c | 505 return bio_sectors(bio); in dm_io_sectors() 1327 unsigned int bio_sectors = bio_sectors(bio); in dm_accept_partial_bio() local 1332 BUG_ON(bio_sectors > *tio->len_ptr); in dm_accept_partial_bio() 1333 BUG_ON(n_sectors > bio_sectors); in dm_accept_partial_bio() 1335 *tio->len_ptr -= bio_sectors - n_sectors; in dm_accept_partial_bio() 1344 io->sector_offset = bio_sectors(io->orig_bio); in dm_accept_partial_bio() 1468 io->sector_offset = bio_sectors(ci->bio); in setup_split_accounting() 1743 ci->sector_count = bio_sectors(bio); in init_clone_info()
|
H A D | dm-log-writes.c | 670 if (!bio_sectors(bio) && !flush_bio) in log_writes_map() 704 block->nr_sectors = bio_to_dev_sectors(lc, bio_sectors(bio)); in log_writes_map() 716 if (flush_bio && !bio_sectors(bio)) { in log_writes_map()
|
H A D | dm-zoned.h | 46 #define dmz_bio_blocks(bio) dmz_sect2blk(bio_sectors(bio))
|
H A D | raid10.c | 1231 if (max_sectors < bio_sectors(bio)) { in raid10_read_request() 1543 if (r10_bio->sectors < bio_sectors(bio)) { in raid10_write_request() 1706 if (bio_sectors(bio) < stripe_size*2) in raid10_handle_discard() 1724 split_size = bio_sectors(bio) - remainder; in raid10_handle_discard() 1905 int sectors = bio_sectors(bio); in raid10_make_request() 2490 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write() 2513 bio_sectors(tbio)); in sync_request_write() 2647 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(wbio)); in recovery_request_write() 2653 bio_sectors(wbio2)); in recovery_request_write()
|
H A D | dm-ebs-target.c | 50 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks()
|
H A D | dm-integrity.c | 1626 if (likely(!bio->bi_status) && unlikely(bio_sectors(bio) != dio->range.n_sectors)) { in dec_in_flight() 1741 alignment = dio->range.logical_sector | bio_sectors(bio) | (PAGE_SIZE >> SECTOR_SHIFT); in integrity_recheck() 1943 sector_t end_boundary = (sec + bio_sectors(bio) - 1) >> log2_max_io_len; in dm_integrity_map() 1967 if (unlikely(dio->range.logical_sector + bio_sectors(bio) > ic->provided_data_sectors)) { in dm_integrity_map() 1969 dio->range.logical_sector, bio_sectors(bio), in dm_integrity_map() 1973 …if (unlikely((dio->range.logical_sector | bio_sectors(bio)) & (unsigned int)(ic->sectors_per_block… in dm_integrity_map() 1976 dio->range.logical_sector, bio_sectors(bio)); in dm_integrity_map() 1996 unsigned int wanted_tag_size = bio_sectors(bio) >> ic->sb->log2_sectors_per_block; in dm_integrity_map() 2208 dio->range.n_sectors = bio_sectors(bio); in dm_integrity_map_continue()
|
H A D | dm-crypt.c | 1157 if (!bio_sectors(bio) || !io->cc->on_disk_tag_size) in dm_crypt_integrity_io_alloc() 1164 tag_len = io->cc->on_disk_tag_size * (bio_sectors(bio) >> io->cc->sector_shift); in dm_crypt_integrity_io_alloc() 2126 sector += bio_sectors(clone); in kcryptd_crypt_write_convert() 3460 if (bio_sectors(bio)) in crypt_map() 3487 unsigned int tag_len = cc->on_disk_tag_size * (bio_sectors(bio) >> cc->sector_shift); in crypt_map() 3495 if (bio_sectors(bio) > cc->tag_pool_max_sectors) in crypt_map()
|
H A D | raid1.c | 1196 r1_bio->sectors = bio_sectors(bio); in init_r1bio() 1300 if (max_sectors < bio_sectors(bio)) { in raid1_read_request() 1498 if (max_sectors < bio_sectors(bio)) { in raid1_write_request() 1602 bio->bi_iter.bi_sector, bio_sectors(bio)); in raid1_make_request() 2258 md_sync_acct(conf->mirrors[i].rdev->bdev, bio_sectors(wbio)); in sync_request_write()
|
H A D | dm-clone-target.c | 305 return (bio_data_dir(bio) == WRITE && bio_sectors(bio) == clone->region_size); in is_overwrite_bio() 490 bio_sectors(bio)); in process_discard_bio()
|
/openbmc/linux/include/trace/events/ |
H A D | block.h | 301 __entry->nr_sector = bio_sectors(bio); 329 __entry->nr_sector = bio_sectors(bio); 525 __entry->nr_sector = bio_sectors(bio);
|
/openbmc/linux/fs/btrfs/ |
H A D | raid56.h | 110 struct sector_ptr *bio_sectors; member
|
H A D | raid56.c | 81 kfree(rbio->bio_sectors); in free_raid_bio_pointers() 178 if (!rbio->bio_sectors[i].page) { in cache_rbio_pages() 192 rbio->bio_sectors[i].page, in cache_rbio_pages() 193 rbio->bio_sectors[i].pgoff, in cache_rbio_pages() 885 sector = &rbio->bio_sectors[index]; in sector_in_rbio() 926 rbio->bio_sectors = kcalloc(num_sectors, sizeof(struct sector_ptr), in alloc_rbio() 933 if (!rbio->stripe_pages || !rbio->bio_sectors || !rbio->stripe_sectors || in alloc_rbio() 1120 struct sector_ptr *sector = &rbio->bio_sectors[index]; in index_one_bio() 1422 sector = &rbio->bio_sectors[i]; in get_bio_sector_nr()
|
/openbmc/linux/include/linux/ |
H A D | bio.h | 42 #define bio_sectors(bio) bvec_iter_sectors((bio)->bi_iter) macro 404 if (sectors >= bio_sectors(bio)) in bio_next_split()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | io-cmd-bdev.c | 213 resid = bio_integrity_bytes(bi, bio_sectors(bio)); in nvmet_bdev_alloc_bip()
|
/openbmc/linux/fs/ext4/ |
H A D | page-io.c | 331 (unsigned) bio_sectors(bio), in ext4_end_bio()
|