Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/md/dm-era-target.c, line 912
- drivers/md/dm-thin-metadata.c
- drivers/md/persistent-data/dm-array.c, line 304
- drivers/md/persistent-data/dm-btree.c, line 1327
- drivers/md/persistent-data/dm-space-map-common.c
Smatch caller information:
drivers/md/dm-thin-metadata.c __create_snap() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->levels | 1-u32max |
| PARAM_VALUE | 2 | keys | 1809826636124479488 |
| PARAM_VALUE | 2 | *keys | 0-16777215 |
| PARAM_VALUE | 3 | value | 8391111962777341952 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 8 |
| USER_DATA | 2 | *keys | 0-16777215 |
| USER_PTR | 2 | keys | |
| LOCK2 | &md->io_barrier | ||
| LOCK2 | &pmd->root_lock | ||
| TYPE_LOCK | (struct dm_pool_metadata)->root_lock | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-thin-metadata.c __create_thin() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 2 | keys | 526126020230057984 |
| PARAM_VALUE | 2 | *keys | 0-16777215 |
| PARAM_VALUE | 3 | value | 6851428892104404992 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 8 |
| USER_DATA | 2 | *keys | 0-16777215 |
| USER_PTR | 2 | keys | |
| LOCK2 | &md->io_barrier | ||
| LOCK2 | &pmd->root_lock | ||
| TYPE_LOCK | (struct dm_pool_metadata)->root_lock | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-thin-metadata.c __remove_range() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->levels | 1-u32max |
| PARAM_VALUE | 2 | keys | 4096-ptr_max |
| PARAM_VALUE | 3 | value | 2430980519375118336 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 8 |
| LOCK2 | &td->pmd->root_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct dm_pool_metadata)->root_lock |
drivers/md/dm-thin-metadata.c __write_changed_details() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 2 | keys | 6716828799751897088 |
| PARAM_VALUE | 3 | value | 148142237608411136 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 24 |
| LOCK2 | &pmd->root_lock | ||
| HALF_LOCKED2 | &md->io_barrier | ||
| HALF_LOCKED2 | global &dm_thin_pool_table.mutex | ||
| TYPE_LOCK | (struct dm_pool_metadata)->root_lock |
drivers/md/persistent-data/dm-array.c insert_ablock() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->tm | 4096-ptr_max |
| PARAM_VALUE | 3 | value | 6036633767415914496 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 8 |
| DATA_SOURCE | 4 | new_root | $3 |
| HALF_LOCKED2 | &cache->background_work_lock | ||
| HALF_LOCKED2 | &cmd->root_lock |
drivers/md/dm-era-target.c metadata_era_archive() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 2 | keys | 4096-ptr_max |
| PARAM_VALUE | 3 | value | 6757480246505750528 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 12 |
| HALF_LOCKED2 | &pool->lock |
drivers/md/persistent-data/dm-space-map-common.c ie_cache_writeback() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 2 | keys | 4096-ptr_max |
| PARAM_VALUE | 3 | value | 4096-ptr_max |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 16 |
drivers/md/persistent-data/dm-space-map-common.c sm_ll_inc_bitmap() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 3 | value | 8123867214889041920 |
| PARAM_VALUE | 3 | *value | 3 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 4 |
drivers/md/persistent-data/dm-space-map-common.c sm_ll_insert() -> dm_btree_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 3 | value | 6869619491745521664 |
| PARAM_VALUE | 4 | new_root | 4096-ptr_max |
| BUF_SIZE | 3 | value | 4 |