Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/btrfs/volumes.c btrfs_chunk_alloc_add_chunk_item() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | num_stripes | unit_array_size |
| LOCK2 | &fs_info->chunk_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex |
fs/btrfs/volumes.c btrfs_del_sys_chunk() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | num_stripes | 0-u16max |
| DATA_SOURCE | 0 | num_stripes | r btrfs_stack_chunk_num_stripes |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &fs_info->chunk_mutex | ||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |
fs/btrfs/volumes.c btrfs_read_sys_array() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | num_stripes | 0-u16max |
fs/btrfs/disk-io.c validate_sys_chunk_array() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | num_stripes | r btrfs_stack_chunk_num_stripes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &fs_info->tree_log_mutex |
fs/btrfs/disk-io.c validate_sys_chunk_array() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | num_stripes | r btrfs_stack_chunk_num_stripes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &fs_info->tree_log_mutex |
fs/btrfs/tree-checker.c check_leaf_chunk_item() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | num_stripes | 1-u16max |
| DATA_SOURCE | 0 | num_stripes | r btrfs_chunk_num_stripes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/tree-checker.c check_leaf_chunk_item() -> btrfs_chunk_item_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | num_stripes | 1-u16max |
| DATA_SOURCE | 0 | num_stripes | r btrfs_chunk_num_stripes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |