Defined in 2 files as a function:
- drivers/md/dm-cache-target.c, line 1652 (as a function)
- drivers/md/dm-raid1.c, line 465 (as a function)
Referenced in 4 files:
- drivers/md/dm-cache-target.c
- drivers/md/dm-flakey.c
- drivers/md/dm-log-writes.c
- drivers/md/dm-raid1.c
Smatch caller information:
drivers/md/dm-cache-target.c cache_map() -> map_bio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | m | 4096-ptr_max |
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| PARAM_VALUE | 1 | bio->bi_end_io | 3905977605003870208 |
| PARAM_VALUE | 1 | bio->bi_next | 0 |
| PARAM_VALUE | 2 | block | 0-18446744073709551614 |
| PARAM_VALUE | 3 | commit_needed | 3062860562861633536 |
| BUF_SIZE | 0 | m | 16,40-s32max |
| BUF_SIZE | 0 | m | 16,40-s32max |
| BUF_SIZE | 1 | bio | (-1),144 |
| BUF_SIZE | 1 | bio | (-1),144 |
| DATA_SOURCE | 1 | bio | $1 |
| DATA_SOURCE | 2 | block | r get_bio_block |
| 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] |
| HOST_DATA | 2 | block | 0-18446744073709551614 |
| 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] |
| USER_DATA | 2 | block | 0-18446744073709551614[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-cache-target.c process_bio() -> map_bio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | m | 4096-ptr_max |
| PARAM_VALUE | 0 | m->deferred_bios.head | 0 |
| PARAM_VALUE | 0 | m->deferred_bios.tail | 0 |
| PARAM_VALUE | 0 | m->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| PARAM_VALUE | 1 | bio->bi_next | 0 |
| PARAM_VALUE | 3 | commit_needed | 8974188533265879040 |
| DATA_SOURCE | 0 | m | $0 |
| DATA_SOURCE | 1 | bio | $1 |
| BIT_INFO | 1 | bio->bi_opf | 0x0,0xfffbffff |
| HALF_LOCKED2 | &pool->lock |
drivers/md/dm-raid1.c do_writes() -> map_bio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | m | 4096-ptr_max |
| BUF_SIZE | 1 | bio | 0 |
| DATA_SOURCE | 1 | bio | r bio_list_pop |
| BIT_INFO | 1 | bio | 0x0,0x0 |
| NOCHECK_CALL | |||
| UNITS | 1 | bio | unit_jiffy |
| HALF_LOCKED2 | &pool->lock |
drivers/md/dm-raid1.c mirror_map() -> map_bio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | m | 4096-ptr_max |
| PARAM_VALUE | 0 | m->error_count.counter | 0 |
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| PARAM_VALUE | 1 | bio->bi_end_io | 3905977605003870208 |
| PARAM_VALUE | 1 | bio->bi_next | 0 |
| BUF_SIZE | 1 | bio | (-1),144 |
| BUF_SIZE | 1 | bio | (-1),144 |
| DATA_SOURCE | 0 | m | r choose_mirror |
| DATA_SOURCE | 1 | bio | $1 |
| NOSPEC | 1 | bio->bi_iter.bi_sector | |
| NOSPEC | 1 | bio->bi_iter.bi_size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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 |