Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/zoned.c btrfs_reset_unused_block_groups() -> btrfs_return_free_space()

Type Parameter Key Value
PARAM_VALUE 0 space_info 4096-ptr_max
PARAM_VALUE 0 space_info->flags 0-4103
PARAM_VALUE 0 space_info->fs_info 4096-ptr_max
PARAM_VALUE 0 space_info->fs_info->dev_replace.rwsem.first_waiter->handoff_set 1
PARAM_VALUE 0 space_info->fs_info->dev_replace.rwsem.first_waiter->type 0-1
PARAM_VALUE 0 space_info->fs_info->dev_replace.rwsem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 space_info->fs_info->dev_replace.rwsem.wait_lock.owner (-1)
PARAM_VALUE 0 space_info->fs_info->dev_replace.rwsem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 space_info->fs_info->unused_bgs_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 space_info->fs_info->zone_size 1-u64max
PARAM_VALUE 0 space_info->lock.rlock.dep_map->name 0-255
CAPPED_DATA 0 space_info 1
CAPPED_DATA 0 space_info->flags 1
CAPPED_DATA 1 len 1
CAPPED_DATA 1 len 1
DATA_SOURCE 0 space_info $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 space_info->bytes_may_use
UNITS 1 len unit_byte
LOCK2 0 &space_info->lock
TYPE_LOCK (struct btrfs_space_info)->lock

fs/btrfs/extent-tree.c unpin_extent_range() -> btrfs_return_free_space()

Type Parameter Key Value
PARAM_VALUE 0 space_info 4096-ptr_max
PARAM_VALUE 0 space_info->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 space_info->max_extent_size 0
CAPPED_DATA 1 len 1
CAPPED_DATA 1 len 1
PREEMPT_ADD <- disables preempt
RX_PATH
NOCHECK_CALL
UNITS 1 len unit_byte
LOCK2 &fs_info->unused_bg_unpin_mutex
LOCK2 0 &space_info->lock
TYPE_LOCK (struct btrfs_fs_info)->unused_bg_unpin_mutex
TYPE_LOCK (struct btrfs_space_info)->lock