Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/ocfs2/dlm/dlmmaster.c dlm_do_assert_master() -> dlm_lockres_set_refmap_bit()

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->lockname.len 0-64
PARAM_VALUE 1 res->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 *res->lvb 0-255
PARAM_VALUE 2 bit 0-64
BUF_SIZE 0 dlm (-1),8,1560
BUF_SIZE 0 dlm (-1),8,1560
BUF_SIZE 1 res->dlm (-1),8,1560
CAPPED_DATA 0 dlm 1
CAPPED_DATA 2 bit 1
DATA_SOURCE 0 dlm $0
DATA_SOURCE 1 res $1
DATA_SOURCE 2 bit r dlm_node_iter_next
STR_LEN 0 dlm (-1),9
STR_LEN 0 dlm (-1),9
STR_LEN 1 res->dlm (-1),9
BIT_INFO 1 res->state 0x2000,0xffffffffffffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 1 &res->spinlock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmmaster.c dlm_do_migrate_request() -> dlm_lockres_set_refmap_bit()

Type Parameter Key Value
PARAM_VALUE 0 dlm 4096-ptr_max
PARAM_VALUE 0 dlm->domain_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
PARAM_VALUE 2 bit 0-64
CAPPED_DATA 2 bit 1
DATA_SOURCE 0 dlm $0
DATA_SOURCE 1 res $1
DATA_SOURCE 2 bit r dlm_node_iter_next
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 1 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmmaster.c dlm_finish_migration() -> dlm_lockres_set_refmap_bit()

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
PARAM_VALUE 1 *res->lvb 0-255
DATA_SOURCE 0 dlm $0
DATA_SOURCE 1 res $1
DATA_SOURCE 2 bit $2
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 1 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmmaster.c dlm_master_request_handler() -> dlm_lockres_set_refmap_bit()

Type Parameter Key Value
PARAM_VALUE 0 dlm 4096-ptr_max
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->hash_node.pprev 1-u64max
PARAM_VALUE 1 res->lockname.name 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 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
BIT_INFO 1 res->state 0x0,0xffdd
PREEMPT_ADD <- disables preempt
RX_PATH
NOCHECK_CALL
LOCK2 1 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmmaster.c dlm_master_request_handler() -> dlm_lockres_set_refmap_bit()

Type Parameter Key Value
PARAM_VALUE 0 dlm 4096-ptr_max
PARAM_VALUE 0 dlm->dlm_state 1-2
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->node_num 0-254
PARAM_VALUE 0 dlm->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->hash_node.pprev 1-u64max
PARAM_VALUE 1 res->lockname.name 4096-ptr_max
PARAM_VALUE 1 res->owner 255
PARAM_VALUE 1 res->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 res->state 16-u16max
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
DATA_SOURCE 0 dlm $2
DATA_SOURCE 1 res r __dlm_lookup_lockres
PARAM_COMPARE 0 dlm->node_num != $1->owner
BIT_INFO 1 res->state 0x10,0xffdd
PREEMPT_ADD <- disables preempt
RX_PATH
NOCHECK_CALL
LOCK2 &tmpmle->spinlock
LOCK2 0 &dlm->master_lock
LOCK2 1 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_ctxt)->master_lock
TYPE_LOCK (struct dlm_lock_resource)->spinlock
TYPE_LOCK (struct dlm_master_list_entry)->spinlock

fs/ocfs2/dlm/dlmrecovery.c dlm_process_recovery_data() -> dlm_lockres_set_refmap_bit()

Type Parameter Key Value
PARAM_VALUE 0 dlm 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->spinlock.rlock.dep_map->name 0-255
DATA_SOURCE 0 dlm $0
DATA_SOURCE 1 res $1 [m]
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 1 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmrecovery.c dlm_process_recovery_data() -> dlm_lockres_set_refmap_bit()

Type Parameter Key Value
PARAM_VALUE 0 dlm 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->spinlock.rlock.dep_map->name 0-255
DATA_SOURCE 0 dlm $0
DATA_SOURCE 1 res $1 [m]
PARAM_COMPARE 0 dlm->node_num != $2
PARAM_COMPARE 2 bit != $0->node_num
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 1 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_lock_resource)->spinlock