Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/ref-verify.c ref_entry_cmp() -> comp_refs()

Type Parameter Key Value
PARAM_VALUE 0 ref1 4096-ptr_max
PARAM_VALUE 1 ref2 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &fs_info->defrag_inodes_lock
HALF_LOCKED2 &fs_info->global_root_lock
HALF_LOCKED2 &fs_info->ref_verify_lock
HALF_LOCKED2 &iommu->device_rbtree_lock
HALF_LOCKED2 &pools->rb_lock
HALF_LOCKED2 flags
HALF_LOCKED2 global &iommu_probe_device_lock

fs/btrfs/delayed-ref.c cmp_refs_node() -> comp_refs()

Type Parameter Key Value
PARAM_VALUE 0 ref1 4096-ptr_max
PARAM_VALUE 1 ref2 1-u64max
PARAM_VALUE 2 check_seq 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &delayed_node->mutex
HALF_LOCKED2 &delayed_refs->lock
HALF_LOCKED2 &fs_info->block_group_cache_lock
HALF_LOCKED2 &fs_info->mapping_tree_lock
HALF_LOCKED2 &href->lock

fs/btrfs/delayed-ref.c merge_ref() -> comp_refs()

Type Parameter Key Value
PARAM_VALUE 0 ref1 4096-ptr_max
PARAM_VALUE 1 ref2 4096-ptr_max
PARAM_VALUE 2 check_seq 0
CAPPED_DATA 0 ref1 1
CAPPED_DATA 0 &ref1->ref_node 1
DATA_SOURCE 0 ref1 $3
PARAM_COMPARE 0 &ref1->ref_node != $0->ref_node.__rb_parent_color
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ref1 unit_byte
UNITS 1 ref2 unit_byte
LOCK2 &head->lock
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &fs_info->reloc_mutex
HALF_LOCKED2 &head->mutex
TYPE_LOCK (struct btrfs_delayed_ref_head)->lock