Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/drbd/drbd_bitmap.c drbd_bm_merge_lel() -> bm_clear_surplus()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | b | 0 |
| CAPPED_DATA | 0 | b->bm_words | 1 |
| PARAM_COMPARE | 0 | b->bm_number_of_pages | >= $0->bm_words |
| BIT_INFO | 0 | b | 0x0,0x0 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c drbd_bm_resize() -> bm_clear_surplus()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_bits | 0-2305843009213693951 |
| PARAM_VALUE | 0 | b->bm_dev_capacity | 1-u64max |
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | b->bm_number_of_pages | 0-70368744177664 |
| PARAM_VALUE | 0 | b->bm_pages | 1-u64max |
| PARAM_VALUE | 0 | b->bm_words | 0-36028797018963968 |
| BUF_SIZE | 0 | b->bm_pages | 0-s32max |
| CAPPED_DATA | 0 | b->bm_bits | 1 |
| CAPPED_DATA | 0 | b->bm_dev_capacity | 1 |
| CAPPED_DATA | 0 | b->bm_number_of_pages | 1 |
| CAPPED_DATA | 0 | b->bm_words | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |
drivers/block/drbd/drbd_bitmap.c drbd_bm_set_all() -> bm_clear_surplus()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | b | 4096-ptr_max |
| PARAM_VALUE | 0 | b->bm_lock.rlock.dep_map->name | 0-255 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irq | ||
| LOCK2 | 0 | &b->bm_lock | |
| HALF_LOCKED2 | &sock->mutex | ||
| TYPE_LOCK | (struct drbd_bitmap)->bm_lock |