Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/btrfs/free-space-cache.c __btrfs_add_free_space() -> try_merge_free_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | ctl->tree_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | info | 4096-ptr_max |
| PARAM_VALUE | 2 | update_stat | 1 |
| DATA_SOURCE | 1 | info | r kmem_cache_alloc_noprof |
| NOSPEC | 1 | info->offset | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | info->bytes | 0-u64max[c] |
| USER_DATA | 1 | info->offset | 1-s32max[c] |
| NO_OVERFLOW_SIMPLE | 1 | info->offset | |
| LOCK2 | 0 | &ctl->tree_lock | |
| HALF_LOCKED2 | &ctl->cache_writeout_mutex | ||
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock |
fs/btrfs/free-space-cache.c __btrfs_return_cluster_to_free_space() -> try_merge_free_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | info | 4096-ptr_max |
| PARAM_VALUE | 1 | info->bitmap | 0 |
| PARAM_VALUE | 1 | info->offset_index.rb_left | 0,4096-ptr_max |
| PARAM_VALUE | 1 | info->offset_index.rb_right | 0,4096-ptr_max |
| PARAM_VALUE | 2 | update_stat | 0 |
| CAPPED_DATA | 1 | &info->offset_index | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &cluster->lock | ||
| LOCK2 | &ctl->tree_lock | ||
| HALF_LOCKED2 | &cluster->refill_lock | ||
| TYPE_LOCK | (struct btrfs_free_cluster)->lock | ||
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock |
fs/btrfs/free-space-cache.c steal_from_bitmap() -> try_merge_free_space()
| 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->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->total_bitmaps | 0-s32max |
| PARAM_VALUE | 1 | info | 4096-ptr_max |
| PARAM_VALUE | 1 | info->bitmap | 0 |
| CAPPED_DATA | 0 | ctl->block_group | 1 |
| CAPPED_DATA | 1 | info | 1 |
| CAPPED_DATA | 1 | &info->offset_index | 1 |
| DATA_SOURCE | 0 | ctl | $0 |
| DATA_SOURCE | 1 | info | $1 |
| DATA_SOURCE | 2 | update_stat | $2 |
| NOSPEC | 1 | info->offset | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | info->offset | 1-s32max[c] |
| NO_OVERFLOW_SIMPLE | 1 | info->offset | |
| HALF_LOCKED2 | &cluster->lock | ||
| HALF_LOCKED2 | &ctl->tree_lock | ||
| HALF_LOCKED2 | 0 | &ctl->tree_lock | |
| TYPE_LOCK | (struct btrfs_free_space_ctl)->tree_lock |