Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

fs/btrfs/tree-log.c copy_items() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info->block_group_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->chunk_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->chunk_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->dev_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->dev_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->quota_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->quota_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->remap_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->remap_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->stripe_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->stripe_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->uuid_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->uuid_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 1 bytenr 1-u64max
DATA_SOURCE 1 bytenr r btrfs_file_extent_disk_bytenr
UNITS 0 fs_info unit_byte

fs/btrfs/tree-log.c log_extent_csums() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info->block_group_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->chunk_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->chunk_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->dev_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->dev_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->quota_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->quota_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->remap_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->remap_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->stripe_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->stripe_root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->uuid_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->uuid_root->fs_info->commit_root_sem.first_waiter->type 0-1
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte

fs/btrfs/tree-log.c replay_one_extent() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->block_group_cache_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->global_root_lock.dep_map->name 0-255
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte

fs/btrfs/inode.c add_pending_csums() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->type 0-1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte
HALF_LOCKED2 &pool->lock

fs/btrfs/inode.c can_nocow_file_extent() -> btrfs_csum_root()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte

fs/btrfs/scrub.c scrub_find_fill_first_stripe() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->block_group_cache_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->global_root_lock.dep_map->name 0-255
PARAM_VALUE 1 bytenr 0-18446744073709551614
CAPPED_DATA 1 bytenr 1
CAPPED_DATA 1 bytenr 1
PREEMPT_ADD
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte

fs/btrfs/file-item.c search_csum_tree() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 1 bytenr 0-4294967294
DATA_SOURCE 0 fs_info $0
DATA_SOURCE 1 bytenr $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte
HALF_LOCKED2 &fs_info->remap_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 0 &fs_info->commit_root_sem

fs/btrfs/relocation.c btrfs_reloc_clone_csums() -> btrfs_csum_root()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte

fs/btrfs/disk-io.c backup_super_roots() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->block_group_cache_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->chunk_root 4096-ptr_max
PARAM_VALUE 0 fs_info->chunk_root->node 4096-ptr_max
PARAM_VALUE 0 fs_info->global_root_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->super_for_commit 4096-ptr_max
PARAM_VALUE 0 fs_info->tree_root 4096-ptr_max
PARAM_VALUE 0 fs_info->tree_root->node 4096-ptr_max
PARAM_VALUE 1 bytenr 0
DATA_SOURCE 0 fs_info $0
RX_PATH
UNITS 0 fs_info unit_byte
LOCK2 &fs_info->tree_log_mutex
TYPE_LOCK (struct btrfs_fs_info)->tree_log_mutex

fs/btrfs/ioctl.c copy_csums_to_user() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
DATA_SOURCE 0 fs_info $0
DATA_SOURCE 1 bytenr $1
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte
LOCK2 &vfs_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/btrfs/extent-tree.c cleanup_ref_head() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
CAPPED_DATA 1 bytenr 1
CAPPED_DATA 1 bytenr 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte
HALF_LOCKED2 &fs_info->reloc_mutex

fs/btrfs/extent-tree.c do_free_extent_accounting() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info->block_group_cache_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->block_group_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->block_group_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->chunk_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->chunk_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->dev_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->dev_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->global_root_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->quota_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->quota_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->remap_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->remap_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->sb->s_umount.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->sb->s_umount.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->stripe_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->stripe_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->uuid_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->uuid_root->node->lock.first_waiter->type 0-1
DATA_SOURCE 1 bytenr $1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 fs_info->chunk_root->dirty_log_pages.inode->disk_i_size
NO_OVERFLOW_SIMPLE 0 fs_info->chunk_root->dirty_log_pages.inode->vfs_inode.i_size
NO_OVERFLOW_SIMPLE 0 fs_info->tree_root->dirty_log_pages.inode->disk_i_size
NO_OVERFLOW_SIMPLE 0 fs_info->tree_root->dirty_log_pages.inode->vfs_inode.i_size
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &fs_info->reloc_mutex
HALF_LOCKED2 &href->mutex

fs/btrfs/raid56.c fill_data_csums() -> btrfs_csum_root()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
UNITS 0 fs_info unit_byte
UNITS 1 bytenr unit_byte
HALF_LOCKED2 &pool->lock