Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/btrfs/block-group.c
- fs/btrfs/extent-tree.c, line 4387
- fs/btrfs/space-info.c, line 908
- fs/btrfs/transaction.c, line 782
- fs/btrfs/zoned.c, line 2867
- include/trace/events/btrfs.h, line 1945
Smatch caller information:
fs/btrfs/space-info.c flush_space() -> btrfs_chunk_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | trans | 0-ptr_max |
| PARAM_VALUE | 1 | space_info | 4096-ptr_max |
| PARAM_VALUE | 1 | space_info->fs_info | 4096-ptr_max |
| PARAM_VALUE | 1 | space_info->fs_info->balance_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | space_info->fs_info->fs_devices | 4096-ptr_max |
| PARAM_VALUE | 1 | space_info->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 3 | force | 0,2 |
| CAPPED_DATA | 1 | space_info | 1 |
| DATA_SOURCE | 0 | trans | r btrfs_join_transaction |
| DATA_SOURCE | 1 | space_info | $0 |
| FUZZY_MAX | 3 | force | 2 |
| BIT_INFO | 3 | force | 0x0,0x2 |
| HARD_MAX | 3 | force | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | space_info->bytes_may_use |
fs/btrfs/block-group.c btrfs_force_chunk_alloc() -> btrfs_chunk_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | trans | 4096-ptr_max |
| PARAM_VALUE | 0 | trans->fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | trans->fs_info->balance_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | trans->fs_info->fs_devices | 4096-ptr_max |
| PARAM_VALUE | 1 | space_info | 4096-ptr_max |
| PARAM_VALUE | 3 | force | 2 |
| BUF_SIZE | 0 | trans | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | trans | (-1),4,24,64,168-s32max |
| DATA_SOURCE | 0 | trans | $0 |
| DATA_SOURCE | 1 | space_info | r btrfs_find_space_info |
| DATA_SOURCE | 2 | flags | r btrfs_get_alloc_profile |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| HALF_LOCKED2 | &of->mutex |
fs/btrfs/block-group.c btrfs_inc_block_group_ro() -> btrfs_chunk_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | trans | 4096-ptr_max |
| PARAM_VALUE | 0 | trans->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->tree_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->tree_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | trans->transaction | 4096-ptr_max |
| PARAM_VALUE | 3 | force | 2 |
| DATA_SOURCE | 0 | trans | r btrfs_join_transaction |
| DATA_SOURCE | 2 | flags | r btrfs_get_alloc_profile |
| RX_PATH | |||
| LOCK2 | &fs_info->ro_block_group_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->ro_block_group_mutex |
fs/btrfs/block-group.c btrfs_inc_block_group_ro() -> btrfs_chunk_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | trans | 4096-ptr_max |
| PARAM_VALUE | 0 | trans->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->tree_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->tree_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | space_info | 4096-ptr_max |
| PARAM_VALUE | 3 | force | 2 |
| DATA_SOURCE | 0 | trans | r btrfs_join_transaction |
| DATA_SOURCE | 2 | flags | r btrfs_get_alloc_profile |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &fs_info->ro_block_group_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->ro_block_group_mutex |
fs/btrfs/zoned.c btrfs_zoned_reserve_data_reloc_bg() -> btrfs_chunk_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | trans | 0-ptr_max |
| PARAM_VALUE | 0 | trans->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->tree_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | trans->fs_info->tree_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | space_info | 4096-ptr_max |
| PARAM_VALUE | 1 | space_info->block_groups | 4096-ptr_max |
| PARAM_VALUE | 3 | force | 2 |
| DATA_SOURCE | 0 | trans | r btrfs_join_transaction |
| DATA_SOURCE | 2 | flags | r btrfs_get_alloc_profile |
fs/btrfs/extent-tree.c find_free_extent_update_loop() -> btrfs_chunk_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | trans | 0-ptr_max |
| PARAM_VALUE | 3 | force | 3 |
| BUF_SIZE | 0 | trans | (-1),1-s32max |
| BUF_SIZE | 0 | trans | (-1),1-s32max |
| DATA_SOURCE | 1 | space_info | $3 |