Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/btrfs/volumes.c find_free_dev_extent() -> btrfs_search_backwards()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 7698199137614749696 |
| PARAM_VALUE | 1 | key->offset | 0,1048576 |
| PARAM_VALUE | 1 | key->type | 204 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| PARAM_VALUE | 2 | path->reada | 2 |
| PARAM_VALUE | 2 | path->search_commit_root | 1 |
| PARAM_VALUE | 2 | path->skip_locking | 1 |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &fs_info->chunk_mutex | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | global &uuid_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex |
fs/btrfs/ioctl.c btrfs_search_path_in_tree() -> btrfs_search_backwards()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | key | 3224578245390852096 |
| PARAM_VALUE | 1 | key->objectid | 0-255,257-u64max |
| PARAM_VALUE | 1 | key->offset | u64max |
| PARAM_VALUE | 2 | path | 1-u64max |
| BUF_SIZE | 0 | root | (-1),2888 |
| BUF_SIZE | 0 | root | (-1),2888 |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| CAPABLE | 0 | 21 | |
| USER_DATA | 1 | key->objectid | 0-255,257-u64max |
fs/btrfs/ioctl.c btrfs_search_path_in_tree_user() -> btrfs_search_backwards()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | key | 2069978083283193856 |
| PARAM_VALUE | 1 | key->offset | u64max |
| PARAM_VALUE | 2 | path | 1-u64max |
| BUF_SIZE | 0 | root | (-1),2888 |
| BUF_SIZE | 0 | root | (-1),2888 |
| DATA_SOURCE | 0 | root | r btrfs_get_fs_root |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| USER_DATA | 1 | key->objectid | 0-255,257-u64max |
fs/btrfs/super.c btrfs_get_subvol_name_from_objectid() -> btrfs_search_backwards()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 4442355269671419904 |
| PARAM_VALUE | 1 | key->objectid | 0-4,6-u64max |
| PARAM_VALUE | 1 | key->offset | u64max |
| PARAM_VALUE | 1 | key->type | 144 |
| PARAM_VALUE | 2 | path | 1-u64max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | key->objectid | 256-u64max |
fs/btrfs/super.c btrfs_get_subvol_name_from_objectid() -> btrfs_search_backwards()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | key | 4442355269671419904 |
| PARAM_VALUE | 1 | key->objectid | 0-255,257-u64max |
| PARAM_VALUE | 1 | key->offset | u64max |
| PARAM_VALUE | 1 | key->type | 12 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| PARAM_VALUE | 2 | path->nodes | 4096-ptr_max |
| PARAM_VALUE | 2 | path->slots | 4096-ptr_max |
| PARAM_VALUE | 2 | *path->locks | 0-255 |
| PARAM_VALUE | 2 | *path->slots | s32min-s32max |
| BUF_SIZE | 0 | root | (-1),2888 |
| BUF_SIZE | 0 | root | (-1),2888 |
| DATA_SOURCE | 0 | root | r btrfs_get_fs_root |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| RX_PATH | |||
| TASK_NOT_RUNNING |