Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/btrfs/extent-tree.c
- fs/btrfs/file.c
- fs/btrfs/inode-item.c, line 665
- fs/btrfs/relocation.c
- fs/btrfs/tests/delayed-refs-tests.c
- fs/btrfs/tree-log.c, line 866
Smatch caller information:
fs/btrfs/tree-log.c replay_one_extent() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 5740041470098026496 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 0 |
| PARAM_VALUE | 3 | mod_root | 0 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| NOCHECK_CALL | |||
| UNITS | 1 | ino | unit_byte |
| UNITS | 2 | offset | unit_byte |
fs/btrfs/file.c btrfs_insert_replace_extent() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 3523437282496569344 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 0 |
| PARAM_VALUE | 3 | mod_root | 0 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | offset | unit_byte |
fs/btrfs/file.c btrfs_mark_extent_written() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 8970799316764139520 |
| PARAM_VALUE | 0 | generic_ref->type | 0-1 |
| PARAM_VALUE | 3 | mod_root | 0 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | generic_ref->data_ref.offset | |
| UNITS | 1 | ino | unit_byte |
| UNITS | 2 | offset | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/file.c btrfs_mark_extent_written() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 8970799316764139520 |
| PARAM_VALUE | 0 | generic_ref->type | 0-1 |
| PARAM_VALUE | 3 | mod_root | 0 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| CAPPED_DATA | 1 | ino | 1 |
| CAPPED_DATA | 1 | ino | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | generic_ref->data_ref.offset | |
| UNITS | 1 | ino | unit_byte |
| UNITS | 2 | offset | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/relocation.c replace_file_extents() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 3731503051715727360 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 0 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | ino | unit_byte |
| UNITS | 2 | offset | unit_byte |
| 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 extent_buffer)->lock |
fs/btrfs/relocation.c replace_file_extents() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 3731503051715727360 |
| PARAM_VALUE | 0 | generic_ref->type | 1 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | generic_ref->data_ref.offset | |
| UNITS | 1 | ino | unit_byte |
| UNITS | 2 | offset | unit_byte |
| 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 extent_buffer)->lock |
fs/btrfs/extent-tree.c __btrfs_mod_ref() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 6117822500846968832 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 0 |
| DATA_SOURCE | 4 | skip_qgroup | r btrfs_header_flag |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | generic_ref->parent | |
| UNITS | 1 | ino | unit_byte |
| UNITS | 2 | offset | unit_byte |
| HALF_LOCKED2 | &buf->lock | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| 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/extent-tree.c btrfs_alloc_reserved_file_extent() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 251161894992240640 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 0 |
| PARAM_VALUE | 3 | mod_root | 0 |
| PARAM_VALUE | 4 | skip_qgroup | 0 |
| DATA_SOURCE | 1 | ino | $2 |
| DATA_SOURCE | 2 | offset | $3 |
| NOSPEC | 2 | offset | |
| NOSPEC | 2 | offset | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | offset | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | generic_ref->num_bytes | |
| NO_OVERFLOW_SIMPLE | 2 | offset | |
| UNITS | 2 | offset | unit_byte |
fs/btrfs/tests/delayed-refs-tests.c merge_tests() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 8801039477966499840 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->ref_root | 256 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 1 |
| PARAM_VALUE | 1 | ino | 256 |
| PARAM_VALUE | 2 | offset | 0 |
| PARAM_VALUE | 3 | mod_root | 256 |
| PARAM_VALUE | 4 | skip_qgroup | 1 |
| NOCHECK_CALL |
fs/btrfs/tests/delayed-refs-tests.c simple_test() -> btrfs_init_data_ref()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | generic_ref | 481009926471151616 |
| PARAM_VALUE | 0 | generic_ref->data_ref.objectid | 0 |
| PARAM_VALUE | 0 | generic_ref->data_ref.offset | 0 |
| PARAM_VALUE | 0 | generic_ref->real_root | 0 |
| PARAM_VALUE | 0 | generic_ref->ref_root | 256 |
| PARAM_VALUE | 0 | generic_ref->skip_qgroup | 0 |
| PARAM_VALUE | 0 | generic_ref->type | 1 |
| PARAM_VALUE | 1 | ino | 256 |
| PARAM_VALUE | 2 | offset | 0 |
| PARAM_VALUE | 3 | mod_root | 256 |
| PARAM_VALUE | 4 | skip_qgroup | 1 |
| NOCHECK_CALL | |||
| UNITS | 3 | mod_root | unit_byte |