Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- fs/btrfs/backref.c
- fs/btrfs/ctree.c, line 838
- fs/btrfs/disk-io.c
- fs/btrfs/print-tree.c, line 626
- fs/btrfs/qgroup.c, line 4904
- fs/btrfs/relocation.c
- fs/btrfs/tree-mod-log.c, line 1044
Smatch caller information:
fs/btrfs/qgroup.c btrfs_qgroup_trace_subtree_after_cow() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 2 | check | 6224458299980382208 |
| PARAM_VALUE | 2 | check->has_first_key | 1 |
| PARAM_VALUE | 2 | check->owner_root | 0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &subvol_eb->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 |
fs/btrfs/tree-mod-log.c btrfs_get_old_root() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->tree_mod_log_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | check | 1973991807351250944 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| PARAM_VALUE | 2 | check->transid | 0 |
| CAPPED_DATA | 1 | bytenr | 1 |
| CAPPED_DATA | 1 | bytenr | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | bytenr | unit_byte |
fs/btrfs/relocation.c add_data_references() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->block_group_cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->block_group_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->block_group_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792 |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,4672,5297,4573560380487,148606482432692224,436469935444291584 |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896 |
| PARAM_VALUE | 0 | fs_info->chunk_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->chunk_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->chunk_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->dev_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->dev_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->dev_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->global_root_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->quota_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->quota_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->quota_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->remap_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->remap_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->remap_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->stripe_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->stripe_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->stripe_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->tree_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->tree_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->tree_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | fs_info->uuid_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->uuid_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->uuid_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 2 | check | 4668794917668835328 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| PARAM_VALUE | 2 | check->level | 0 |
| PARAM_VALUE | 2 | check->owner_root | 0 |
| PARAM_VALUE | 2 | check->transid | 0 |
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | bytenr | unit_byte |
fs/btrfs/relocation.c get_tree_block_key() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | check | 8245898626707984384 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| DATA_SOURCE | 0 | fs_info | $0 |
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | bytenr | unit_byte |
fs/btrfs/disk-io.c btrfs_replay_log() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->allocated_roots.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->allocated_roots.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_roots_radix_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->super_copy | 4096-ptr_max |
| PARAM_VALUE | 2 | check | 4970793033921024000 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| PARAM_VALUE | 2 | check->owner_root | 18446744073709551610 |
| DATA_SOURCE | 0 | fs_info | $0 |
| DATA_SOURCE | 1 | bytenr | r btrfs_super_log_root |
fs/btrfs/disk-io.c load_super_root() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | check | 2958247725982961664 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| DATA_SOURCE | 1 | bytenr | $1 |
| UNITS | 0 | fs_info | unit_byte |
fs/btrfs/disk-io.c read_tree_root_path() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->allocated_roots.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->allocated_roots.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_roots_radix_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | check | 7683491576711512064 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | check->owner_root | 5,256-9223372036854775807[c] |
| UNITS | 0 | fs_info | unit_byte |
fs/btrfs/print-tree.c btrfs_print_tree() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->dev_replace.bio_counter.lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->dev_replace.bio_counter.lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | check | 4577902660461412352 |
| PARAM_VALUE | 2 | check->has_first_key | 1 |
| PARAM_VALUE | 2 | check->level | 0-254 |
| RX_PATH | |||
| UNITS | 0 | fs_info | unit_byte |
| HALF_LOCKED2 | e.irqflags |
fs/btrfs/ctree.c btrfs_read_node_slot() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 2 | check | 2688199953575997440 |
| PARAM_VALUE | 2 | check->has_first_key | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &root_eb->lock |
fs/btrfs/backref.c add_missing_keys() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->block_group_cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | 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 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,4672,5297,4573560380487,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->global_root_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->tree_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->tree_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | bytenr | 1-u64max |
| PARAM_VALUE | 2 | check | 8083490351757430784 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| PARAM_VALUE | 2 | check->transid | 0 |
| BUF_SIZE | 0 | fs_info | (-1),11312 |
| BUF_SIZE | 0 | fs_info | (-1),11312 |
| DATA_SOURCE | 0 | fs_info | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | bytenr | unit_byte |
| HALF_LOCKED2 | 0 | &fs_info->commit_root_sem |
fs/btrfs/backref.c find_parent_nodes() -> read_tree_block()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info->block_group_cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,4672,5297,4573560380487,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max |
| PARAM_VALUE | 0 | fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->global_root_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->tree_root->refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 1 | bytenr | 1-u64max |
| PARAM_VALUE | 2 | check | 5957005521182171136 |
| PARAM_VALUE | 2 | check->first_key.objectid | 0 |
| PARAM_VALUE | 2 | check->first_key.offset | 0 |
| PARAM_VALUE | 2 | check->first_key.type | 0 |
| PARAM_VALUE | 2 | check->has_first_key | 0 |
| PARAM_VALUE | 2 | check->level | 0 |
| PARAM_VALUE | 2 | check->owner_root | 0 |
| PARAM_VALUE | 2 | check->transid | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | bytenr | unit_byte |
| HALF_LOCKED2 | 0 | &fs_info->commit_root_sem |