Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- fs/ocfs2/dlm/dlmlock.c
- fs/ocfs2/dlm/dlmmaster.c
- fs/ocfs2/dlm/dlmthread.c, line 769
- fs/ocfs2/dlm/dlmunlock.c
Smatch caller information:
fs/ocfs2/dlm/dlmlock.c dlmlock() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->lockres_hash | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->master_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->track_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->tracking_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->tracking_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->tracking_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->hash_node->pprev | 4096-ptr_max |
| PARAM_VALUE | 1 | res->hash_node.pprev | 1-u64max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res->wq.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | *res->lvb | 0-255 |
| BUF_SIZE | 0 | dlm | 8,128,1560 |
| BUF_SIZE | 0 | dlm | 8,128,1560 |
| CAPPED_DATA | 0 | dlm | 1 |
| CAPPED_DATA | 1 | res->owner | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| DATA_SOURCE | 1 | res | r dlm_get_lock_resource |
| STR_LEN | 0 | dlm | (-1),9 |
| STR_LEN | 0 | dlm | (-1),9 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/ocfs2/dlm/dlmlock.c dlmlock_master() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->lockres_hash | 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->blocked.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | res->blocked.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->blocked.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res->wq.lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | dlm | 8,128,720,1560 |
| BUF_SIZE | 0 | dlm | 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/ocfs2/dlm/dlmlock.c dlmlock_remote() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->lockres_hash | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->master_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->track_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->tracking_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->tracking_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->tracking_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->blocked.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | res->blocked.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->blocked.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->hash_node->pprev | 4096-ptr_max |
| PARAM_VALUE | 1 | res->hash_node.pprev | 1-u64max |
| PARAM_VALUE | 1 | res->owner | 0-254 |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res->state | 0-65519 |
| PARAM_VALUE | 1 | res->wq.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | *res->lvb | 0-255 |
| BUF_SIZE | 0 | dlm | 8,128,1560 |
| BUF_SIZE | 0 | dlm | 8,128,1560 |
| CAPPED_DATA | 0 | dlm | 1 |
| CAPPED_DATA | 1 | res | 1 |
| CAPPED_DATA | 1 | res->owner | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| DATA_SOURCE | 1 | res | $1 |
| STR_LEN | 0 | dlm | (-1),9 |
| STR_LEN | 0 | dlm | (-1),9 |
| PARAM_COMPARE | 0 | dlm->node_num | != $1->owner |
| BIT_INFO | 1 | res->state | 0x0,0xffef |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/ocfs2/dlm/dlmthread.c dlm_thread() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->ast_lock.rlock.dep_map->name | 0-255 |
| 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 |
| PARAM_VALUE | 1 | res->state | 0-49093 |
| BUF_SIZE | 0 | dlm | 128 |
| BUF_SIZE | 0 | dlm | 128 |
| CAPPED_DATA | 0 | dlm->node_num | 1 |
| CAPPED_DATA | 0 | &dlm->dirty_list | 1 |
| CAPPED_DATA | 1 | res->owner | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| PARAM_COMPARE | 0 | dlm->node_num | == $1->owner |
| PARAM_COMPARE | 0 | &dlm->dirty_list | != $0->dirty_list.next |
| BIT_INFO | 1 | res->state | 0x0,0xbfc5 |
| NOCHECK_CALL |
fs/ocfs2/dlm/dlmunlock.c dlm_unlock_lock_handler() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->ast_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dlm->dlm_state | 1-2 |
| PARAM_VALUE | 0 | dlm->lockres_hash | 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->granted.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | res->granted.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->granted.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->lockname.name | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res->state | 0-65519 |
| PARAM_VALUE | 1 | *res->lvb | 0-255 |
| BUF_SIZE | 0 | dlm | 720 |
| BUF_SIZE | 0 | dlm | 720 |
| 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 | $2 |
| DATA_SOURCE | 1 | res | r dlm_lookup_lockres |
| PARAM_COMPARE | 0 | dlm->node_num | == $1->owner |
| RX_PATH | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/ocfs2/dlm/dlmunlock.c dlmunlock() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->ast_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res | 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 | 8,128,1560 |
| BUF_SIZE | 0 | dlm | 8,128,1560 |
| DATA_SOURCE | 0 | dlm | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/ocfs2/dlm/dlmmaster.c dlm_deref_lockres_handler() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->lockres_hash | 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->lockname.name | 4096-ptr_max |
| PARAM_VALUE | 1 | res->refmap | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | dlm | 720 |
| BUF_SIZE | 0 | dlm | 720 |
| CAPPED_DATA | 0 | dlm | 1 |
| CAPPED_DATA | 1 | res->lockname.len | 1 |
| DATA_SOURCE | 0 | dlm | $2 |
| DATA_SOURCE | 1 | res | r __dlm_lookup_lockres_full |
| BIT_INFO | 1 | res->state | 0x0,0xdfbf |
| RX_PATH | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/ocfs2/dlm/dlmmaster.c dlm_deref_lockres_worker() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->lockname.len | 0-64 |
| PARAM_VALUE | 1 | res->refmap | 4096-ptr_max |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| BIT_INFO | 1 | res->state | 0x0,0xffbf |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/ocfs2/dlm/dlmmaster.c dlm_migrate_lockres() -> dlm_lockres_calc_usage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dlm | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->dirty_list.prev | 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->domain_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->mle_hb_events.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dlm->mle_hb_events.prev->next->next | 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->dirty.next | 4096-ptr_max |
| PARAM_VALUE | 1 | res->owner | 0-254 |
| PARAM_VALUE | 1 | res->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | res->state | 0-61407 |
| PARAM_VALUE | 1 | res->wq.lock.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 | 0 | dlm->node_num | 1 |
| DATA_SOURCE | 0 | dlm | $0 |
| DATA_SOURCE | 1 | res | $1 |
| BIT_INFO | 1 | res->state | 0x0,0xffdf |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |