Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/inode.c btrfs_writepage_fixup_worker() -> btrfs_test_range_bit_exists()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 3 bit 32
UNITS 1 start unit_byte
UNITS 2 end unit_byte
HALF_LOCKED2 &pool->lock

fs/btrfs/inode.c can_nocow_extent() -> btrfs_test_range_bit_exists()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-18446744073709551614
PARAM_VALUE 3 bit 32
BUF_SIZE 0 tree 96
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
DATA_SOURCE 1 start $1
NOSPEC 1 start
NOSPEC 1 start
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 start 0-s32max[c]
UNITS 1 start unit_byte

fs/btrfs/inode.c should_nocow() -> btrfs_test_range_bit_exists()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-18446744073709547519
PARAM_VALUE 2 end 1-u64max
PARAM_VALUE 3 bit 64
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
DATA_SOURCE 1 start $1
DATA_SOURCE 2 end $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mapping->invalidate_lock

fs/btrfs/extent_io.c debug_check_writepage_fixup() -> btrfs_test_range_bit_exists()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 3 bit 32
DATA_SOURCE 1 start $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 start unit_byte
UNITS 2 end unit_byte
HALF_LOCKED2 &mapping->invalidate_lock

fs/btrfs/extent_io.c try_release_extent_mapping() -> btrfs_test_range_bit_exists()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-18446744073709551614
PARAM_VALUE 3 bit 2
BUF_SIZE 0 tree 96
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 start
UNITS 1 start unit_byte
LOCK2 &extent_tree->lock
HALF_LOCKED2 &folio->private->lock
TYPE_LOCK (struct extent_map_tree)->lock

fs/btrfs/defrag.c defrag_collect_targets() -> btrfs_test_range_bit_exists()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-18446744073709551614
PARAM_VALUE 3 bit 32
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
NOSPEC 1 start
NOSPEC 1 start
USER_DATA 1 start 0-9223372039002259454[c]
UNITS 1 start unit_byte
UNITS 2 end unit_byte
LOCK2 &inode->vfs_inode.i_rwsem
TYPE_LOCK (struct inode)->i_rwsem