Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/block/drbd/drbd_actlog.c _bme_get() -> drbd_bm_e_weight()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->al_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->read_ee.prev 4096-ptr_max
PARAM_VALUE 0 device->read_ee.prev->next 4096-ptr_max
PARAM_VALUE 0 device->read_ee.prev->next->next 4096-ptr_max
PARAM_VALUE 0 device->resource 4096-ptr_max
PARAM_VALUE 0 device->resource->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resync 4096-ptr_max
PARAM_VALUE 0 device->resync->in_use.next 4096-ptr_max
PARAM_VALUE 0 device->resync->in_use.next->next 4096-ptr_max
PARAM_VALUE 0 device->resync->in_use.next->prev 4096-ptr_max
PARAM_VALUE 0 device->resync->nr_elements 1-u32max
PARAM_VALUE 0 device->resync->to_be_changed.next 4096-ptr_max
PARAM_VALUE 0 device->resync->to_be_changed.next->next 4096-ptr_max
PARAM_VALUE 0 device->resync->to_be_changed.next->prev 4096-ptr_max
PARAM_VALUE 0 device->state.disk 1-15
PARAM_VALUE 0 device->vdisk 4096-ptr_max
PARAM_VALUE 0 device->vdisk->part0 4096-ptr_max
CAPPED_DATA 0 device->resync_locked 1
DATA_SOURCE 0 device $0
DATA_SOURCE 1 enr $1
PREEMPT_ADD <- disables preempt
TASK_NOT_RUNNING
LOCK2 irq
LOCK2 0 &device->al_lock
TYPE_LOCK (struct drbd_device)->al_lock

drivers/block/drbd/drbd_actlog.c drbd_try_rs_begin_io() -> drbd_bm_e_weight()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->al_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->resync 4096-ptr_max
PARAM_VALUE 0 device->resync->nr_elements 1-u32max
PARAM_VALUE 0 device->resync->to_be_changed.next 4096-ptr_max
PARAM_VALUE 0 device->resync->to_be_changed.next->next 4096-ptr_max
PARAM_VALUE 0 device->resync->to_be_changed.next->prev 4096-ptr_max
PARAM_VALUE 0 device->vdisk 4096-ptr_max
CAPPED_DATA 0 device->resync_locked 1
PARAM_COMPARE 0 device->resync_wenr >= $1
PARAM_COMPARE 1 enr <= $0->resync_wenr
PREEMPT_ADD <- disables preempt
LOCK2 irq
LOCK2 0 &device->al_lock
TYPE_LOCK (struct drbd_device)->al_lock

drivers/block/drbd/drbd_actlog.c update_rs_extent() -> drbd_bm_e_weight()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->resync 4096-ptr_max
PARAM_VALUE 0 device->resync->nr_elements 1-u32max
PARAM_VALUE 0 device->state.disk 1-15
PARAM_VALUE 0 device->vdisk 4096-ptr_max
PARAM_VALUE 0 device->vdisk->part0 4096-ptr_max
CAPPED_DATA 1 enr 1
DATA_SOURCE 0 device $0
DATA_SOURCE 1 enr $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &device->al_lock
HALF_LOCKED2 &device->resource->req_lock
HALF_LOCKED2 &resource->req_lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
TYPE_LOCK (struct drbd_device)->al_lock

drivers/block/drbd/drbd_actlog.c update_rs_extent() -> drbd_bm_e_weight()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->resync 4096-ptr_max
PARAM_VALUE 0 device->resync->nr_elements 1-u32max
PARAM_VALUE 0 device->state.disk 1-15
PARAM_VALUE 0 device->vdisk 4096-ptr_max
PARAM_VALUE 0 device->vdisk->part0 4096-ptr_max
DATA_SOURCE 0 device $0
DATA_SOURCE 1 enr $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 enr 0-65537[c]
USER_DATA 1 enr 0-65537[c]
LOCK2 0 &device->al_lock
HALF_LOCKED2 &device->resource->req_lock
HALF_LOCKED2 &resource->req_lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
TYPE_LOCK (struct drbd_device)->al_lock