Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/md/dm-pcache/cache_key.c
- drivers/md/dm-pcache/cache_req.c
- drivers/md/dm-pcache/cache_writeback.c, line 180
Smatch caller information:
drivers/md/dm-pcache/cache_req.c cache_miss_req_alloc() -> cache_key_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache_tree | 4096-ptr_max |
| PARAM_VALUE | 1 | gfp_mask | 3072,10240 |
| DATA_SOURCE | 1 | gfp_mask | $2 |
| HARD_MAX | 1 | gfp_mask | 10240 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cache_subtree->tree_lock |
drivers/md/dm-pcache/cache_req.c cache_write() -> cache_key_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache_tree | 4096-ptr_max |
| PARAM_VALUE | 1 | gfp_mask | 3072 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &md->io_barrier |
drivers/md/dm-pcache/cache_key.c cache_key_insert() -> cache_key_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache_tree | 4096-ptr_max |
| PARAM_VALUE | 1 | gfp_mask | 3072 |
| DATA_SOURCE | 0 | cache_tree | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | cache_tree->key_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | cache_tree->n_subtrees | |
| LOCK2 | &cache_subtree->tree_lock | ||
| HALF_LOCKED2 | &cache->writeback_lock |
drivers/md/dm-pcache/cache_key.c get_pre_alloc_key() -> cache_key_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache_tree | 0,4096-ptr_max |
| PARAM_VALUE | 1 | gfp_mask | 10240 |
| BUF_SIZE | 0 | cache_tree | (-1),224 |
| BUF_SIZE | 0 | cache_tree | (-1),224 |
| TASK_NOT_RUNNING | |||
| LOCK2 | &cache_subtree->tree_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct pcache_cache_subtree)->tree_lock |
drivers/md/dm-pcache/cache_key.c kset_replay() -> cache_key_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache_tree | 4096-ptr_max |
| PARAM_VALUE | 0 | cache_tree->cache | 4096-ptr_max |
| PARAM_VALUE | 0 | cache_tree->key_pool.alloc | 7276475779886346240 |
| PARAM_VALUE | 0 | cache_tree->key_pool.elements | 1-u64max |
| PARAM_VALUE | 0 | cache_tree->key_pool.free | 8263660038527102976 |
| PARAM_VALUE | 0 | cache_tree->key_pool.min_nr | 1024 |
| PARAM_VALUE | 0 | cache_tree->subtrees | 16,4096-ptr_max |
| PARAM_VALUE | 1 | gfp_mask | 3072 |
| NO_OVERFLOW_SIMPLE | 0 | cache_tree->key_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | cache_tree->n_subtrees | |
| HALF_LOCKED2 | &md->type_lock |
drivers/md/dm-pcache/cache_writeback.c cache_kset_insert_tree() -> cache_key_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cache_tree | 4096-ptr_max |
| PARAM_VALUE | 1 | gfp_mask | 3072 |
| LOCK2 | &cache->writeback_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct pcache_cache)->writeback_lock |