Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/md/md-linear.c, line 80
- drivers/md/md.c, line 6225
- drivers/md/raid0.c, line 397
- drivers/md/raid1.c, line 3234
- drivers/md/raid10.c, line 3966
- drivers/md/raid5.c, line 7846
Smatch caller information:
drivers/md/md-linear.c linear_set_limits() -> mddev_stack_rdev_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mddev | 4096-ptr_max |
| PARAM_VALUE | 0 | mddev->bitmap_info.file->f_inode->i_mapping->host->i_op->get_offset_ctx | 0,2606890545167454208 |
| PARAM_VALUE | 0 | mddev->bitmap_info.file->f_inode->i_mapping->host->i_op->readlink | 0,1728600404483375104,2832489546165891072,2874824064778891264,3069732422725099520,4516337085607264256 |
| PARAM_VALUE | 0 | mddev->bitmap_info.file->f_inode->i_mapping->host->i_op->sync_lazytime | 0,6951464784224747520 |
| PARAM_VALUE | 0 | mddev->gendisk | 1-u64max |
| PARAM_VALUE | 0 | mddev->gendisk->part0->bd_device.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | mddev->gendisk->queue->tag_set->update_nr_hwq_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mddev->gendisk->queue->tag_set->update_nr_hwq_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | lim | 5205976270331260928 |
| PARAM_VALUE | 1 | lim->alignment_offset | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_boundary | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_max | u32max |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_max | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_min | 0 |
| PARAM_VALUE | 1 | lim->chunk_sectors | 0 |
| PARAM_VALUE | 1 | lim->discard_alignment | 0 |
| PARAM_VALUE | 1 | lim->discard_granularity | 512 |
| PARAM_VALUE | 1 | lim->dma_alignment | 511 |
| PARAM_VALUE | 1 | lim->features | 16531 |
| PARAM_VALUE | 1 | lim->flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.csum_type | 0 |
| PARAM_VALUE | 1 | lim->integrity.flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.interval_exp | 0 |
| PARAM_VALUE | 1 | lim->integrity.metadata_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_offset | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_tuple_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.tag_size | 0 |
| PARAM_VALUE | 1 | lim->io_min | 0,512-4294966784 |
| PARAM_VALUE | 1 | lim->io_opt | 0 |
| PARAM_VALUE | 1 | lim->max_dev_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_discard_segments | u16max |
| PARAM_VALUE | 1 | lim->max_hw_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_zone_append_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_integrity_segments | 0 |
| PARAM_VALUE | 1 | lim->max_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_secure_erase_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_segment_size | u32max |
| PARAM_VALUE | 1 | lim->max_segments | u16max |
| PARAM_VALUE | 1 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_user_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_user_wzeroes_unmap_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_zone_append_sectors | 0 |
| PARAM_VALUE | 1 | lim->physical_block_size | 512 |
| PARAM_VALUE | 1 | lim->seg_boundary_mask | u32max |
| PARAM_VALUE | 1 | lim->virt_boundary_mask | 0 |
| PARAM_VALUE | 1 | lim->zone_write_granularity | 0 |
| PARAM_VALUE | 2 | flags | 1 |
| DATA_SOURCE | 0 | mddev | $0 |
| MEM_ZERO | 1 | lim | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | 0 | &mddev->reconfig_mutex |
drivers/md/raid1.c raid1_set_limits() -> mddev_stack_rdev_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mddev | 4096-ptr_max |
| PARAM_VALUE | 0 | mddev->gendisk | 1-u64max |
| PARAM_VALUE | 0 | mddev->level | 1 |
| PARAM_VALUE | 0 | mddev->reshape_position | u64max |
| PARAM_VALUE | 1 | lim | 4678871629868883968 |
| PARAM_VALUE | 1 | lim->alignment_offset | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_boundary | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_max | u32max |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_max | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_min | 0 |
| PARAM_VALUE | 1 | lim->chunk_sectors | 0 |
| PARAM_VALUE | 1 | lim->discard_alignment | 0 |
| PARAM_VALUE | 1 | lim->discard_granularity | 512 |
| PARAM_VALUE | 1 | lim->dma_alignment | 511 |
| PARAM_VALUE | 1 | lim->features | 20627 |
| PARAM_VALUE | 1 | lim->flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.csum_type | 0 |
| PARAM_VALUE | 1 | lim->integrity.flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.interval_exp | 0 |
| PARAM_VALUE | 1 | lim->integrity.metadata_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_offset | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_tuple_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.tag_size | 0 |
| PARAM_VALUE | 1 | lim->io_min | 512 |
| PARAM_VALUE | 1 | lim->io_opt | 0 |
| PARAM_VALUE | 1 | lim->max_dev_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_discard_segments | u16max |
| PARAM_VALUE | 1 | lim->max_hw_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_hw_wzeroes_unmap_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_zone_append_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_integrity_segments | 0 |
| PARAM_VALUE | 1 | lim->max_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_secure_erase_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_segment_size | u32max |
| PARAM_VALUE | 1 | lim->max_segments | u16max |
| PARAM_VALUE | 1 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_user_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_user_wzeroes_unmap_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_write_zeroes_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_zone_append_sectors | 0 |
| PARAM_VALUE | 1 | lim->physical_block_size | 512 |
| PARAM_VALUE | 1 | lim->seg_boundary_mask | u32max |
| PARAM_VALUE | 1 | lim->virt_boundary_mask | 0 |
| PARAM_VALUE | 1 | lim->zone_write_granularity | 0 |
| PARAM_VALUE | 2 | flags | 1 |
| DATA_SOURCE | 0 | mddev | $0 |
| MEM_ZERO | 1 | lim |
drivers/md/raid0.c raid0_set_limits() -> mddev_stack_rdev_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mddev | 4096-ptr_max |
| PARAM_VALUE | 0 | mddev->bitmap_info.file | 0 |
| PARAM_VALUE | 0 | mddev->bitmap_info.offset | 0 |
| PARAM_VALUE | 0 | mddev->chunk_sectors | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | mddev->gendisk | 1-u64max |
| PARAM_VALUE | 1 | lim | 8942557784846725120 |
| PARAM_VALUE | 1 | lim->alignment_offset | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_boundary | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_max | u32max |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_max | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_min | 0 |
| PARAM_VALUE | 1 | lim->chunk_sectors | 1-u32max |
| PARAM_VALUE | 1 | lim->discard_alignment | 0 |
| PARAM_VALUE | 1 | lim->discard_granularity | 512 |
| PARAM_VALUE | 1 | lim->dma_alignment | 511 |
| PARAM_VALUE | 1 | lim->features | 20627 |
| PARAM_VALUE | 1 | lim->flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.csum_type | 0 |
| PARAM_VALUE | 1 | lim->integrity.flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.interval_exp | 0 |
| PARAM_VALUE | 1 | lim->integrity.metadata_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_offset | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_tuple_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.tag_size | 0 |
| PARAM_VALUE | 1 | lim->io_min | 0-4294966784 |
| PARAM_VALUE | 1 | lim->max_dev_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_discard_segments | u16max |
| PARAM_VALUE | 1 | lim->max_hw_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_sectors | 1-u32max |
| PARAM_VALUE | 1 | lim->max_hw_wzeroes_unmap_sectors | 1-u32max |
| PARAM_VALUE | 1 | lim->max_hw_zone_append_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_integrity_segments | 0 |
| PARAM_VALUE | 1 | lim->max_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_secure_erase_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_segment_size | u32max |
| PARAM_VALUE | 1 | lim->max_segments | u16max |
| PARAM_VALUE | 1 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_user_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_user_wzeroes_unmap_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_write_zeroes_sectors | 1-u32max |
| PARAM_VALUE | 1 | lim->max_zone_append_sectors | 0 |
| PARAM_VALUE | 1 | lim->physical_block_size | 512 |
| PARAM_VALUE | 1 | lim->seg_boundary_mask | u32max |
| PARAM_VALUE | 1 | lim->virt_boundary_mask | 0 |
| PARAM_VALUE | 1 | lim->zone_write_granularity | 0 |
| PARAM_VALUE | 2 | flags | 1 |
| DATA_SOURCE | 0 | mddev | $0 |
| MEM_ZERO | 1 | lim |
drivers/md/raid5.c raid5_set_limits() -> mddev_stack_rdev_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mddev | 4096-ptr_max |
| PARAM_VALUE | 0 | mddev->private | 4096-ptr_max |
| PARAM_VALUE | 1 | lim | 6542519953745661952 |
| PARAM_VALUE | 1 | lim->alignment_offset | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_boundary | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_max | u32max |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_max | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_min | 0 |
| PARAM_VALUE | 1 | lim->chunk_sectors | 0 |
| PARAM_VALUE | 1 | lim->discard_alignment | 0 |
| PARAM_VALUE | 1 | lim->dma_alignment | 511 |
| PARAM_VALUE | 1 | lim->features | 32915 |
| PARAM_VALUE | 1 | lim->flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.csum_type | 0 |
| PARAM_VALUE | 1 | lim->integrity.flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.interval_exp | 0 |
| PARAM_VALUE | 1 | lim->integrity.metadata_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_offset | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_tuple_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.tag_size | 0 |
| PARAM_VALUE | 1 | lim->io_min | 0,512-4294966784 |
| PARAM_VALUE | 1 | lim->io_opt | 0 |
| PARAM_VALUE | 1 | lim->max_dev_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_discard_segments | u16max |
| PARAM_VALUE | 1 | lim->max_hw_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_hw_wzeroes_unmap_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_zone_append_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_integrity_segments | 0 |
| PARAM_VALUE | 1 | lim->max_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_secure_erase_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_segment_size | u32max |
| PARAM_VALUE | 1 | lim->max_segments | u16max |
| PARAM_VALUE | 1 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_user_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_user_wzeroes_unmap_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_write_zeroes_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_zone_append_sectors | 0 |
| PARAM_VALUE | 1 | lim->physical_block_size | 512 |
| PARAM_VALUE | 1 | lim->seg_boundary_mask | u32max |
| PARAM_VALUE | 1 | lim->virt_boundary_mask | 0 |
| PARAM_VALUE | 1 | lim->zone_write_granularity | 0 |
| PARAM_VALUE | 2 | flags | 0 |
| DATA_SOURCE | 0 | mddev | $0 |
| MEM_ZERO | 1 | lim | |
| NOCHECK_CALL |
drivers/md/raid10.c raid10_set_queue_limits() -> mddev_stack_rdev_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mddev | 4096-ptr_max |
| PARAM_VALUE | 0 | mddev->private | 4096-ptr_max |
| PARAM_VALUE | 1 | lim | 5238008099866365952 |
| PARAM_VALUE | 1 | lim->alignment_offset | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_boundary | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_max | u32max |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_max | 0 |
| PARAM_VALUE | 1 | lim->atomic_write_hw_unit_min | 0 |
| PARAM_VALUE | 1 | lim->discard_alignment | 0 |
| PARAM_VALUE | 1 | lim->discard_granularity | 512 |
| PARAM_VALUE | 1 | lim->dma_alignment | 511 |
| PARAM_VALUE | 1 | lim->features | 20627 |
| PARAM_VALUE | 1 | lim->flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.csum_type | 0 |
| PARAM_VALUE | 1 | lim->integrity.flags | 0 |
| PARAM_VALUE | 1 | lim->integrity.interval_exp | 0 |
| PARAM_VALUE | 1 | lim->integrity.metadata_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_offset | 0 |
| PARAM_VALUE | 1 | lim->integrity.pi_tuple_size | 0 |
| PARAM_VALUE | 1 | lim->integrity.tag_size | 0 |
| PARAM_VALUE | 1 | lim->io_min | 0,512-4294966784 |
| PARAM_VALUE | 1 | lim->io_opt | 0 |
| PARAM_VALUE | 1 | lim->max_dev_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_discard_segments | u16max |
| PARAM_VALUE | 1 | lim->max_hw_discard_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_hw_wzeroes_unmap_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_hw_zone_append_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_integrity_segments | 0 |
| PARAM_VALUE | 1 | lim->max_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_secure_erase_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_segment_size | u32max |
| PARAM_VALUE | 1 | lim->max_segments | u16max |
| PARAM_VALUE | 1 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_user_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_user_wzeroes_unmap_sectors | u32max |
| PARAM_VALUE | 1 | lim->max_write_zeroes_sectors | 0 |
| PARAM_VALUE | 1 | lim->max_zone_append_sectors | 0 |
| PARAM_VALUE | 1 | lim->physical_block_size | 512 |
| PARAM_VALUE | 1 | lim->seg_boundary_mask | u32max |
| PARAM_VALUE | 1 | lim->virt_boundary_mask | 0 |
| PARAM_VALUE | 1 | lim->zone_write_granularity | 0 |
| PARAM_VALUE | 2 | flags | 1 |
| BUF_SIZE | 0 | mddev->private | (-1),1600 |
| DATA_SOURCE | 0 | mddev | $0 |
| MEM_ZERO | 1 | lim |