Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/btrfs/send.c __get_cur_name_and_parent() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->sb->s_cop->empty_dir | 0,86,4096-ptr_max |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->get_context | 0,706,4096-ptr_max |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2704,2712 |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->set_context | 0,67,4096-ptr_max |
| 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 | ino | 0-255,257-18446744073709551614 |
| PARAM_VALUE | 2 | dir | 6044713909405822976,7337354970494042112 |
| PARAM_VALUE | 3 | dir_gen | 3284947427891490816,7432106427512958976 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| DATA_SOURCE | 1 | ino | $1 |
| DATA_SOURCE | 2 | dir | $3 |
| DATA_SOURCE | 3 | dir_gen | $4 |
| DATA_SOURCE | 4 | name | $5 |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->disk_i_size | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_size | |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c __get_cur_name_and_parent() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ino | 0-255,257-u64max |
| PARAM_VALUE | 2 | dir | 6044713909405822976,7337354970494042112 |
| PARAM_VALUE | 3 | dir_gen | 3284947427891490816,7432106427512958976 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| DATA_SOURCE | 1 | ino | $1 |
| DATA_SOURCE | 2 | dir | $3 |
| DATA_SOURCE | 3 | dir_gen | $4 |
| DATA_SOURCE | 4 | name | $5 |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->disk_i_size | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_size | |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c apply_dir_move() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dir | 4464596844413042688 |
| PARAM_VALUE | 3 | dir_gen | 9052149239116316672 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->buf_len | 224 |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| DATA_SOURCE | 4 | name | r fs_path_alloc |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c check_ino_in_path() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ino | 257-u64max |
| PARAM_VALUE | 2 | dir | 2214081697026854912 |
| PARAM_VALUE | 3 | dir_gen | 7471906691953106944 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 4 | name | $5 |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c did_overwrite_first_ref() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 1-u64max |
| PARAM_VALUE | 2 | dir | 484366129068097536 |
| PARAM_VALUE | 3 | dir_gen | 5247671265082699776 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->buf_len | 224 |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| DATA_SOURCE | 1 | ino | $1 |
| DATA_SOURCE | 4 | name | r fs_path_alloc |
fs/btrfs/send.c get_cur_path() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ino | 0-255,257-u64max |
| PARAM_VALUE | 2 | dir | 7337354970494042112 |
| PARAM_VALUE | 3 | dir_gen | 7432106427512958976 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| DATA_SOURCE | 1 | ino | $1 [m] |
| DATA_SOURCE | 4 | name | r fs_path_alloc |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->disk_i_size | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_size | |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c is_first_ref() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | dir | 1459775546307018752 |
| PARAM_VALUE | 3 | dir_gen | 0 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->buf_len | 224 |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 1 | ino | $1 |
| DATA_SOURCE | 4 | name | r fs_path_alloc |
fs/btrfs/send.c path_loop() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ino | 0-255,257-u64max |
| PARAM_VALUE | 2 | dir | 6044713909405822976 |
| PARAM_VALUE | 3 | dir_gen | 3284947427891490816 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->buf | 1-u64max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| DATA_SOURCE | 1 | ino | $2 [m] |
| DATA_SOURCE | 4 | name | $1 |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c wait_for_parent_move() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ino | 257-u64max |
| PARAM_VALUE | 2 | dir | 2389358059083898880 |
| PARAM_VALUE | 3 | dir_gen | 8961493274899795968 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->reversed | 0 |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| DATA_SOURCE | 4 | name | r fs_path_alloc |
| UNITS | 1 | ino | unit_byte |
fs/btrfs/send.c wait_for_parent_move() -> get_first_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ino | 257-u64max |
| PARAM_VALUE | 2 | dir | 5632276839473639424 |
| PARAM_VALUE | 3 | dir_gen | 0 |
| PARAM_VALUE | 4 | name | 4096-ptr_max |
| PARAM_VALUE | 4 | name->end | 4096-ptr_max |
| PARAM_VALUE | 4 | name->start | 4096-ptr_max |
| PARAM_VALUE | 4 | *name->start | 0 |
| BUF_SIZE | 4 | name | 256 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 4 | name | 1 |
| DATA_SOURCE | 4 | name | r fs_path_alloc |
| UNITS | 1 | ino | unit_byte |