Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/qgroup.c can_delete_qgroup() -> btrfs_find_root()

Type Parameter Key Value
PARAM_VALUE 1 search_key 593923283145105408
PARAM_VALUE 1 search_key->offset u64max
PARAM_VALUE 1 search_key->type 132
PARAM_VALUE 2 path 1-u64max
PARAM_VALUE 3 root_item 0
PARAM_VALUE 4 root_key 0
DATA_SOURCE 2 path r btrfs_alloc_path
LOCK2 &fs_info->qgroup_ioctl_lock
TYPE_LOCK (struct btrfs_fs_info)->qgroup_ioctl_lock

fs/btrfs/disk-io.c read_tree_root_path() -> btrfs_find_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 0 root->fs_info->allocated_roots.prev 4096-ptr_max
PARAM_VALUE 0 root->fs_info->allocated_roots.prev->next->next 4096-ptr_max
PARAM_VALUE 0 root->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->commit_root_sem.first_waiter->type 0-1
PARAM_VALUE 0 root->fs_info->fs_roots_radix_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 root->fs_info->tree_root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->fs_info->tree_root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PARAM_VALUE 1 search_key 232012126993403904,967620859013599232,1962029122781458432,2410369321050107904,2811728395394584576
PARAM_VALUE 2 path 1-u64max
PARAM_VALUE 3 root_item 4096-ptr_max
PARAM_VALUE 4 root_key 4096-ptr_max
BUF_SIZE 2 path (-1)-s32max
BUF_SIZE 2 path (-1)-s32max
DATA_SOURCE 0 root $0
DATA_SOURCE 1 search_key $2
DATA_SOURCE 2 path $1
STR_LEN 0 root (-1),4,6,10
STR_LEN 0 root (-1),4,6,10
NOSPEC 4 root_key->objectid
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 search_key->objectid 5,256-9223372036854775807
USER_DATA 4 root_key->objectid 5,256-9223372036854775807[c]

fs/btrfs/extent-tree.c btrfs_drop_snapshot() -> btrfs_find_root()

Type Parameter Key Value
PARAM_VALUE 0 root->fs_info->qgroup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 root->qgroup_meta_rsv_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 search_key 4096-ptr_max
PARAM_VALUE 2 path 4096-ptr_max
PARAM_VALUE 2 path->locks 4096-ptr_max
PARAM_VALUE 2 path->lowest_level 0
PARAM_VALUE 2 path->nodes 4096-ptr_max
PARAM_VALUE 2 *path->locks 0-255
PARAM_VALUE 2 *path->slots s32min-s32max
PARAM_VALUE 3 root_item 0
PARAM_VALUE 4 root_key 0
DATA_SOURCE 2 path r btrfs_alloc_path
HALF_LOCKED2 &fs_info->cleaner_mutex