Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- block/bio.c, line 2009
- drivers/md/dm-io-rewind.c, line 155
- drivers/md/dm-pcache/backing_dev.c, line 278
- drivers/md/dm.c, line 2050
- drivers/md/raid1.c, line 2568
- drivers/md/raid10.c, line 2829
- fs/squashfs/block.c
Smatch caller information:
drivers/md/dm-io-rewind.c dm_io_rewind() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->__bi_cnt.counter | 1 |
| PARAM_VALUE | 0 | bio->__bi_nr_segments | u32max |
| PARAM_VALUE | 0 | bio->__bi_remaining.counter | 1 |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->queue->blkg_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->queue->blkg_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue->queue_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bio->bi_bvec_gap_bit | 0 |
| PARAM_VALUE | 0 | bio->bi_cookie | u32max |
| PARAM_VALUE | 0 | bio->bi_crypt_context | 0 |
| PARAM_VALUE | 0 | bio->bi_end_io | 0 |
| PARAM_VALUE | 0 | bio->bi_flags | 0 |
| PARAM_VALUE | 0 | bio->bi_integrity | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_iocost_cost | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_bvec_done | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_idx | 0-s32max |
| PARAM_VALUE | 0 | bio->bi_iter.bi_sector | 0,18446744073701163009-u64max |
| PARAM_VALUE | 0 | bio->bi_max_vecs | 0-4,16,64,128,256 |
| PARAM_VALUE | 0 | bio->bi_next | 0 |
| PARAM_VALUE | 0 | bio->bi_opf | 0,65536-u32max |
| PARAM_VALUE | 0 | bio->bi_pool | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_private | 0 |
| PARAM_VALUE | 0 | bio->bi_status | 0 |
| PARAM_VALUE | 0 | bio->bi_vcnt | 0 |
| PARAM_VALUE | 0 | bio->issue_time_ns | 0 |
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | bio | r bio_alloc_clone |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bvec_pool.min_nr | |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/squashfs/block.c squashfs_bio_read_cached() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | size | 0-s32max,18446744071562067968-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/squashfs/block.c squashfs_bio_read_cached() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | size | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 1 | offset | 1 |
| CAPPED_DATA | 2 | size | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/md/dm.c dm_split_and_process_bio() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | bio->bi_crypt_context | 0-1,4096-ptr_max |
| PARAM_VALUE | 2 | size | 1-8388607 |
| BUF_SIZE | 0 | bio | (-1)-0,4,24,32,64,144-s32max |
| BUF_SIZE | 0 | bio | (-1)-0,4,24,32,64,144-s32max |
| BUF_SIZE | 0 | bio->bi_pool | (-1),624 |
| BUF_SIZE | 0 | bio->bi_private | (-1)-s32max |
| CAPPED_DATA | 0 | bio | 1 |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 0 | bio | $2 [m] |
| STR_LEN | 0 | bio->bi_private | (-1),8,11-12,14,17,19-20,23,26-27,29,31-32 |
| NOSPEC | 0 | bio->bi_iter.bi_sector | |
| NOSPEC | 0 | bio->bi_iter.bi_size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bio->bi_bdev->bd_queue->last_merge->__sector | 0-u64max |
| HOST_DATA | 0 | bio->bi_iter.bi_bvec_done | 1024-s32max[c] |
| HOST_DATA | 0 | bio->bi_iter.bi_sector | 0-u64max |
| HOST_DATA | 0 | bio->bi_iter.bi_size | 0-u32max[c] |
| HOST_DATA | 0 | bio->bi_max_vecs | 0-u16max[c] |
| USER_DATA | 0 | bio->bi_bdev->bd_queue->last_merge->__sector | 0-u64max |
| USER_DATA | 0 | bio->bi_ioprio | 0-u16max |
| USER_DATA | 0 | bio->bi_iter.bi_bvec_done | 0-4294967294[c] |
| USER_DATA | 0 | bio->bi_iter.bi_sector | 0-u64max |
| USER_DATA | 0 | bio->bi_iter.bi_size | 0-u32max |
| USER_DATA | 0 | bio->bi_max_vecs | 0-u16max[c] |
| USER_DATA | 0 | bio->bi_next->bi_ioprio | 0-u16max[c] |
| USER_DATA | 0 | bio->bi_next->bi_max_vecs | 0-256[c] |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_bdev->bd_disk->queue->queue_hw_ctx | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_bdev->bd_disk->queue->stats | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_io_vec | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_next->bi_iter.bi_sector | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_next->bi_max_vecs | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bvec_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bio.bi_bdev->bd_disk->queue->queue_hw_ctx | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bio.bi_bdev->bd_disk->queue->stats | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bio.bi_max_vecs | |
| UNITS | 1 | offset | unit_byte |
| LOCK2 | &md->io_barrier | ||
| HALF_LOCKED2 | 0 | &bio->bi_bdev->bd_queue->queue_lock | |
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/raid1.c narrow_write_error() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->__bi_cnt.counter | 1 |
| PARAM_VALUE | 0 | bio->__bi_nr_segments | u32max |
| PARAM_VALUE | 0 | bio->__bi_remaining.counter | 1 |
| PARAM_VALUE | 0 | bio->bi_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->queue->blkg_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->queue->blkg_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue->queue_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bio->bi_bvec_gap_bit | 0 |
| PARAM_VALUE | 0 | bio->bi_cookie | u32max |
| PARAM_VALUE | 0 | bio->bi_crypt_context | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_end_io | 0 |
| PARAM_VALUE | 0 | bio->bi_flags | 0 |
| PARAM_VALUE | 0 | bio->bi_integrity | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_iocost_cost | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_bvec_done | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_idx | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_size | 0,512-4294966784 |
| PARAM_VALUE | 0 | bio->bi_max_vecs | 0-4,16,64,128,256 |
| PARAM_VALUE | 0 | bio->bi_next | 0 |
| PARAM_VALUE | 0 | bio->bi_opf | 1 |
| PARAM_VALUE | 0 | bio->bi_pool | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_private | 0 |
| PARAM_VALUE | 0 | bio->bi_status | 0 |
| PARAM_VALUE | 0 | bio->bi_vcnt | 0 |
| PARAM_VALUE | 0 | bio->issue_time_ns | 0 |
| PARAM_VALUE | 2 | size | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | bio->bi_pool | (-1),624 |
| CAPPED_DATA | 2 | size | 1 |
| BIT_INFO | 0 | bio->bi_iter.bi_size | 0x0,0xfffffe00 |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bvec_pool.min_nr | |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | size | unit_byte |
drivers/md/dm-pcache/backing_dev.c req_type_req_init() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-8388607 |
| PARAM_VALUE | 2 | size | 0-8388607 |
| BUF_SIZE | 0 | bio | 144 |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &cache_subtree->tree_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct pcache_cache_subtree)->tree_lock |
drivers/md/raid10.c narrow_write_error() -> bio_trim()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bio | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bio->__bi_cnt.counter | 1 |
| PARAM_VALUE | 0 | bio->__bi_nr_segments | u32max |
| PARAM_VALUE | 0 | bio->__bi_remaining.counter | 1 |
| PARAM_VALUE | 0 | bio->bi_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->queue->blkg_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_disk->queue->blkg_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_bdev->bd_queue->queue_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bio->bi_bvec_gap_bit | 0 |
| PARAM_VALUE | 0 | bio->bi_cookie | u32max |
| PARAM_VALUE | 0 | bio->bi_crypt_context | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_end_io | 0 |
| PARAM_VALUE | 0 | bio->bi_flags | 0 |
| PARAM_VALUE | 0 | bio->bi_integrity | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_iocost_cost | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_bvec_done | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_idx | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_sector | 0 |
| PARAM_VALUE | 0 | bio->bi_iter.bi_size | 0 |
| PARAM_VALUE | 0 | bio->bi_max_vecs | 0-4,16,64,128,256 |
| PARAM_VALUE | 0 | bio->bi_next | 0 |
| PARAM_VALUE | 0 | bio->bi_opf | 0,65536-u32max |
| PARAM_VALUE | 0 | bio->bi_pool | 4096-ptr_max |
| PARAM_VALUE | 0 | bio->bi_private | 0 |
| PARAM_VALUE | 0 | bio->bi_status | 0 |
| PARAM_VALUE | 0 | bio->bi_vcnt | 0 |
| PARAM_VALUE | 0 | bio->issue_time_ns | 0 |
| PARAM_VALUE | 2 | size | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | bio->bi_pool | (-1),624 |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 0 | bio | r bio_alloc_clone |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | bio->bi_pool->bvec_pool.min_nr | |
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | size | unit_byte |