Defined in 2 files as a function:
- drivers/md/dm-cache-target.c, line 782 (as a function)
- drivers/md/dm-thin.c, line 672 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/md/dm-cache-target.c cache_map() -> get_bio_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| BUF_SIZE | 0 | cache | 16,40-s32max |
| BUF_SIZE | 0 | cache | 16,40-s32max |
| 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-cache-target.c process_bio() -> get_bio_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache | 4096-ptr_max |
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| DATA_SOURCE | 0 | cache | $0 |
| DATA_SOURCE | 1 | bio | $1 |
| BIT_INFO | 1 | bio->bi_opf | 0x0,0xfffbffff |
| HALF_LOCKED2 | &pool->lock |
drivers/md/dm-thin.c __process_bio_read_only() -> get_bio_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache | 4096-ptr_max |
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| DATA_SOURCE | 0 | cache | $0 |
| DATA_SOURCE | 1 | bio | $1 |
| LOCK2 | &pool->lock |
drivers/md/dm-thin.c process_bio() -> get_bio_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache | 4096-ptr_max |
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| DATA_SOURCE | 0 | cache | $0 |
| DATA_SOURCE | 1 | bio | $1 |
| HALF_LOCKED2 | &pool->lock |
drivers/md/dm-thin.c process_cell() -> get_bio_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache | 4096-ptr_max |
| PARAM_VALUE | 0 | cache->pool | 4096-ptr_max |
| DATA_SOURCE | 0 | cache | $0 |
| HALF_LOCKED2 | &pool->lock |
drivers/md/dm-thin.c thin_bio_map() -> get_bio_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bio | 4096-ptr_max |
| BUF_SIZE | 0 | cache | 16,40-s32max |
| BUF_SIZE | 0 | cache | 16,40-s32max |
| BUF_SIZE | 1 | bio | (-1),144 |
| BUF_SIZE | 1 | bio | (-1),144 |
| DATA_SOURCE | 1 | bio | $1 |
| NOSPEC | 1 | bio->bi_iter.bi_size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | bio->bi_iter.bi_size | 0-u32max[c] |
| USER_DATA | 1 | bio->bi_ioprio | 0-u16max |
| USER_DATA | 1 | bio->bi_iter.bi_size | 0-u32max |
| 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 |