Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/ocfs2/dlm/dlmthread.c __dlm_lockres_unused() -> __dlm_lockres_has_locks()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
BUF_SIZE 0 res (-1)-s32max
BUF_SIZE 0 res (-1)-s32max
CAPPED_DATA 0 res 1
DATA_SOURCE 0 res $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dlm->spinlock
LOCK2 0 &res->spinlock
TYPE_LOCK (struct dlm_ctxt)->spinlock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmrecovery.c dlm_finish_local_lockres_recovery() -> __dlm_lockres_has_locks()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
CAPPED_DATA 0 &res->recovering 1
BIT_INFO 0 res->state 0x0,0xfffd
PREEMPT_ADD <- disables preempt
RX_PATH
LOCK2 &dlm->spinlock
LOCK2 0 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_ctxt)->spinlock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

fs/ocfs2/dlm/dlmrecovery.c dlm_finish_local_lockres_recovery() -> __dlm_lockres_has_locks()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
CAPPED_DATA 0 &res->recovering 1
BIT_INFO 0 res->state 0x0,0xfffd
PREEMPT_ADD <- disables preempt
RX_PATH
LOCK2 &dlm->spinlock
LOCK2 0 &res->spinlock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dlm_ctxt)->spinlock
TYPE_LOCK (struct dlm_lock_resource)->spinlock