Home
last modified time | relevance | path

Searched refs:bio_size (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/block/
Dblk-throttle.c941 unsigned int bio_size = throtl_bio_data_size(bio); in tg_with_in_bps_limit() local
961 if (tg->bytes_disp[rw] + bio_size <= bytes_allowed) { in tg_with_in_bps_limit()
968 extra_bytes = tg->bytes_disp[rw] + bio_size - bytes_allowed; in tg_with_in_bps_limit()
1049 unsigned int bio_size = throtl_bio_data_size(bio); in throtl_charge_bio() local
1052 tg->bytes_disp[rw] += bio_size; in throtl_charge_bio()
1054 tg->last_bytes_disp[rw] += bio_size; in throtl_charge_bio()
/Linux-v5.10/drivers/md/
Ddm-writecache.c1391 unsigned bio_size = wc->block_size; in writecache_map() local
1393 sector_t current_cache_sec = start_cache_sec + (bio_size >> SECTOR_SHIFT); in writecache_map()
1395 while (bio_size < bio->bi_iter.bi_size) { in writecache_map()
1400 (bio_size >> SECTOR_SHIFT), wc->seq_count); in writecache_map()
1403 bio_size += wc->block_size; in writecache_map()
1409 dm_accept_partial_bio(bio, bio_size >> SECTOR_SHIFT); in writecache_map()