Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/block-group.c btrfs_add_reserved_bytes() -> btrfs_calc_block_group_size_class()

Type Parameter Key Value
DATA_SOURCE 0 size $2
NOSPEC 0 size
NOSPEC 0 size
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 size 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 size
UNITS 0 size unit_byte
LOCK2 &cache->lock
LOCK2 &space_info->groups_sem
LOCK2 &space_info->lock
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_block_group)->lock
TYPE_LOCK (struct btrfs_space_info)->groups_sem
TYPE_LOCK (struct btrfs_space_info)->lock

fs/btrfs/block-group.c load_block_group_size_class() -> btrfs_calc_block_group_size_class()

Type Parameter Key Value
CAPPED_DATA 0 size 1
CAPPED_DATA 0 size 1
UNITS 0 size unit_byte
LOCK2 &caching_ctl->mutex
LOCK2 &fs_info->commit_root_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_caching_control)->mutex
TYPE_LOCK (struct btrfs_fs_info)->commit_root_sem

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

Type Parameter Key Value
NOSPEC 0 size
NOSPEC 0 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 size 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 size
UNITS 0 size unit_byte
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock