Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/relocation.c start_block_group_remapping() -> btrfs_cache_block_group()

Type Parameter Key Value
PARAM_VALUE 1 wait 1
DATA_SOURCE 0 cache $2

fs/btrfs/block-group.c btrfs_update_block_group() -> btrfs_cache_block_group()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->cached 0-1,4-u32max
PARAM_VALUE 1 wait 1
DATA_SOURCE 0 cache r btrfs_lookup_block_group
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &fs_info->reloc_mutex
HALF_LOCKED2 &href->mutex

fs/btrfs/extent-tree.c __exclude_logged_extent() -> btrfs_cache_block_group()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 1 wait 1
DATA_SOURCE 0 cache r btrfs_lookup_block_group
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/extent-tree.c btrfs_pin_extent_for_log_replay() -> btrfs_cache_block_group()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 1 wait 1
DATA_SOURCE 0 cache r btrfs_lookup_block_group
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/extent-tree.c btrfs_trim_fs() -> btrfs_cache_block_group()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->cached 0-1,4-u32max
PARAM_VALUE 0 cache->fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 cache->fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 cache->fs_info->sb->s_cop->inode_info_offs 1632,1720,2632,2648
PARAM_VALUE 0 cache->start 0-18446744073709551614
PARAM_VALUE 1 wait 1
CAPPED_DATA 0 cache->start 1
CAPABLE 0 21

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

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->cached 0-1,4-u32max
PARAM_VALUE 0 cache->data_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 cache->data_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 cache->fs_info->sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648
PARAM_VALUE 1 wait 0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 cache->delalloc_bytes
NO_OVERFLOW_SIMPLE 0 cache->reserved
LOCK2 &space_info->groups_sem
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_space_info)->groups_sem