Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/volumes.c create_chunk() -> btrfs_add_chunk_map()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices 4096-ptr_max
PARAM_VALUE 1 map 4096-ptr_max
PARAM_VALUE 1 map->on_disk_type 1-u64max
PARAM_VALUE 1 map->refs.refs.counter 1
PARAM_VALUE 1 map->sub_stripes 0-255
BUF_SIZE 1 map s32min-s32max
DATA_SOURCE 1 map r btrfs_alloc_chunk_map
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
LOCK2 &fs_info->chunk_mutex
HALF_LOCKED2 &sb->s_umount
HALF_LOCKED2 global &uuid_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

fs/btrfs/volumes.c read_one_chunk() -> btrfs_add_chunk_map()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 1 map 4096-ptr_max
PARAM_VALUE 1 map->num_stripes 0-u16max
PARAM_VALUE 1 map->refs.refs.counter 1
PARAM_VALUE 1 map->sub_stripes 1-2
PARAM_VALUE 1 map->verified_stripes 0
BUF_SIZE 1 map 80-2097200
BUF_SIZE 1 map 80-2097200
DATA_SOURCE 1 map r btrfs_alloc_chunk_map
NO_OVERFLOW_SIMPLE 1 map->start
UNITS 0 fs_info unit_byte
HALF_LOCKED2 global &uuid_mutex

fs/btrfs/tests/extent-map-tests.c test_rmap_block() -> btrfs_add_chunk_map()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_ebs.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_ebs.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_ebs.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_roots.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_roots.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_roots.prev->next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->allocated_roots.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->async_submit_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->async_submit_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->async_submit_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->balance_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->balance_wait_q.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->balance_wait_q.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->balance_wait_q.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->caching_block_groups.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->caching_block_groups.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->caching_block_groups.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->chunk_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->cleaner_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->cleanup_work_sem.dep_map->name 0-255
PARAM_VALUE 0 fs_info->commit_root_sem.dep_map->name 0-255
PARAM_VALUE 0 fs_info->data_alloc_cluster.block_group_list.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->data_alloc_cluster.block_group_list.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->data_alloc_cluster.block_group_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->dead_roots.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->dead_roots.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->dead_roots.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->delalloc_root_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->delalloc_roots.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->delalloc_roots.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->delalloc_roots.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->delayed_iputs.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->delayed_iputs.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->delayed_iputs.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->delayed_iputs_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->delayed_iputs_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->delayed_iputs_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.lock_finishing_cancel_unmount.dep_map->name 0-255
PARAM_VALUE 0 fs_info->dev_replace.replace_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.replace_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.replace_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->dirty_cowonly_roots.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->dirty_cowonly_roots.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->dirty_cowonly_roots.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices->devices.next 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices->devices.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices->devices.next->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices->devices.prev 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices->devices.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_devices->devices.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->fs_roots_radix_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->fully_remapped_bgs.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->fully_remapped_bgs.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->fully_remapped_bgs.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->mapping_tree_lock.owner (-1)
PARAM_VALUE 0 fs_info->mapping_tree_lock.owner_cpu u32max
PARAM_VALUE 0 fs_info->meta_alloc_cluster.block_group_list.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->meta_alloc_cluster.block_group_list.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->meta_alloc_cluster.block_group_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->ordered_operations_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->ordered_roots.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->ordered_roots.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->ordered_roots.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->qgroup_ioctl_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->qgroup_rescan_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->reclaim_bgs.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->reclaim_bgs.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->reclaim_bgs.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->reclaim_bgs_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->reloc_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->remap_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->ro_block_group_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->scrub_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->scrub_pause_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->scrub_pause_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->scrub_pause_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->space_info.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->space_info.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->space_info.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->stripesize 4096
PARAM_VALUE 0 fs_info->subvol_sem.dep_map->name 0-255
PARAM_VALUE 0 fs_info->trans_list.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->trans_list.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->trans_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_blocked_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_blocked_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_blocked_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_kthread_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->transaction_throttle.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_throttle.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_throttle.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->transaction_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->tree_log_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->tree_mod_seq_list.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->tree_mod_seq_list.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->tree_mod_seq_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->unused_bg_unpin_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->unused_bgs.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->unused_bgs.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->unused_bgs.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->zone_active_bgs.next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->zone_active_bgs.prev->next 4096-ptr_max
PARAM_VALUE 0 fs_info->zone_active_bgs.prev->prev 4096-ptr_max
PARAM_VALUE 0 fs_info->zoned_data_reloc_io_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->zoned_meta_io_lock.dep_map->name 0-255
PARAM_VALUE 1 map 4096-ptr_max
PARAM_VALUE 1 map->num_stripes 1-2
PARAM_VALUE 1 map->refs.refs.counter 1
PARAM_VALUE 1 map->start 4294967296
PARAM_VALUE 1 map->stripe_size 268435456
PARAM_VALUE 1 map->stripes 4096-ptr_max
PARAM_VALUE 1 map->type 0,16
BUF_SIZE 0 fs_info 11312
BUF_SIZE 1 map s32min-s32max
CAPPED_DATA 1 map->num_stripes 1
DATA_SOURCE 0 fs_info $0 [m]
DATA_SOURCE 1 map r btrfs_alloc_chunk_map
NO_OVERFLOW_SIMPLE 0 fs_info->nodesize
NO_OVERFLOW_SIMPLE 0 fs_info->sectorsize