Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/btrfs/block-group.c, line 4567
- fs/btrfs/delayed-inode.c, line 602
- fs/btrfs/props.c, line 443
- fs/btrfs/relocation.c, line 1798
- fs/btrfs/root-tree.c, line 513
- fs/btrfs/transaction.c, line 1720
Smatch caller information:
fs/btrfs/delayed-inode.c btrfs_delayed_inode_reserve_metadata() -> btrfs_block_rsv_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 1 | block_rsv | 4096-ptr_max |
| PARAM_VALUE | 3 | flush | 0 |
| BUF_SIZE | 1 | block_rsv | 120 |
| DATA_SOURCE | 2 | num_bytes | r btrfs_calc_metadata_size |
| PARAM_COMPARE | 0 | &fs_info->delayed_block_rsv | == $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| LOCK2 | &node->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &trans->transaction->cache_write_mutex | ||
| TYPE_LOCK | (struct btrfs_delayed_node)->mutex |
fs/btrfs/props.c btrfs_inode_inherit_props() -> btrfs_block_rsv_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 3 | flush | 0 |
| DATA_SOURCE | 2 | num_bytes | r btrfs_calc_insert_metadata_size |
| UNITS | 0 | fs_info | unit_byte |
fs/btrfs/root-tree.c btrfs_subvolume_reserve_metadata() -> btrfs_block_rsv_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 1 | block_rsv | 4096-ptr_max |
| PARAM_VALUE | 1 | block_rsv->failfast | 0 |
| PARAM_VALUE | 1 | block_rsv->full | 0 |
| PARAM_VALUE | 1 | block_rsv->qgroup_rsv_reserved | 0 |
| PARAM_VALUE | 1 | block_rsv->qgroup_rsv_size | 0 |
| PARAM_VALUE | 1 | block_rsv->reserved | 0 |
| PARAM_VALUE | 1 | block_rsv->size | 0 |
| PARAM_VALUE | 1 | block_rsv->space_info | 0,4096-ptr_max |
| PARAM_VALUE | 1 | block_rsv->type | 9 |
| PARAM_VALUE | 3 | flush | 5 |
| BUF_SIZE | 1 | block_rsv | (-1),120 |
| BUF_SIZE | 1 | block_rsv | (-1),120 |
| DATA_SOURCE | 1 | block_rsv | $1 |
| DATA_SOURCE | 2 | num_bytes | r btrfs_calc_insert_metadata_size |
| MEM_ZERO | 1 | block_rsv | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| LOCK2 | &fs_info->subvol_sem | ||
| TYPE_LOCK | (struct btrfs_fs_info)->subvol_sem |
fs/btrfs/relocation.c prepare_to_merge() -> btrfs_block_rsv_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->reloc_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 3 | flush | 5 |
| CAPPED_DATA | 0 | &fs_info->reloc_mutex | 1 |
| UNITS | 0 | fs_info | unit_byte |
fs/btrfs/block-group.c reserve_chunk_space() -> btrfs_block_rsv_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 1 | block_rsv | 4096-ptr_max |
| PARAM_VALUE | 3 | flush | 0 |
| CAPPED_DATA | 2 | num_bytes | 1 |
| CAPPED_DATA | 2 | num_bytes | 1 |
| DATA_SOURCE | 2 | num_bytes | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 2 | num_bytes | unit_byte |
| LOCK2 | &fs_info->chunk_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex |
fs/btrfs/transaction.c create_pending_snapshot() -> btrfs_block_rsv_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->tree_root | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->tree_root->free_objectid | 0-18446744073709551360 |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->tree_root->objectid_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | block_rsv | 4096-ptr_max |
| PARAM_VALUE | 2 | num_bytes | 1-u64max |
| PARAM_VALUE | 3 | flush | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| LOCK2 | &fs_info->reloc_mutex | ||
| HALF_LOCKED2 | &dev_replace->lock_finishing_cancel_unmount | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem | ||
| HALF_LOCKED2 | &fs_info->transaction_kthread_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reloc_mutex |