Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/btrfs/delayed-inode.c btrfs_delayed_inode_reserve_metadata() -> btrfs_qgroup_reserve_meta_prealloc()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 0 root->root_key.objectid 0-18446744073709551606,18446744073709551608-u64max
PARAM_VALUE 2 enforce 1
PARAM_VALUE 3 noflush 1
DATA_SOURCE 0 root $1
DATA_SOURCE 1 num_bytes r btrfs_calc_metadata_size
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &node->mutex
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &trans->transaction->cache_write_mutex
TYPE_LOCK (struct btrfs_delayed_node)->mutex

fs/btrfs/root-tree.c btrfs_subvolume_reserve_metadata() -> btrfs_qgroup_reserve_meta_prealloc()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 0 root->fs_info->subvol_sem.first_waiter->type 0-1
PARAM_VALUE 2 enforce 1
PARAM_VALUE 3 noflush 0
DATA_SOURCE 0 root $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->subvol_sem

fs/btrfs/delalloc-space.c btrfs_delalloc_reserve_metadata() -> btrfs_qgroup_reserve_meta_prealloc()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 2 enforce 1
DATA_SOURCE 3 noflush $3
BIT_INFO 3 noflush 0x0,0x0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 noflush 0-1[c]

fs/btrfs/transaction.c start_transaction() -> btrfs_qgroup_reserve_meta_prealloc()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 0 root->fs_info->block_group_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->block_group_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 root->fs_info->chunk_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->chunk_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->dev_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->dev_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->fs_error 0
PARAM_VALUE 0 root->fs_info->log_root_tree->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->log_root_tree->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->quota_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->quota_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->sb->s_cop->empty_dir 0,86,4096-ptr_max
PARAM_VALUE 0 root->fs_info->sb->s_cop->get_context 0,706,4096-ptr_max
PARAM_VALUE 0 root->fs_info->sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648,2704,2712
PARAM_VALUE 0 root->fs_info->sb->s_cop->set_context 0,67,4096-ptr_max
PARAM_VALUE 0 root->fs_info->stripe_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->stripe_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->subvol_sem.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->uuid_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->uuid_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->log_root->fs_info->log_root_tree->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->log_root->fs_info->log_root_tree->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->reloc_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->reloc_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 root->reloc_root->fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->reloc_root->fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->reloc_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->reloc_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 3 noflush 0
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
DATA_SOURCE 0 root $0
DATA_SOURCE 2 enforce $4
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 root->dirty_log_pages.inode->disk_i_size
NO_OVERFLOW_SIMPLE 0 root->dirty_log_pages.inode->vfs_inode.i_bytes
NO_OVERFLOW_SIMPLE 0 root->dirty_log_pages.inode->vfs_inode.i_size