Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->data_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->data_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 block_group->fs_info 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648
PARAM_VALUE 3 trim_state 0-1
BUF_SIZE 0 block_group (-1),992
BUF_SIZE 0 block_group (-1),992
BUF_SIZE 0 block_group->fs_info (-1),11312
CAPPED_DATA 0 block_group 1
DATA_SOURCE 0 block_group $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 bytes $2
FUZZY_MAX 3 trim_state 1
BIT_INFO 0 block_group->flags 0x0,0xfffffffffffff7ff
NOSPEC 2 bytes
NOSPEC 2 bytes
HARD_MAX 3 trim_state 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 bytes 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 block_group->fs_info->nodesize
NO_OVERFLOW_SIMPLE 0 block_group->fs_info->sectorsize
NO_OVERFLOW_SIMPLE 0 block_group->full_stripe_len
NO_OVERFLOW_SIMPLE 1 offset
NO_OVERFLOW_SIMPLE 2 bytes
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte
HALF_LOCKED2 &caching_ctl->mutex
HALF_LOCKED2 &fs_info->commit_root_sem
HALF_LOCKED2 &fs_info->unused_bg_unpin_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &space_info->groups_sem
HALF_LOCKED2 &tmp_ctl.tree_lock

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 1 offset 0-18446744073709551614
PARAM_VALUE 2 bytes 1-u64max
PARAM_VALUE 3 trim_state 0-1
CAPPED_DATA 0 block_group 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 2 bytes 1
CAPPED_DATA 2 bytes 1
DATA_SOURCE 0 block_group $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 bytes $2
FUZZY_MAX 3 trim_state 1
HARD_MAX 3 trim_state 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte
HALF_LOCKED2 &caching_ctl->mutex
HALF_LOCKED2 &fs_info->chunk_mutex
HALF_LOCKED2 &fs_info->commit_root_sem
HALF_LOCKED2 &pool->lock

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->data_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->data_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 block_group->free_space_ctl 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->free_space_bytes.rb_root.rb_node 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->free_space_offset.rb_node 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 bytes 1-u64max
BUF_SIZE 0 block_group (-1),992
BUF_SIZE 0 block_group (-1),992
CAPPED_DATA 0 block_group 1
DATA_SOURCE 0 block_group $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 block_group->fs_info->nodesize
NO_OVERFLOW_SIMPLE 0 block_group->fs_info->sectorsize
NO_OVERFLOW_SIMPLE 0 block_group->full_stripe_len
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte
HALF_LOCKED2 &space_info->groups_sem

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->block_group 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->block_group->fs_info 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->free_space_bytes.rb_leftmost 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->free_space_bytes.rb_root.rb_node 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->free_space_offset.rb_node 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->tree_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 block_group->space_info->groups_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->space_info->groups_sem.first_waiter->type 0-1
BUF_SIZE 0 block_group (-1),992
BUF_SIZE 0 block_group (-1),992
BUF_SIZE 0 block_group->fs_info (-1),11312
CAPPED_DATA 0 block_group 1
DATA_SOURCE 0 block_group $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 block_group->fs_info->nodesize
NO_OVERFLOW_SIMPLE 0 block_group->fs_info->sectorsize
NO_OVERFLOW_SIMPLE 0 block_group->full_stripe_len
NO_OVERFLOW_SIMPLE 0 block_group->pinned
NO_OVERFLOW_SIMPLE 0 block_group->reserved
NO_OVERFLOW_SIMPLE 0 block_group->space_info->bytes_may_use
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.dep_map->name 0-255
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 block_group->fs_info 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.counters 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.owner (-1)
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.owner_cpu u32max
PARAM_VALUE 0 block_group->fs_info->dev_replace.replace_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.replace_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 block_group->fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 block_group->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 block_group->space_info 4096-ptr_max
PARAM_VALUE 0 block_group->space_info->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 offset 0-18446744073709551613
PARAM_VALUE 2 bytes 1-u64max
CAPPED_DATA 0 block_group 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 2 bytes 1
DATA_SOURCE 0 block_group $0
DATA_SOURCE 1 offset $4
DATA_SOURCE 3 trim_state $6
NOSPEC 0 block_group->discard_cursor
NOSPEC 1 offset
NOCHECK_CALL
USER_DATA 0 block_group->discard_cursor 1-s32max[c]
USER_DATA 2 bytes 1-u64max[c]
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte
LOCK2 &ctl->cache_writeout_mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->cache_writeout_mutex

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.dep_map->name 0-255
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.counters 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.owner (-1)
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.owner_cpu u32max
PARAM_VALUE 0 block_group->fs_info->dev_replace.replace_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.replace_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 block_group->fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 block_group->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 block_group->space_info->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 offset 0-18446744073709551614
PARAM_VALUE 2 bytes 1-u64max
CAPPED_DATA 0 block_group 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 1 offset 1
DATA_SOURCE 0 block_group $0
DATA_SOURCE 3 trim_state $6
NOSPEC 0 block_group->discard_cursor
NOCHECK_CALL
USER_DATA 0 block_group->discard_cursor 1-s32max[c]
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte
LOCK2 &ctl->cache_writeout_mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->cache_writeout_mutex

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

Type Parameter Key Value
PARAM_VALUE 0 block_group 4096-ptr_max
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.dep_map->name 0-255
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 block_group->free_space_ctl->cache_writeout_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.counters 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.owner (-1)
PARAM_VALUE 0 block_group->fs_info->dev_replace.bio_counter.lock.owner_cpu u32max
PARAM_VALUE 0 block_group->fs_info->dev_replace.replace_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->dev_replace.replace_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 block_group->fs_info->discard_ctl.work.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 block_group->fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 0 block_group->fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 block_group->fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 block_group->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 block_group->space_info->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 offset 0-18446744073709551614
PARAM_VALUE 3 trim_state 0-1
CAPPED_DATA 0 block_group 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 1 offset 1
DATA_SOURCE 0 block_group $0
DATA_SOURCE 1 offset $2
DATA_SOURCE 2 bytes $3
FUZZY_MAX 3 trim_state 1
NOSPEC 0 block_group->discard_cursor
NOSPEC 1 offset
NOSPEC 1 offset
NOSPEC 2 bytes
HARD_MAX 3 trim_state 1
NOCHECK_CALL
USER_DATA 0 block_group->discard_cursor 1-s32max[c]
USER_DATA 1 offset 1-s32max[c]
UNITS 1 offset unit_byte
UNITS 2 bytes unit_byte
LOCK2 &ctl->cache_writeout_mutex
TYPE_LOCK (struct btrfs_free_space_ctl)->cache_writeout_mutex