Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/md/dm-cache-target.c cache_create() -> set_cache_size()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->cache_dev 4096-ptr_max
PARAM_VALUE 0 cache->features.io_mode 0-2
PARAM_VALUE 0 cache->features.metadata_version 1-2
PARAM_VALUE 0 cache->features.mode 0
PARAM_VALUE 0 cache->metadata_dev 4096-ptr_max
PARAM_VALUE 0 cache->origin_blocks 0-288230376151711743
PARAM_VALUE 0 cache->origin_dev 4096-ptr_max
PARAM_VALUE 0 cache->origin_sectors 1-u64max
PARAM_VALUE 0 cache->sectors_per_block 64-2097152
PARAM_VALUE 0 cache->sectors_per_block_shift (-1)
PARAM_VALUE 0 cache->ti 4096-ptr_max
PARAM_VALUE 0 cache->ti->error 6178336389065121792
PARAM_VALUE 0 cache->ti->len 1-u64max
PARAM_VALUE 0 cache->ti->table 4096-ptr_max
PARAM_VALUE 0 cache->ti->type 4096-ptr_max
BUF_SIZE 0 cache 2416
CAPPED_DATA 0 cache->ti->begin 1
DATA_SOURCE 0 cache r _kzalloc_noprof
STR_LEN 0 cache->ti->error 13
TERMINATED 0 cache->ti->error 1
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 cache->origin_sectors
NO_OVERFLOW_SIMPLE 0 cache->ti->begin
NO_OVERFLOW_SIMPLE 0 cache->ti->len
HALF_LOCKED2 &md->type_lock

drivers/md/dm-cache-target.c cache_create() -> set_cache_size()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->cache_dev 4096-ptr_max
PARAM_VALUE 0 cache->features.io_mode 0-2
PARAM_VALUE 0 cache->features.metadata_version 1-2
PARAM_VALUE 0 cache->features.mode 0
PARAM_VALUE 0 cache->metadata_dev 4096-ptr_max
PARAM_VALUE 0 cache->origin_blocks 0-288230376151711743
PARAM_VALUE 0 cache->origin_dev 4096-ptr_max
PARAM_VALUE 0 cache->origin_sectors 1-u64max
PARAM_VALUE 0 cache->sectors_per_block 64-2097152
PARAM_VALUE 0 cache->ti 4096-ptr_max
PARAM_VALUE 0 cache->ti->error 6178336389065121792
PARAM_VALUE 0 cache->ti->len 1-u64max
PARAM_VALUE 0 cache->ti->table 4096-ptr_max
PARAM_VALUE 0 cache->ti->type 4096-ptr_max
BUF_SIZE 0 cache 2416
CAPPED_DATA 0 cache->ti->begin 1
DATA_SOURCE 0 cache r _kzalloc_noprof
STR_LEN 0 cache->ti->error 13
TERMINATED 0 cache->ti->error 1
POWER_OF_TWO 0 cache->sectors_per_block_shift
POWER_OF_TWO 0 *cache
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 cache->origin_sectors
NO_OVERFLOW_SIMPLE 0 cache->ti->begin
NO_OVERFLOW_SIMPLE 0 cache->ti->len
HALF_LOCKED2 &md->type_lock

drivers/md/dm-cache-target.c resize_cache_dev() -> set_cache_size()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->cache_dev 4096-ptr_max
PARAM_VALUE 0 cache->cache_dev->bdev 4096-ptr_max
PARAM_VALUE 0 cache->cmd 4096-ptr_max
PARAM_VALUE 0 cache->cmd->cache_blocks 0-4294967295
PARAM_VALUE 0 cache->cmd->changed 1
PARAM_VALUE 0 cache->cmd->dirty_cursor.array_index 0-67108876
PARAM_VALUE 0 cache->cmd->dirty_cursor.bit_index 0-63
PARAM_VALUE 0 cache->cmd->dirty_cursor.cursor.cursor.info->tm->bm->bufio->lock.osq.tail.counter s32min-s32max
PARAM_VALUE 0 cache->cmd->dirty_cursor.cursor.cursor.info->tm->bm->bufio->need_reserved_buffers 0-4294967295
PARAM_VALUE 0 cache->cmd->dirty_cursor.entries_remaining 0-4294967295
PARAM_VALUE 0 cache->cmd->fail_io 0
PARAM_VALUE 0 cache->cmd->info.btree_info.tm->bm->bufio->cache.num_locks 0-4294967295
PARAM_VALUE 0 cache->cmd->info.btree_info.tm->bm->bufio->need_reserved_buffers 0-4294967295
PARAM_VALUE 0 cache->cmd->info.btree_info.tm->real->bm->bufio->cache.num_locks 0-4294967295
PARAM_VALUE 0 cache->cmd->info.btree_info.tm->real->bm->bufio->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 cache->cmd->info.btree_info.tm->real->bm->bufio->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 cache->cmd->info.btree_info.tm->real->bm->bufio->need_reserved_buffers 0-4294967295
PARAM_VALUE 0 cache->cmd->root_lock.dep_map->name 0-255
PARAM_VALUE 0 cache->cmd->root_lock.first_waiter->handoff_set 1
PARAM_VALUE 0 cache->cmd->root_lock.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 cache->cmd->root_lock.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 cache->cmd->root_lock.first_waiter->type 0-1
PARAM_VALUE 0 cache->cmd->root_lock.osq.tail.counter 0-s32max
BUF_SIZE 0 cache 16,40-s32max
BUF_SIZE 0 cache 16,40-s32max
DATA_SOURCE 0 cache $0
DATA_SOURCE 1 size $1
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 cache->cmd->dirty_cursor.cursor.cursor.info->tm->real->bm->bufio->block_size
NO_OVERFLOW_SIMPLE 0 cache->cmd->dirty_cursor.cursor.info->btree_info.tm->real->bm->bufio->block_size
LOCK2 &md->suspend_lock
TYPE_LOCK (struct mapped_device)->suspend_lock