Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- fs/ocfs2/dlm/dlmdomain.c, line 433
- fs/ocfs2/dlm/dlmrecovery.c, line 2411
- fs/ocfs2/dlm/dlmthread.c, line 138
Smatch caller information:
fs/ocfs2/dlm/dlmthread.c dlm_lockres_calc_usage() -> __dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | dlm | (-1),8,128,720,1560 |
| BUF_SIZE | 0 | dlm | (-1),8,128,720,1560 |
| CAPPED_DATA | 0 | dlm | 1 |
| CAPPED_DATA | 1 | res | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| DATA_SOURCE | 1 | res | $1 |
| STR_LEN | 0 | dlm | (-1),9 |
| STR_LEN | 0 | dlm | (-1),9 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &dlm->spinlock | |
| LOCK2 | 1 | &res->spinlock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct dlm_ctxt)->spinlock | ||
| TYPE_LOCK | (struct dlm_lock_resource)->spinlock |
fs/ocfs2/dlm/dlmdomain.c dlm_migrate_all_locks() -> __dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->dlm_state | 2 |
| PARAM_VALUE | 0 | dlm->dlm_worker->flush_color | s32min-s32max |
| PARAM_VALUE | 0 | dlm->dlm_worker->work_color | s32min-s32max |
| PARAM_VALUE | 0 | dlm->lockres_hash | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->num_joins | 0 |
| PARAM_VALUE | 0 | dlm->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | dlm | 8,1560 |
| BUF_SIZE | 0 | dlm | 8,1560 |
| CAPPED_DATA | 0 | dlm | 1 |
| CAPPED_DATA | 1 | res | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &dlm->spinlock | |
| LOCK2 | 1 | &res->spinlock | |
| TYPE_LOCK | (struct dlm_ctxt)->spinlock | ||
| TYPE_LOCK | (struct dlm_lock_resource)->spinlock |
fs/ocfs2/dlm/dlmrecovery.c dlm_do_local_recovery_cleanup() -> __dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->domain_map | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->live_nodes_map | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->lockres_hash | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->master_hash | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->master_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->reco.resources.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->recovery_map | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->refmap | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | *res->lvb | 0-255 |
| BUF_SIZE | 0 | dlm | 720,1560 |
| BUF_SIZE | 0 | dlm | 720,1560 |
| CAPPED_DATA | 0 | dlm | 1 |
| CAPPED_DATA | 0 | dlm->node_num | 1 |
| CAPPED_DATA | 1 | res->lockname.len | 1 |
| CAPPED_DATA | 1 | res->owner | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| PARAM_COMPARE | 0 | dlm->node_num | == $1->owner |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &dlm->spinlock | |
| LOCK2 | 1 | &res->spinlock | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &o2hb_callback_sem | ||
| TYPE_LOCK | (struct dlm_ctxt)->spinlock | ||
| TYPE_LOCK | (struct dlm_lock_resource)->spinlock |