Defined in 2 files as a function:
- drivers/md/dm-cache-metadata.c, line 534 (as a function)
- drivers/md/dm-thin-metadata.c, line 787 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/md/dm-thin-metadata.c dm_pool_metadata_open() -> __create_persistent_data_objects()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pmd | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->data_block_size | 128-2097152 |
| PARAM_VALUE | 0 | pmd->fail_io | 0 |
| PARAM_VALUE | 0 | pmd->in_service | 0 |
| PARAM_VALUE | 0 | pmd->pre_commit_context | 0 |
| PARAM_VALUE | 0 | pmd->pre_commit_fn | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.count.counter | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | pmd->root_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->root_lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | pmd->thin_devices.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->thin_devices.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->thin_devices.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->thin_devices.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->thin_devices.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->time | 0 |
| BUF_SIZE | 0 | pmd | 864 |
| DATA_SOURCE | 0 | pmd | r _kmalloc_noprof |
| DATA_SOURCE | 1 | format_device | $2 |
| BIT_INFO | 0 | pmd->data_block_size | 0x0,0x3fff80 |
| USER_DATA | 0 | pmd->data_block_size | 128-2097152 |
| LOCK2 | global &dm_thin_pool_table.mutex | ||
| TYPE_LOCK | (struct dm_thin_pool_table)->mutex |
drivers/md/dm-cache-metadata.c metadata_open() -> __create_persistent_data_objects()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pmd | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->cache_blocks | 0 |
| PARAM_VALUE | 0 | pmd->changed | 1 |
| PARAM_VALUE | 0 | pmd->data_block_size | 64-2097152 |
| PARAM_VALUE | 0 | pmd->fail_io | 0 |
| PARAM_VALUE | 0 | pmd->policy_hint_size | 4 |
| PARAM_VALUE | 0 | pmd->ref_count.refs.counter | 1 |
| PARAM_VALUE | 0 | pmd->root_lock.count.counter | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | pmd->root_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | pmd->root_lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | pmd->root_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | pmd->version | 1-2 |
| BUF_SIZE | 0 | pmd | 1920 |
| DATA_SOURCE | 0 | pmd | r _kzalloc_noprof |
| DATA_SOURCE | 1 | format_device | $2 |
| BIT_INFO | 1 | format_device | 0x1,0x1 |
| NO_OVERFLOW_SIMPLE | 0 | pmd->data_block_size | |
| HALF_LOCKED2 | &md->type_lock |