Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/delalloc-space.c btrfs_calculate_inode_block_rsv_size() -> btrfs_csum_bytes_to_leaves()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 0,4096-ptr_max
DATA_SOURCE 0 fs_info $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 csum_bytes
UNITS 0 fs_info unit_byte
LOCK2 &inode->lock
TYPE_LOCK (struct btrfs_inode)->lock

fs/btrfs/delalloc-space.c calc_inode_reservations() -> btrfs_csum_bytes_to_leaves()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
CAPPED_DATA 1 csum_bytes 1
CAPPED_DATA 1 csum_bytes 1
DATA_SOURCE 1 csum_bytes $2
NOSPEC 1 csum_bytes
NOSPEC 1 csum_bytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 csum_bytes 0-6442450941[c]
UNITS 0 fs_info unit_byte
UNITS 1 csum_bytes unit_byte
HALF_LOCKED2 &inode->vfs_inode.i_rwsem

fs/btrfs/extent-tree.c btrfs_cleanup_ref_head_accounting() -> btrfs_csum_bytes_to_leaves()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
DATA_SOURCE 0 fs_info $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 fs_info unit_byte
UNITS 1 csum_bytes unit_byte
HALF_LOCKED2 &head->mutex

fs/btrfs/delayed-ref.c add_delayed_ref_head() -> btrfs_csum_bytes_to_leaves()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 csum_bytes
UNITS 0 fs_info unit_byte
UNITS 1 csum_bytes unit_byte
LOCK2 &delayed_refs->lock
HALF_LOCKED2 &trans->fs_info->commit_root_sem
HALF_LOCKED2 &trans->fs_info->fs_devices->device_list_mutex
HALF_LOCKED2 &trans->fs_info->fs_roots_radix_lock
HALF_LOCKED2 &trans->fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &trans->fs_info->qgroup_lock
HALF_LOCKED2 &trans->fs_info->unused_bg_unpin_mutex
HALF_LOCKED2 &trans->transaction->delayed_refs.lock
TYPE_LOCK (struct btrfs_delayed_ref_root)->lock

fs/btrfs/delayed-ref.c update_existing_head_ref() -> btrfs_csum_bytes_to_leaves()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 csum_bytes
UNITS 0 fs_info unit_byte
UNITS 1 csum_bytes unit_byte
LOCK2 &delayed_refs->lock
LOCK2 &existing->lock
HALF_LOCKED2 &trans->fs_info->chunk_mutex
HALF_LOCKED2 &trans->fs_info->commit_root_sem
HALF_LOCKED2 &trans->fs_info->fs_devices->device_list_mutex
HALF_LOCKED2 &trans->fs_info->fs_roots_radix_lock
HALF_LOCKED2 &trans->fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &trans->fs_info->qgroup_lock
HALF_LOCKED2 &trans->fs_info->unused_bg_unpin_mutex
HALF_LOCKED2 &trans->transaction->cache_write_mutex
HALF_LOCKED2 &trans->transaction->delayed_refs.lock
TYPE_LOCK (struct btrfs_delayed_ref_head)->lock
TYPE_LOCK (struct btrfs_delayed_ref_root)->lock