Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/block/drbd/drbd_actlog.c, line 814
- drivers/block/drbd/drbd_main.c, line 823
- drivers/block/drbd/drbd_nl.c
- drivers/block/drbd/drbd_proc.c
- drivers/block/drbd/drbd_receiver.c
- drivers/block/drbd/drbd_worker.c
Smatch caller information:
drivers/block/drbd/drbd_nl.c nla_put_status_info() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->bitmap | 0-1 |
| PARAM_VALUE | 0 | device->ldev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid_lock.rlock.dep_map->name | 0-255 |
| 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->state.disk | 1 |
| DATA_SOURCE | 0 | device | $1 |
| STR_LEN | 0 | device | (-1),8,11,17,19-20 |
| STR_LEN | 0 | device | (-1),8,11,17,19-20 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/block/drbd/drbd_nl.c peer_device_to_statistics() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
drivers/block/drbd/drbd_actlog.c update_sync_bits() -> drbd_bm_total_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->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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &device->resource->req_lock | ||
| HALF_LOCKED2 | &resource->req_lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/block/drbd/drbd_main.c _drbd_send_uuids() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | device->state.disk | 3-15 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | device->minor | 0-1048575 |
| LOCK2 | &sock->mutex | ||
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_receiver.c drbd_rs_c_min_rate_throttle() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->backing_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->state.conn | 0-17,20-31 |
| PARAM_VALUE | 0 | device->vdisk | 4096-ptr_max |
| DATA_SOURCE | 0 | device | $0 |
drivers/block/drbd/drbd_receiver.c drbd_sync_handshake() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid | 0,4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid_lock.rlock.dep_map->name | 0-255 |
drivers/block/drbd/drbd_receiver.c drbd_sync_handshake() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->bitmap->bm_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | device->ldev->md.uuid | 0,4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| PARAM_VALUE | 0 | device->state.disk | 1-15 |
drivers/block/drbd/drbd_receiver.c drbd_uuid_compare() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid | 4096-ptr_max |
| PARAM_VALUE | 0 | device->p_uuid | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| PARAM_VALUE | 0 | device->state.disk | 3-15 |
| PREEMPT_ADD | |||
| LOCK2 | &device->ldev->md.uuid_lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct drbd_md)->uuid_lock |
drivers/block/drbd/drbd_receiver.c drbd_uuid_compare() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->ldev->md.uuid | 4096-ptr_max |
| PARAM_VALUE | 0 | device->md_sync_timer.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->md_sync_timer.entry.pprev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | device->p_uuid | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| PARAM_VALUE | 0 | device->state.disk | 3-15 |
| PREEMPT_ADD | |||
| LOCK2 | &device->ldev->md.uuid_lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct drbd_md)->uuid_lock |
drivers/block/drbd/drbd_receiver.c receive_state() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource->req_lock.rlock.dep_map->name | 0-255 |
drivers/block/drbd/drbd_proc.c drbd_get_syncer_progress() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| DATA_SOURCE | 0 | device | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seq->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/block/drbd/drbd_proc.c drbd_seq_show() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| DATA_SOURCE | 0 | device | r idr_get_next |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seq->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/block/drbd/drbd_worker.c drbd_resync_finished() -> drbd_bm_total_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->resource | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource->req_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | device->resync->free.next | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resync->free.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resync->free.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resync_wenr | u32max |
| PARAM_VALUE | 0 | device->state.disk | 1-15 |
| CAPPED_DATA | 0 | device->state.disk | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &device->resource->req_lock | |
| HALF_LOCKED2 | device->state_mutex | ||
| TYPE_LOCK | (struct drbd_resource)->req_lock |
drivers/block/drbd/drbd_worker.c drbd_start_resync() -> drbd_bm_total_weight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 0 | device->resource | 4096-ptr_max |
| PARAM_VALUE | 0 | device->state_mutex->dep_map->name | 0-255 |
| PARAM_VALUE | 0 | device->state_mutex->first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | device->state_mutex->first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | device->state_mutex->osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | device->state_mutex->wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | device->state_mutex->wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | device->state_mutex->wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | device->resource->devices.idr_base | 1 |
| DATA_SOURCE | 0 | device | $0 |
| LOCK2 | global &resources_mutex | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | device->state_mutex |