Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/ocfs2/dlm/dlmmaster.c dlm_is_lockres_migratable() -> dlm_list_idx_to_ptr()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 idx 0-2
CAPPED_DATA 0 res->owner 1
DATA_SOURCE 0 res $1
FUZZY_MAX 1 idx 2
BIT_INFO 0 res->state 0x0,0xbfdd
HARD_MAX 1 idx 2
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/dlmmaster.c dlm_pick_migration_target() -> dlm_list_idx_to_ptr()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 idx 0-2
CAPPED_DATA 0 res->owner 1
DATA_SOURCE 0 res $1
FUZZY_MAX 1 idx 2
HARD_MAX 1 idx 2
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_move_lockres_to_recovery_list() -> dlm_list_idx_to_ptr()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->recovering.next 4096-ptr_max
PARAM_VALUE 0 res->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 *res->lvb 0-255
PARAM_VALUE 1 idx 0-2
CAPPED_DATA 0 res->lockname.len 1
CAPPED_DATA 0 res->owner 1
CAPPED_DATA 0 &res->recovering 1
DATA_SOURCE 0 res $1
BIT_INFO 0 res->state 0x2,0xffffffffffffffff
PREEMPT_ADD
RX_PATH
LOCK2 &dlm->spinlock
LOCK2 0 &res->spinlock
HALF_LOCKED2 global &o2hb_callback_sem
TYPE_LOCK (struct dlm_ctxt)->spinlock
TYPE_LOCK (struct dlm_lock_resource)->spinlock

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

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

fs/ocfs2/dlm/dlmrecovery.c dlm_revalidate_lvb() -> dlm_list_idx_to_ptr()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 idx 0-1
CAPPED_DATA 0 res->lockname.len 1
DATA_SOURCE 0 res $1
PREEMPT_ADD
RX_PATH
LOCK2 &dlm->spinlock
LOCK2 0 &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

fs/ocfs2/dlm/dlmrecovery.c dlm_send_one_lockres() -> dlm_list_idx_to_ptr()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 1 idx 0-2
DATA_SOURCE 0 res $1
RX_PATH
TASK_NOT_RUNNING