Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/volumes.c btrfs_create_chunk() -> create_chunk()

Type Parameter Key Value
PARAM_VALUE 0 trans 4096-ptr_max
PARAM_VALUE 0 trans->fs_info 4096-ptr_max
PARAM_VALUE 0 trans->fs_info->balance_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 trans->fs_info->block_group_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->block_group_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->chunk_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->chunk_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->dev_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->dev_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->fs_devices 4096-ptr_max
PARAM_VALUE 0 trans->fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 0 trans->fs_info->quota_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->quota_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->sb->s_umount.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->sb->s_umount.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->stripe_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->stripe_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 trans->fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 trans->fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 1 ctl 7838835081339072512
PARAM_VALUE 1 ctl->dev_stripes 0-255
PARAM_VALUE 1 ctl->devs_increment 0-255
PARAM_VALUE 1 ctl->devs_min 0-255
PARAM_VALUE 1 ctl->ncopies 0-255
PARAM_VALUE 1 ctl->nparity 0-255
PARAM_VALUE 1 ctl->space_info 4096-ptr_max
PARAM_VALUE 1 ctl->sub_stripes 0-255
PARAM_VALUE 1 ctl->type 1-u64max
PARAM_VALUE 2 devices_info 16,4096-ptr_max
BUF_SIZE 0 trans (-1),1-s32max
BUF_SIZE 0 trans (-1),1-s32max
BUF_SIZE 2 devices_info 0-u64max
DATA_SOURCE 0 trans $0
DATA_SOURCE 2 devices_info r _kzalloc_noprof
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 trans->transaction->dirty_pages.inode->vfs_inode.i_bytes
NO_OVERFLOW_SIMPLE 0 trans->transaction->pinned_extents.inode->vfs_inode.i_bytes
LOCK2 &fs_info->chunk_mutex
HALF_LOCKED2 &sb->s_umount
HALF_LOCKED2 global &uuid_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

kernel/audit_tree.c tag_chunk() -> create_chunk()

Type Parameter Key Value
PARAM_VALUE 1 ctl 4096-ptr_max
PARAM_VALUE 1 ctl->list.next 4096-ptr_max
PARAM_VALUE 1 ctl->pathname 4096-ptr_max
CAPPED_DATA 1 ctl 1
DATA_SOURCE 0 trans $0
DATA_SOURCE 1 ctl $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &audit_cmd_mutex.lock
LOCK2 global &audit_tree_group->mark_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct fsnotify_group)->mark_mutex