Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

fs/btrfs/free-space-cache.c __btrfs_return_cluster_to_free_space() -> tree_insert_offset()

Type Parameter Key Value
PARAM_VALUE 1 cluster 0
PARAM_VALUE 2 new_entry 4096-ptr_max
PARAM_VALUE 2 new_entry->offset_index.rb_left 0,4096-ptr_max
PARAM_VALUE 2 new_entry->offset_index.rb_right 0,4096-ptr_max
CAPPED_DATA 2 &new_entry->offset_index 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cluster->lock
LOCK2 &ctl->tree_lock
HALF_LOCKED2 &cluster->refill_lock
TYPE_LOCK (struct btrfs_free_cluster)->lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

fs/btrfs/free-space-cache.c btrfs_bitmap_cluster() -> tree_insert_offset()

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 0 ctl->block_group 4096-ptr_max
PARAM_VALUE 0 ctl->free_space_bytes.rb_leftmost 0,4096-ptr_max
PARAM_VALUE 0 ctl->free_space_bytes.rb_root.rb_node 4096-ptr_max
PARAM_VALUE 0 ctl->free_space_offset.rb_node 4096-ptr_max
PARAM_VALUE 0 ctl->total_bitmaps s32min-(-1),1-s32max
PARAM_VALUE 1 cluster 4096-ptr_max
PARAM_VALUE 1 cluster->block_group 0
PARAM_VALUE 1 cluster->block_group->data_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 cluster->block_group_list.next->prev 4096-ptr_max
PARAM_VALUE 1 cluster->block_group_list.prev->next 4096-ptr_max
PARAM_VALUE 1 cluster->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 cluster->refill_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 cluster->root.rb_node 0,4096-ptr_max
PARAM_VALUE 2 new_entry 4096-ptr_max
PARAM_VALUE 2 new_entry->bytes_index.rb_left 0,4096-ptr_max
PARAM_VALUE 2 new_entry->bytes_index.rb_right 0,4096-ptr_max
PARAM_VALUE 2 new_entry->offset_index.rb_left 0,4096-ptr_max
PARAM_VALUE 2 new_entry->offset_index.rb_right 0,4096-ptr_max
CAPPED_DATA 2 new_entry->offset 1
CAPPED_DATA 2 &new_entry->bytes_index 1
CAPPED_DATA 2 &new_entry->offset_index 1
DATA_SOURCE 1 cluster $2
DATA_SOURCE 2 new_entry $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ctl->tree_lock
LOCK2 &space_info->groups_sem
LOCK2 1 &cluster->lock
LOCK2 1 &cluster->refill_lock
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &root->objectid_mutex
HALF_LOCKED2 1 &cluster->block_group->data_rwsem
TYPE_LOCK (struct btrfs_free_cluster)->lock
TYPE_LOCK (struct btrfs_free_cluster)->refill_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock
TYPE_LOCK (struct btrfs_space_info)->groups_sem

fs/btrfs/free-space-cache.c link_free_space() -> tree_insert_offset()

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 0 ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 cluster 0
PARAM_VALUE 2 new_entry 4096-ptr_max
CAPPED_DATA 2 new_entry 1
DATA_SOURCE 0 ctl $0
DATA_SOURCE 2 new_entry $1
NOSPEC 2 new_entry->offset
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 new_entry->bytes 0-u64max[c]
USER_DATA 2 new_entry->offset 1-s32max[c]
NO_OVERFLOW_SIMPLE 2 new_entry->offset
LOCK2 0 &ctl->tree_lock
HALF_LOCKED2 &caching_ctl->mutex
HALF_LOCKED2 &fs_info->commit_root_sem
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 0 &ctl->cache_writeout_mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

fs/btrfs/free-space-cache.c setup_cluster_no_bitmap() -> tree_insert_offset()

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 0 ctl->block_group 4096-ptr_max
PARAM_VALUE 0 ctl->block_group->fs_info 4096-ptr_max
PARAM_VALUE 0 ctl->free_space_bytes.rb_root.rb_node 4096-ptr_max
PARAM_VALUE 0 ctl->free_space_offset.rb_node 4096-ptr_max
PARAM_VALUE 1 cluster 4096-ptr_max
PARAM_VALUE 1 cluster->block_group 0
PARAM_VALUE 1 cluster->block_group->data_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 cluster->block_group_list.next->prev 4096-ptr_max
PARAM_VALUE 1 cluster->block_group_list.prev->next 4096-ptr_max
PARAM_VALUE 1 cluster->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 cluster->refill_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 cluster->root.rb_node 0,4096-ptr_max
PARAM_VALUE 2 new_entry 4096-ptr_max
PARAM_VALUE 2 new_entry->bitmap 0
PARAM_VALUE 2 new_entry->offset_index.rb_right 0,4096-ptr_max
CAPPED_DATA 2 &new_entry->bytes_index 1
CAPPED_DATA 2 &new_entry->offset_index 1
DATA_SOURCE 1 cluster $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ctl->tree_lock
LOCK2 &space_info->groups_sem
LOCK2 1 &cluster->lock
LOCK2 1 &cluster->refill_lock
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &root->objectid_mutex
HALF_LOCKED2 1 &cluster->block_group->data_rwsem
TYPE_LOCK (struct btrfs_free_cluster)->lock
TYPE_LOCK (struct btrfs_free_cluster)->refill_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock
TYPE_LOCK (struct btrfs_space_info)->groups_sem