Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

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->total_bitmaps 0-s32max
PARAM_VALUE 0 ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 info 4096-ptr_max
CAPPED_DATA 0 ctl->block_group 1
CAPPED_DATA 1 info 1
DATA_SOURCE 1 info r kmem_cache_alloc_noprof
NOSPEC 1 info->offset
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 info->bytes 0-u64max[c]
USER_DATA 1 info->offset 1-s32max[c]
NO_OVERFLOW_SIMPLE 1 info->offset
LOCK2 0 &ctl->tree_lock
HALF_LOCKED2 &ctl->cache_writeout_mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

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

Type Parameter Key Value
PARAM_VALUE 0 ctl 2308521935435767808
PARAM_VALUE 0 ctl->block_group 4096-ptr_max
PARAM_VALUE 0 ctl->cache_writeout_mutex.magic 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 0,4096-ptr_max
PARAM_VALUE 0 ctl->free_space_offset.rb_node 0
PARAM_VALUE 0 ctl->total_bitmaps 0-s32max
PARAM_VALUE 0 ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->trimming_ranges.next 4096-ptr_max
PARAM_VALUE 0 ctl->trimming_ranges.prev 4096-ptr_max
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bytes 1-u64max
CAPPED_DATA 0 ctl->total_bitmaps 1
DATA_SOURCE 0 ctl $2
DATA_SOURCE 1 info r kmem_cache_alloc_noprof
PREEMPT_ADD <- disables preempt
LOCK2 &caching_ctl->mutex
LOCK2 &fs_info->commit_root_sem
LOCK2 0 &ctl->tree_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_caching_control)->mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock
TYPE_LOCK (struct btrfs_fs_info)->commit_root_sem

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

Type Parameter Key Value
PARAM_VALUE 0 ctl 2308521935435767808
PARAM_VALUE 0 ctl->block_group 4096-ptr_max
PARAM_VALUE 0 ctl->cache_writeout_mutex.magic 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 0,4096-ptr_max
PARAM_VALUE 0 ctl->free_space_offset.rb_node 0
PARAM_VALUE 0 ctl->total_bitmaps 0-s32max
PARAM_VALUE 0 ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->trimming_ranges.next 4096-ptr_max
PARAM_VALUE 0 ctl->trimming_ranges.prev 4096-ptr_max
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bitmap 1-u64max
PARAM_VALUE 1 info->bytes 1-u64max
CAPPED_DATA 0 ctl->total_bitmaps 1
DATA_SOURCE 0 ctl $2
DATA_SOURCE 1 info r kmem_cache_alloc_noprof
PREEMPT_ADD <- disables preempt
LOCK2 &caching_ctl->mutex
LOCK2 &fs_info->commit_root_sem
LOCK2 0 &ctl->tree_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_caching_control)->mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock
TYPE_LOCK (struct btrfs_fs_info)->commit_root_sem

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

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->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bitmap 1-u64max
PARAM_VALUE 1 info->bitmap_extents 0
PARAM_VALUE 1 info->bytes 0
PARAM_VALUE 1 info->list.next 4096-ptr_max
PARAM_VALUE 1 info->list.next->next 4096-ptr_max
PARAM_VALUE 1 info->list.prev 4096-ptr_max
PARAM_VALUE 1 info->list.prev->next 4096-ptr_max
PARAM_VALUE 1 info->list.prev->prev 4096-ptr_max
DATA_SOURCE 0 ctl $0
DATA_SOURCE 1 info $1
NOSPEC 1 info->offset
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 info->offset 1-s32max[c]
NO_OVERFLOW_SIMPLE 1 info->offset
LOCK2 0 &ctl->tree_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

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

Type Parameter Key Value
PARAM_VALUE 0 ctl 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->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bitmap 0
PARAM_VALUE 1 info->bytes 1-u64max
PARAM_VALUE 1 info->bytes_index.rb_right 0,4096-ptr_max
DATA_SOURCE 1 info r find_free_space
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &ctl->tree_lock
HALF_LOCKED2 &space_info->groups_sem
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

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

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_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->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bitmap 0
PARAM_VALUE 1 info->bytes 1-u64max
PARAM_VALUE 1 info->bytes_index.rb_right 0,4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ctl->tree_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

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

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_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->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bitmap 0
PARAM_VALUE 1 info->bytes_index.rb_right 0,4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ctl->tree_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

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

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 0 ctl->block_group 4096-ptr_max
PARAM_VALUE 0 ctl->cache_writeout_mutex.magic 4096-ptr_max
PARAM_VALUE 0 ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->trimming_ranges.next 4096-ptr_max
PARAM_VALUE 0 ctl->trimming_ranges.prev 4096-ptr_max
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bytes 131072,1048576-10485760
PARAM_VALUE 1 info->max_extent_size 0
CAPPED_DATA 1 info->bytes 1
DATA_SOURCE 1 info r kmem_cache_alloc_noprof
PREEMPT_ADD <- disables preempt
LOCK2 0 &ctl->tree_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

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

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->cache_writeout_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctl->cache_writeout_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctl->cache_writeout_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->cache_writeout_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctl->cache_writeout_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->cache_writeout_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 ctl->cache_writeout_mutex.wait_lock.owner_cpu u32max
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->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 info 4096-ptr_max
PARAM_VALUE 1 info->bitmap 0
PARAM_VALUE 1 info->bytes_index.rb_right 0,4096-ptr_max
PARAM_VALUE 1 info->trim_state 0,2-u32max
CAPPED_DATA 0 &ctl->cache_writeout_mutex 1
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 0 &ctl->cache_writeout_mutex
LOCK2 0 &ctl->tree_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_free_space_ctl)->cache_writeout_mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock