Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/btrfs/volumes.c btrfs_remove_chunk() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
CAPPED_DATA 0 &info->chunk_mutex 1
DATA_SOURCE 1 flags r btrfs_system_alloc_profile
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
LOCK2 0 &info->chunk_mutex
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex
TYPE_LOCK (struct btrfs_fs_info)->reclaim_bgs_lock

fs/btrfs/volumes.c init_alloc_chunk_ctl_policy_regular() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 1 flags 1-u64max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
LOCK2 &fs_info->chunk_mutex
HALF_LOCKED2 &sb->s_umount
HALF_LOCKED2 global &uuid_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

fs/btrfs/volumes.c init_first_rw_device() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 1 flags r btrfs_metadata_alloc_profile
CAPABLE 0 21
UNITS 0 info unit_byte
LOCK2 &fs_info->chunk_mutex
LOCK2 &sb->s_umount
LOCK2 global &uuid_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex
TYPE_LOCK (struct super_block)->s_umount

fs/btrfs/volumes.c init_first_rw_device() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 1 flags r btrfs_system_alloc_profile
CAPABLE 0 21
UNITS 0 info unit_byte
LOCK2 &fs_info->chunk_mutex
LOCK2 &sb->s_umount
LOCK2 global &uuid_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex
TYPE_LOCK (struct super_block)->s_umount

fs/btrfs/space-info.c btrfs_async_reclaim_metadata_space() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
PARAM_VALUE 1 flags 4
HALF_LOCKED2 &pool->lock

fs/btrfs/space-info.c btrfs_preempt_reclaim_metadata_space() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
PARAM_VALUE 1 flags 4
HALF_LOCKED2 &pool->lock

fs/btrfs/space-info.c calc_effective_data_chunk_size() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 1 flags 1
DATA_SOURCE 0 info $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &cache->lock
HALF_LOCKED2 &space_info->lock
TYPE_LOCK (struct btrfs_space_info)->lock

fs/btrfs/block-rsv.c btrfs_init_global_block_rsv() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
PARAM_VALUE 1 flags 2
DATA_SOURCE 0 info $0

fs/btrfs/block-rsv.c btrfs_init_global_block_rsv() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
PARAM_VALUE 1 flags 4096
DATA_SOURCE 0 info $0

fs/btrfs/block-rsv.c btrfs_init_global_block_rsv() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
PARAM_VALUE 1 flags 4
DATA_SOURCE 0 info $0

fs/btrfs/block-rsv.c btrfs_init_metadata_block_rsv() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 1 flags 4
BUF_SIZE 0 info (-1)-s32max
BUF_SIZE 0 info (-1)-s32max
DATA_SOURCE 0 info $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
HALF_LOCKED2 &fs_info->cleaner_mutex

fs/btrfs/root-tree.c btrfs_subvolume_reserve_metadata() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
PARAM_VALUE 1 flags 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
LOCK2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->subvol_sem

fs/btrfs/block-group.c btrfs_force_chunk_alloc() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 1 flags $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
HALF_LOCKED2 &of->mutex

fs/btrfs/block-group.c do_chunk_alloc() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 1 flags r btrfs_system_alloc_profile
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
LOCK2 &fs_info->chunk_mutex
HALF_LOCKED2 &fs_info->ro_block_group_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

fs/btrfs/block-group.c fill_dummy_bgs() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 0 info $0

fs/btrfs/block-group.c read_one_block_group() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 0 info $0
DATA_SOURCE 1 flags r btrfs_stack_block_group_v2_flags

fs/btrfs/block-group.c reserve_chunk_space() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 1 flags 2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
LOCK2 &fs_info->chunk_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

fs/btrfs/block-group.c reserve_chunk_space() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 1 flags r btrfs_system_alloc_profile
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
LOCK2 &fs_info->chunk_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

fs/btrfs/extent-tree.c btrfs_reserve_extent() -> btrfs_find_space_info()

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
DATA_SOURCE 1 flags r get_alloc_profile_by_root
BIT_INFO 0 info->mount_opt 0x8000,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 info->nodesize
NO_OVERFLOW_SIMPLE 0 info->sectorsize
UNITS 0 info unit_byte
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock

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

Type Parameter Key Value
PARAM_VALUE 0 info 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 info unit_byte
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock