Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

fs/btrfs/ordered-data.c btrfs_try_lock_ordered_range() -> btrfs_try_lock_extent()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-9223372036854775807
PARAM_VALUE 3 cached 9083642526219137024
PARAM_VALUE 3 *cached 0
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
DATA_SOURCE 1 start $1
DATA_SOURCE 2 end $2
DATA_SOURCE 3 cached $3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 start 0-9223372036854775806[c]
HALF_LOCKED2 &pool->lock

fs/btrfs/file.c lock_and_cleanup_extent() -> btrfs_try_lock_extent()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-9223372036854775807
PARAM_VALUE 3 cached 6180677299703959552
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
DATA_SOURCE 3 cached $7
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 start 0-9223372036854775806[c]
HALF_LOCKED2 &pool->lock

fs/btrfs/inode.c btrfs_encoded_read() -> btrfs_try_lock_extent()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 1 start 0-5294967294
PARAM_VALUE 2 end 131071-5295098365
PARAM_VALUE 3 cached 4877488597679865856,8748874923462721536
PARAM_VALUE 3 *cached 0
BUF_SIZE 0 tree 96
CAPPED_DATA 1 start 1
CAPPED_DATA 1 start 1
CAPPED_DATA 2 end 1
CAPPED_DATA 2 end 1
DATA_SOURCE 3 cached $3
CAPABLE 0 21
PARAM_COMPARE 2 end < $1
PARAM_COMPARE 2 end == $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 start 0-9223372036854775807[c]
USER_DATA 2 end 131071-9223372036854906878[c]
LOCK2 &inode->vfs_inode.i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/btrfs/direct-io.c lock_extent_direct() -> btrfs_try_lock_extent()

Type Parameter Key Value
PARAM_VALUE 0 tree 4096-ptr_max
PARAM_VALUE 0 tree->inode->root->fs_info->delalloc_bytes.lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 tree->lock.rlock.dep_map->name 0-255
PARAM_VALUE 3 cached 4736794536619286528
BUF_SIZE 0 tree 96
DATA_SOURCE 1 start $1
DATA_SOURCE 2 end $2
DATA_SOURCE 3 cached $3
UNITS 1 start unit_byte
UNITS 2 end unit_byte

fs/btrfs/relocation.c replace_file_extents() -> btrfs_try_lock_extent()

Type Parameter Key Value
PARAM_VALUE 0 tree 184,4096-ptr_max
PARAM_VALUE 3 cached 617916584053026816
PARAM_VALUE 3 *cached 0
RX_PATH
TASK_NOT_RUNNING
UNITS 1 start unit_byte
UNITS 2 end unit_byte
LOCK2 &inode->i_mmap_lock
LOCK2 &leaf->lock
HALF_LOCKED2 &buf->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_inode)->i_mmap_lock
TYPE_LOCK (struct extent_buffer)->lock