Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/md/dm-snap.c register_snapshot() -> __insert_snapshot()

Type Parameter Key Value
PARAM_VALUE 0 o 4096-ptr_max
PARAM_VALUE 0 o->bdev 4096-ptr_max
PARAM_VALUE 0 o->hash_list.next 4096-ptr_max
PARAM_VALUE 0 o->snapshots.next 4096-ptr_max
PARAM_VALUE 0 o->snapshots.next->next 4096-ptr_max
PARAM_VALUE 0 o->snapshots.prev 4096-ptr_max
PARAM_VALUE 0 o->snapshots.prev->next 4096-ptr_max
PARAM_VALUE 0 o->snapshots.prev->prev 4096-ptr_max
PARAM_VALUE 1 s 4096-ptr_max
PARAM_VALUE 1 s->active 0
PARAM_VALUE 1 s->bios_queued_during_merge.head 0
PARAM_VALUE 1 s->bios_queued_during_merge.tail 0
PARAM_VALUE 1 s->complete.hash_mask 0-26213
PARAM_VALUE 1 s->complete.hash_shift 8
PARAM_VALUE 1 s->complete.table 16,4096-ptr_max
PARAM_VALUE 1 s->cow 4096-ptr_max
PARAM_VALUE 1 s->cow->bdev 4096-ptr_max
PARAM_VALUE 1 s->exception_complete_sequence 0
PARAM_VALUE 1 s->exception_start_sequence 0
PARAM_VALUE 1 s->first_merging_chunk 0
PARAM_VALUE 1 s->in_progress_wait.head.next 4096-ptr_max
PARAM_VALUE 1 s->in_progress_wait.head.next->next 4096-ptr_max
PARAM_VALUE 1 s->in_progress_wait.head.prev 4096-ptr_max
PARAM_VALUE 1 s->in_progress_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 1 s->in_progress_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 1 s->kcopyd_client 4096-ptr_max
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.back_pad 0,64
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bio_pool.alloc 7276475779886346240
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bio_pool.curr_nr 1-s32max
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bio_pool.free 8263660038527102976
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bio_pool.min_nr 1-1024
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bvec_pool.alloc 7276475779886346240
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bvec_pool.curr_nr 1-s32max
PARAM_VALUE 1 s->kcopyd_client->io_client->bios.bvec_pool.free 8263660038527102976
PARAM_VALUE 1 s->kcopyd_client->io_client->pool.alloc 7276475779886346240
PARAM_VALUE 1 s->kcopyd_client->io_client->pool.curr_nr 1-s32max
PARAM_VALUE 1 s->kcopyd_client->io_client->pool.free 8263660038527102976
PARAM_VALUE 1 s->kcopyd_client->io_client->pool.min_nr 1-1024
PARAM_VALUE 1 s->kcopyd_client->job_pool.alloc 7276475779886346240
PARAM_VALUE 1 s->kcopyd_client->job_pool.curr_nr 1-s32max
PARAM_VALUE 1 s->kcopyd_client->job_pool.free 8263660038527102976
PARAM_VALUE 1 s->kcopyd_client->job_pool.min_nr 8
PARAM_VALUE 1 s->kcopyd_client->nr_jobs.counter 0
PARAM_VALUE 1 s->kcopyd_client->nr_reserved_pages 1-2560
PARAM_VALUE 1 s->kcopyd_client->sub_job_size 2-20480
PARAM_VALUE 1 s->kcopyd_client->throttle 328210832927166464
PARAM_VALUE 1 s->list.next 4096-ptr_max
PARAM_VALUE 1 s->list.next->next 4096-ptr_max
PARAM_VALUE 1 s->list.prev 4096-ptr_max
PARAM_VALUE 1 s->list.prev->next 4096-ptr_max
PARAM_VALUE 1 s->list.prev->prev 4096-ptr_max
PARAM_VALUE 1 s->lock.count.counter 0
PARAM_VALUE 1 s->lock.dep_map->name 0-255
PARAM_VALUE 1 s->lock.first_waiter 0
PARAM_VALUE 1 s->lock.magic 4096-ptr_max
PARAM_VALUE 1 s->lock.osq.tail.counter 0
PARAM_VALUE 1 s->lock.owner.counter 0
PARAM_VALUE 1 s->merge_failed 0
PARAM_VALUE 1 s->num_merging_chunks 0
PARAM_VALUE 1 s->origin 4096-ptr_max
PARAM_VALUE 1 s->origin->bdev 4096-ptr_max
PARAM_VALUE 1 s->pending.hash_mask 63-3275
PARAM_VALUE 1 s->pending.hash_shift 0
PARAM_VALUE 1 s->pending.table 4096-ptr_max
PARAM_VALUE 1 s->pending_exceptions_count.counter 0
PARAM_VALUE 1 s->pending_pool.alloc 7276475779886346240
PARAM_VALUE 1 s->pending_pool.curr_nr 1-s32max
PARAM_VALUE 1 s->pending_pool.elements 1-u64max
PARAM_VALUE 1 s->pending_pool.free 8263660038527102976
PARAM_VALUE 1 s->pending_pool.min_nr 256
PARAM_VALUE 1 s->pending_pool.pool_data 0,4096-ptr_max
PARAM_VALUE 1 s->pending_pool.wait.head.next 4096-ptr_max
PARAM_VALUE 1 s->pending_pool.wait.head.next->next 4096-ptr_max
PARAM_VALUE 1 s->pending_pool.wait.head.prev 4096-ptr_max
PARAM_VALUE 1 s->pending_pool.wait.head.prev->next 4096-ptr_max
PARAM_VALUE 1 s->pending_pool.wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 1 s->snapshot_overflowed 0
PARAM_VALUE 1 s->state_bits 0
PARAM_VALUE 1 s->store 4096-ptr_max
PARAM_VALUE 1 s->store->chunk_mask 0-4194302
PARAM_VALUE 1 s->store->chunk_size 0-4194303
PARAM_VALUE 1 s->store->snap 4096-ptr_max
PARAM_VALUE 1 s->ti 4096-ptr_max
PARAM_VALUE 1 s->ti->error 2315922945982840832,6178336389065121792,6894647089322225664
PARAM_VALUE 1 s->ti->len 1-u64max
PARAM_VALUE 1 s->ti->table 4096-ptr_max
PARAM_VALUE 1 s->ti->type 4096-ptr_max
PARAM_VALUE 1 s->tracked_chunk_hash 4096-ptr_max
PARAM_VALUE 1 s->valid 1
BUF_SIZE 0 o 40,u64max
BUF_SIZE 0 o 40,u64max
BUF_SIZE 1 s 968
BUF_SIZE 1 s->kcopyd_client 560
CAPPED_DATA 1 s->kcopyd_client->sub_job_size 1
CAPPED_DATA 1 s->ti->begin 1
DATA_SOURCE 1 s $0
STR_LEN 1 s->ti->error (-1),13
BIT_INFO 1 s->out_of_order_tree 0x0,0x7fffffffffffffff
TERMINATED 1 s->ti->error 1
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 s->kcopyd_client->io_client->bios.bio_pool.min_nr
NO_OVERFLOW_SIMPLE 1 s->kcopyd_client->io_client->bios.bvec_pool.min_nr
NO_OVERFLOW_SIMPLE 1 s->kcopyd_client->io_client->pool.min_nr
NO_OVERFLOW_SIMPLE 1 s->store->chunk_size
NO_OVERFLOW_SIMPLE 1 s->ti->begin
NO_OVERFLOW_SIMPLE 1 s->ti->len
LOCK2 global &_origins_lock
HALF_LOCKED2 &md->type_lock

drivers/md/dm-snap.c reregister_snapshot() -> __insert_snapshot()

Type Parameter Key Value
PARAM_VALUE 0 o 0,4096-ptr_max
PARAM_VALUE 1 s 4096-ptr_max
PARAM_VALUE 1 s->origin 4096-ptr_max
PARAM_VALUE 1 s->origin->bdev 4096-ptr_max
BUF_SIZE 1 s 16,40-s32max
BUF_SIZE 1 s 16,40-s32max
CAPPED_DATA 1 s->origin->bdev 1
DATA_SOURCE 1 s $0
NOCHECK_CALL
LOCK2 &md->suspend_lock
LOCK2 global &_origins_lock