Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/md/raid10.c fix_read_error() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 1 | rdev | 4096-ptr_max |
| DATA_SOURCE | 0 | r10_bio | $2 |
| TASK_NOT_RUNNING |
drivers/md/raid10.c fix_read_error() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 1 | rdev | 4096-ptr_max |
| DATA_SOURCE | 0 | r10_bio | $2 |
| TASK_NOT_RUNNING |
drivers/md/raid10.c fix_read_error() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 1 | rdev | 4096-ptr_max |
| DATA_SOURCE | 0 | r10_bio | $2 |
| TASK_NOT_RUNNING |
drivers/md/raid10.c narrow_write_error() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 1 | rdev | 4096-ptr_max |
| DATA_SOURCE | 0 | r10_bio | $0 |
| TASK_NOT_RUNNING |
drivers/md/raid10.c raid10_handle_discard() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 0 | r10_bio->state | 0 |
| BUF_SIZE | 0 | r10_bio->mddev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | r10_bio | r mempool_alloc_noprof |
| STR_LEN | 0 | r10_bio->master_bio->bi_private | (-1) |
| MEM_ZERO | 0 | r10_bio->devs | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | r10_bio->master_bio->bi_ioprio | 0-u16max |
| HALF_LOCKED2 | &bio->bi_bdev->bd_queue->queue_lock | ||
| HALF_LOCKED2 | &md->io_barrier |
drivers/md/raid10.c raid10_handle_discard() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 0 | r10_bio->state | 0 |
| BUF_SIZE | 0 | r10_bio->mddev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | r10_bio | r mempool_alloc_noprof |
| STR_LEN | 0 | r10_bio->master_bio->bi_private | (-1) |
| MEM_ZERO | 0 | r10_bio->devs | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | r10_bio->master_bio->bi_ioprio | 0-u16max |
| HALF_LOCKED2 | &bio->bi_bdev->bd_queue->queue_lock | ||
| HALF_LOCKED2 | &md->io_barrier |
drivers/md/raid10.c raid10_read_request() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 0 | r10_bio->state | 0 |
| PARAM_VALUE | 1 | rdev | 4096-ptr_max |
| BUF_SIZE | 0 | r10_bio->master_bio | (-1)-0,4,24,32,64,144-s32max |
| BUF_SIZE | 0 | r10_bio->mddev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | r10_bio | $2 |
| DATA_SOURCE | 1 | rdev | r read_balance |
| STR_LEN | 0 | r10_bio->master_bio->bi_private | (-1) |
| NOSPEC | 0 | r10_bio->master_bio->bi_iter.bi_sector | |
| NOSPEC | 0 | r10_bio->master_bio->bi_iter.bi_size | |
| NOSPEC | 0 | r10_bio->sector | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | r10_bio->master_bio->bi_iter.bi_sector | 0-u64max |
| HOST_DATA | 0 | r10_bio->master_bio->bi_iter.bi_size | 0-u32max[c] |
| HOST_DATA | 0 | r10_bio->master_bio->bi_max_vecs | 0-4,16,64,128,256[c] |
| HOST_DATA | 0 | r10_bio->sector | 0-u64max |
| USER_DATA | 0 | r10_bio->master_bio->bi_ioprio | 0-u16max |
| USER_DATA | 0 | r10_bio->master_bio->bi_iter.bi_sector | 0-u64max |
| USER_DATA | 0 | r10_bio->master_bio->bi_iter.bi_size | 0-u32max |
| USER_DATA | 0 | r10_bio->master_bio->bi_max_vecs | 0-4,16,64,128,256[c] |
| USER_DATA | 0 | r10_bio->sector | 0-u64max |
drivers/md/raid10.c raid10_write_one_disk() -> choose_data_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r10_bio | 4096-ptr_max |
| PARAM_VALUE | 0 | r10_bio->state | 0 |
| PARAM_VALUE | 1 | rdev | 4096-ptr_max |
| BUF_SIZE | 0 | r10_bio->mddev | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | r10_bio->sectors | 1 |
| DATA_SOURCE | 0 | r10_bio | $1 |
| STR_LEN | 0 | r10_bio->master_bio->bi_private | (-1) |
| NOSPEC | 0 | r10_bio->sector | |
| NOSPEC | 0 | r10_bio->sectors | |
| MEM_ZERO | 0 | r10_bio->devs | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | r10_bio->sector | 0[c] |
| HOST_DATA | 0 | r10_bio->sectors | 0-s32max[c] |
| USER_DATA | 0 | r10_bio->master_bio->bi_ioprio | 0-u16max |
| USER_DATA | 0 | r10_bio->sector | 0[c] |
| USER_DATA | 0 | r10_bio->sectors | 0-s32max[c] |
| HALF_LOCKED2 | &bio->bi_bdev->bd_queue->queue_lock | ||
| HALF_LOCKED2 | &md->io_barrier |