Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/btrfs/free-space-cache.c __load_free_space_cache() -> recalculate_thresholds()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctl | 2308521935435767808 |
| PARAM_VALUE | 0 | ctl->block_group | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->cache_writeout_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->free_space_bytes.rb_leftmost | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->free_space_bytes.rb_root.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->free_space_offset.rb_node | 0 |
| PARAM_VALUE | 0 | ctl->total_bitmaps | 1-s32max |
| PARAM_VALUE | 0 | ctl->tree_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ctl->trimming_ranges.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->trimming_ranges.prev | 4096-ptr_max |
| DATA_SOURCE | 0 | ctl | $2 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &caching_ctl->mutex | ||
| LOCK2 | &fs_info->commit_root_sem | ||
| LOCK2 | 0 | &ctl->tree_lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_caching_control)->mutex | ||
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->commit_root_sem |
fs/btrfs/free-space-cache.c add_new_bitmap() -> recalculate_thresholds()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->block_group | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->block_group->fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->tree_lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | ctl | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &ctl->tree_lock | |
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock |
fs/btrfs/free-space-cache.c btrfs_alloc_from_cluster() -> recalculate_thresholds()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->tree_lock.rlock.dep_map->name | 0-255 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &cluster->lock | ||
| LOCK2 | &cluster->refill_lock | ||
| LOCK2 | &space_info->groups_sem | ||
| LOCK2 | 0 | &ctl->tree_lock | |
| HALF_LOCKED2 | &cluster->block_group->data_rwsem | ||
| HALF_LOCKED2 | &fs_info->remap_mutex | ||
| HALF_LOCKED2 | &root->objectid_mutex | ||
| TYPE_LOCK | (struct btrfs_free_cluster)->lock | ||
| TYPE_LOCK | (struct btrfs_free_cluster)->refill_lock | ||
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock | ||
| TYPE_LOCK | (struct btrfs_space_info)->groups_sem |
fs/btrfs/free-space-cache.c free_bitmap() -> recalculate_thresholds()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->free_space_bytes.rb_leftmost | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ctl->free_space_bytes.rb_root.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->free_space_offset.rb_node | 4096-ptr_max |
| DATA_SOURCE | 0 | ctl | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &caching_ctl->mutex | ||
| HALF_LOCKED2 | &fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tmp_ctl.tree_lock | ||
| HALF_LOCKED2 | 0 | &ctl->cache_writeout_mutex | |
| HALF_LOCKED2 | 0 | &ctl->tree_lock | |
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock |