Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/block-group.c btrfs_remove_block_group() -> btrfs_clear_data_reloc_bg()

Type Parameter Key Value
PARAM_VALUE 0 bg 4096-ptr_max
CAPPED_DATA 0 bg 1
DATA_SOURCE 0 bg r btrfs_lookup_block_group
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->reclaim_bgs_lock

fs/btrfs/zoned.c do_zone_finish() -> btrfs_clear_data_reloc_bg()

Type Parameter Key Value
PARAM_VALUE 0 bg 4096-ptr_max
PARAM_VALUE 0 bg->free_space_ctl 4096-ptr_max
PARAM_VALUE 0 bg->free_space_ctl->free_space 0
PARAM_VALUE 0 bg->fs_info->sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648
PARAM_VALUE 0 bg->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bg->space_info->groups_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 bg->space_info->groups_sem.first_waiter->type 0-1
CAPPED_DATA 0 bg 1
DATA_SOURCE 0 bg $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &bg->lock
TYPE_LOCK (struct btrfs_block_group)->lock

fs/btrfs/extent-tree.c find_free_extent() -> btrfs_clear_data_reloc_bg()

Type Parameter Key Value
PARAM_VALUE 0 bg 4096-ptr_max
PARAM_VALUE 0 bg->data_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 bg->data_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 bg->discard_list.next->next 4096-ptr_max
PARAM_VALUE 0 bg->discard_list.next->prev 4096-ptr_max
PARAM_VALUE 0 bg->discard_list.prev->next 4096-ptr_max
PARAM_VALUE 0 bg->discard_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 bg->fs_info->discard_ctl->work.timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 bg->fs_info->discard_ctl.work->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.timer.is_hard 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.timer.is_lazy 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.timer.is_queued 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.timer.is_soft 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.entry.next->next 1-u64max
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.flags 0-4294967295
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.is_hard 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.is_lazy 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.is_queued 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.is_soft 0-1
PARAM_VALUE 0 bg->fs_info->discard_ctl.work.work.lockdep_map->name 0-255
PARAM_VALUE 0 bg->fs_info->sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648
CAPPED_DATA 0 &bg->list 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 bg->delalloc_bytes
NO_OVERFLOW_SIMPLE 0 bg->reserved
LOCK2 &space_info->groups_sem
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_space_info)->groups_sem