Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- fs/btrfs/file.c, line 2849
- fs/btrfs/free-space-cache.c, line 350
- fs/btrfs/inode.c
- fs/btrfs/reflink.c, line 44
Smatch caller information:
fs/btrfs/file.c btrfs_fallocate_update_isize() -> btrfs_inode_safe_disk_i_size_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | new_i_size | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/inode.c btrfs_finish_one_ordered() -> btrfs_inode_safe_disk_i_size_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->root | 4096-ptr_max |
| PARAM_VALUE | 1 | new_i_size | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/btrfs/inode.c btrfs_finish_one_ordered() -> btrfs_inode_safe_disk_i_size_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->extent_tree.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->extent_tree.lock.owner | (-1) |
| PARAM_VALUE | 0 | inode->extent_tree.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | inode->extent_tree.root.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->root | 4096-ptr_max |
| PARAM_VALUE | 1 | new_i_size | 0 |
| CAPPED_DATA | 0 | inode->root | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/btrfs/inode.c btrfs_setsize() -> btrfs_inode_safe_disk_i_size_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | new_i_size | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/free-space-cache.c btrfs_truncate_free_space_cache() -> btrfs_inode_safe_disk_i_size_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->disk_i_size | 0 |
| PARAM_VALUE | 0 | inode->extent_tree.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->extent_tree.lock.owner | (-1) |
| PARAM_VALUE | 0 | inode->extent_tree.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | inode->io_tree.inode->root->fs_info->delalloc_bytes.lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | inode->io_tree.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->vfs_inode.i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->vfs_inode.i_size | 0 |
| PARAM_VALUE | 1 | new_i_size | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | new_i_size | unit_byte |
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &trans->transaction->cache_write_mutex |
fs/btrfs/reflink.c clone_finish_inode_update() -> btrfs_inode_safe_disk_i_size_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->io_tree.inode->delalloc_inodes.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->io_tree.inode->root->delalloc_root.next->prev | 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->fs_info->sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| 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 | 0 | inode->vfs_inode.i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | inode->vfs_inode.i_size | s64min-(-2),0-s64max |
| PARAM_VALUE | 1 | new_i_size | 0 |
| DATA_SOURCE | 0 | inode | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->vfs_inode.i_blocks | 0-18014398515341359,18428729675200069633-u64max |
| USER_DATA | 0 | inode->vfs_inode.i_bytes | 0-65023[c] |
| HALF_LOCKED2 | &src_inode->vfs_inode.i_rwsem |