Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/btrfs/block-group.c btrfs_add_reserved_bytes() -> btrfs_block_group_should_use_size_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bg | 4096-ptr_max |
| DATA_SOURCE | 0 | bg | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &space_info->groups_sem | ||
| LOCK2 | &space_info->lock | ||
| LOCK2 | 0 | &bg->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 btrfs_maybe_reset_size_class() -> btrfs_block_group_should_use_size_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bg | 4096-ptr_max |
| CAPPED_DATA | 0 | bg | 1 |
| DATA_SOURCE | 0 | bg | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bg->reserved | |
| LOCK2 | &space_info->lock | ||
| LOCK2 | 0 | &bg->lock | |
| TYPE_LOCK | (struct btrfs_block_group)->lock | ||
| TYPE_LOCK | (struct btrfs_space_info)->lock |
fs/btrfs/block-group.c load_block_group_size_class() -> btrfs_block_group_should_use_size_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bg | 4096-ptr_max |
| 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/sysfs.c btrfs_size_classes_show() -> btrfs_block_group_should_use_size_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bg | 4096-ptr_max |
| CAPPED_DATA | 0 | &bg->list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | &sinfo->groups_sem | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_space_info)->groups_sem | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/btrfs/extent-tree.c find_free_extent_check_size_class() -> btrfs_block_group_should_use_size_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bg | 4096-ptr_max |
| CAPPED_DATA | 0 | bg | 1 |
| DATA_SOURCE | 0 | bg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &space_info->groups_sem | ||
| HALF_LOCKED2 | &fs_info->remap_mutex | ||
| HALF_LOCKED2 | &last_ptr->refill_lock | ||
| TYPE_LOCK | (struct btrfs_space_info)->groups_sem |