Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/btrfs/file.c btrfs_punch_hole() -> btrfs_replace_file_extents()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | path | 1-u64max |
| PARAM_VALUE | 4 | extent_info | 0 |
| PARAM_VALUE | 5 | trans_out | 2157847473988767744 |
| PARAM_VALUE | 5 | *trans_out | 0 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 3 | end | 1 |
| CAPPED_DATA | 3 | end | 1 |
| DATA_SOURCE | 1 | path | r btrfs_alloc_path |
| PARAM_COMPARE | 2 | start | <= $3 |
| PARAM_COMPARE | 3 | end | >= $2 |
| PARAM_COMPARE | 3 | end | >= $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/inode.c insert_prealloc_file_extent() -> btrfs_replace_file_extents()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->root | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->root->fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->vfs_inode.i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792 |
| PARAM_VALUE | 0 | inode->vfs_inode.i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200 |
| PARAM_VALUE | 0 | inode->vfs_inode.i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896 |
| PARAM_VALUE | 1 | path | 1-u64max |
| PARAM_VALUE | 4 | extent_info | 7888119975274729472 |
| PARAM_VALUE | 4 | extent_info->data_offset | 0 |
| PARAM_VALUE | 4 | extent_info->extent_buf | 2545113345182052352 |
| PARAM_VALUE | 4 | extent_info->insertions | 0 |
| PARAM_VALUE | 4 | extent_info->is_new_extent | 1 |
| PARAM_VALUE | 4 | extent_info->qgroup_reserved | 0 |
| PARAM_VALUE | 4 | extent_info->update_times | 1 |
| PARAM_VALUE | 5 | trans_out | 716390741797023744 |
| PARAM_VALUE | 5 | *trans_out | 0 |
| DATA_SOURCE | 0 | inode | $1 |
| DATA_SOURCE | 1 | path | r btrfs_alloc_path |
| DATA_SOURCE | 2 | start | $3 |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
fs/btrfs/reflink.c btrfs_clone() -> btrfs_replace_file_extents()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->io_tree.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->root | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | path->nodes | 4096-ptr_max |
| PARAM_VALUE | 1 | path->slots | 4096-ptr_max |
| PARAM_VALUE | 1 | *path->locks | 0-255 |
| PARAM_VALUE | 1 | *path->slots | s32min-s32max |
| PARAM_VALUE | 4 | extent_info | 2925343977149124608 |
| PARAM_VALUE | 4 | extent_info->extent_buf | 1-18446744073709551614 |
| PARAM_VALUE | 4 | extent_info->is_new_extent | 0 |
| PARAM_VALUE | 5 | trans_out | 8101204046590291968 |
| DATA_SOURCE | 0 | inode | $1 |
| DATA_SOURCE | 1 | path | r btrfs_alloc_path |
| NOSPEC | 2 | start | |
| NOSPEC | 2 | start | |
| NOSPEC | 4 | extent_info->file_offset | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | start | 0-u64max[c] |
| USER_DATA | 4 | extent_info->data_len | 1-u64max[c] |
| USER_DATA | 4 | extent_info->file_offset | 0-9223372036854775807[c] |
| NO_OVERFLOW_SIMPLE | 2 | start | |
| NO_OVERFLOW_SIMPLE | 4 | extent_info->file_offset | |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |
fs/btrfs/reflink.c btrfs_clone() -> btrfs_replace_file_extents()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->io_tree.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->root | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | path->nodes | 4096-ptr_max |
| PARAM_VALUE | 1 | path->slots | 4096-ptr_max |
| PARAM_VALUE | 1 | *path->locks | 0-255 |
| PARAM_VALUE | 1 | *path->slots | s32min-s32max |
| PARAM_VALUE | 2 | start | 0-18446744073709551614 |
| PARAM_VALUE | 4 | extent_info | 0 |
| PARAM_VALUE | 5 | trans_out | 8101204046590291968 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 2 | start | 1 |
| DATA_SOURCE | 0 | inode | $1 |
| DATA_SOURCE | 1 | path | r btrfs_alloc_path |
| NOSPEC | 2 | start | |
| NOSPEC | 2 | start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | start | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 2 | start | |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | end | unit_byte |