Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/md/dm-raid1.c do_reads() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
DATA_SOURCE 1 bio r bio_list_pop
HALF_LOCKED2 &pool->lock

drivers/md/dm-raid1.c do_writes() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
DATA_SOURCE 1 bio r bio_list_pop
BIT_INFO 1 bio->bi_opf 0x0,0xfffbffff
UNITS 1 bio unit_jiffy
HALF_LOCKED2 &pool->lock

drivers/md/dm-raid1.c mirror_available() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
BUF_SIZE 1 bio (-1)-s32max
BUF_SIZE 1 bio (-1)-s32max
BUF_SIZE 1 bio->bi_pool (-1),624
BUF_SIZE 1 bio->bi_private (-1)-s32max
DATA_SOURCE 1 bio $1
STR_LEN 0 rh (-1),8,11-12,14,17,19-20,23,26-27,29,31-32
STR_LEN 1 bio (-1),8,11-12,14,17,19-20,23,26-27,29,31-32
STR_LEN 1 bio->bi_private (-1),8,11-12,14,17,19-20,23,26-27,29,31-32
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 bio->bi_bdev->bd_queue->last_merge->__sector 0-18446744073709551614
HOST_DATA 1 bio->bi_iter.bi_sector 0-u64max
HOST_DATA 1 bio->bi_iter.bi_size 0-u32max[c]
HOST_DATA 1 bio->bi_max_vecs 0-u16max[c]
NO_OVERFLOW_SIMPLE 1 bio->bi_bdev->bd_disk->queue->queue_hw_ctx
NO_OVERFLOW_SIMPLE 1 bio->bi_bdev->bd_disk->queue->stats
NO_OVERFLOW_SIMPLE 1 bio->bi_next->bi_iter.bi_sector
NO_OVERFLOW_SIMPLE 1 bio->bi_pool->bio_pool.min_nr
NO_OVERFLOW_SIMPLE 1 bio->bi_pool->bvec_pool.min_nr
NO_OVERFLOW_SIMPLE 1 bio->bio.bi_bdev->bd_disk->queue->queue_hw_ctx
NO_OVERFLOW_SIMPLE 1 bio->bio.bi_bdev->bd_disk->queue->stats
NO_OVERFLOW_SIMPLE 1 bio->bio.bi_max_vecs
UNITS 1 bio unit_jiffy
HALF_LOCKED2 1 &bio->bi_bdev->bd_queue->queue_lock

drivers/md/dm-raid1.c mirror_map() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
BUF_SIZE 1 bio (-1),144
BUF_SIZE 1 bio (-1),144
DATA_SOURCE 1 bio $1
NOSPEC 1 bio->bi_iter.bi_sector
NOSPEC 1 bio->bi_iter.bi_size
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 bio->bi_iter.bi_sector 0
HOST_DATA 1 bio->bi_iter.bi_size 0[c]
HOST_DATA 1 bio->bi_max_vecs 0-4,16,64,128,256[c]
USER_DATA 1 bio->bi_ioprio 0-u16max
USER_DATA 1 bio->bi_iter.bi_sector 0
USER_DATA 1 bio->bi_iter.bi_size 0
USER_DATA 1 bio->bi_max_vecs 0-4,16,64,128,256[c]
NO_OVERFLOW_SIMPLE 1 bio->bi_pool->bio_pool.min_nr
NO_OVERFLOW_SIMPLE 1 bio->bi_pool->bvec_pool.min_nr
LOCK2 &md->io_barrier
HALF_LOCKED2 &bio->bi_bdev->bd_queue->queue_lock
HALF_LOCKED2 &md->swap_bios_semaphore
TYPE_LOCK (struct mapped_device)->io_barrier

drivers/md/dm-raid1.c mirror_map() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
BUF_SIZE 1 bio (-1),144
BUF_SIZE 1 bio (-1),144
DATA_SOURCE 1 bio $1
NOSPEC 1 bio->bi_iter.bi_sector
NOSPEC 1 bio->bi_iter.bi_size
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 bio->bi_iter.bi_sector 0
HOST_DATA 1 bio->bi_iter.bi_size 0[c]
HOST_DATA 1 bio->bi_max_vecs 0-4,16,64,128,256[c]
USER_DATA 1 bio->bi_ioprio 0-u16max
USER_DATA 1 bio->bi_iter.bi_sector 0
USER_DATA 1 bio->bi_iter.bi_size 0
USER_DATA 1 bio->bi_max_vecs 0-4,16,64,128,256[c]
NO_OVERFLOW_SIMPLE 1 bio->bi_pool->bio_pool.min_nr
NO_OVERFLOW_SIMPLE 1 bio->bi_pool->bvec_pool.min_nr
LOCK2 &md->io_barrier
HALF_LOCKED2 &bio->bi_bdev->bd_queue->queue_lock
HALF_LOCKED2 &md->swap_bios_semaphore
TYPE_LOCK (struct mapped_device)->io_barrier

drivers/md/dm-region-hash.c dm_rh_delay() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
BUF_SIZE 1 bio 0
DATA_SOURCE 0 rh $0
DATA_SOURCE 1 bio $1
BIT_INFO 1 bio 0x0,0x0
UNITS 1 bio unit_jiffy
LOCK2 0 &rh->hash_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dm_region_hash)->hash_lock

drivers/md/dm-region-hash.c dm_rh_inc_pending() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
DATA_SOURCE 0 rh $0
BIT_INFO 1 bio->bi_opf 0x0,0xfffbffff
UNITS 1 bio unit_jiffy
HALF_LOCKED2 &pool->lock

drivers/md/dm-region-hash.c dm_rh_mark_nosync() -> dm_rh_bio_to_region()

Type Parameter Key Value
PARAM_VALUE 0 rh 4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
DATA_SOURCE 0 rh $0
DATA_SOURCE 1 bio $1
UNITS 1 bio unit_jiffy
HALF_LOCKED2 &pool->lock