Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- fs/btrfs/disk-io.c, line 4283
- fs/btrfs/qgroup.c
- fs/btrfs/relocation.c, line 3778
- fs/btrfs/scrub.c, line 2612
- fs/btrfs/send.c
- fs/btrfs/space-info.c
- fs/btrfs/super.c, line 2322
- fs/btrfs/transaction.c, line 687
Smatch caller information:
fs/btrfs/space-info.c flush_space() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/space-info.c flush_space() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/scrub.c finish_extent_writes_for_zoned() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | root | $0 |
fs/btrfs/qgroup.c btrfs_qgroup_cleanup_dropped_subvolume() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 1-u64max |
| HALF_LOCKED2 | &fs_info->cleaner_mutex |
fs/btrfs/qgroup.c btrfs_qgroup_rescan() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPABLE | 0 | 21 |
fs/btrfs/qgroup.c flush_reservations() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPABLE | 0 | 21 | |
| LOCK2 | &fs_info->cleaner_mutex | ||
| LOCK2 | &fs_info->subvol_sem | ||
| TYPE_LOCK | (struct btrfs_fs_info)->cleaner_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->subvol_sem |
fs/btrfs/qgroup.c try_flush_qgroup() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_inodes.next | 4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_inodes.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_inodes.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_inodes.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_inodes.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->delalloc_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | root->delalloc_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | root->delalloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | root->fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | root->fs_info->block_group_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->block_group_root->node->lock.first_waiter->type | 0-1 |
| 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->chunk_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->chunk_root->node->lock.first_waiter->type | 0-1 |
| 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->delayed_iput_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->fs_info->dev_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->dev_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->flush_workers | 4096-ptr_max |
| PARAM_VALUE | 0 | root->fs_info->fs_error | 0 |
| PARAM_VALUE | 0 | root->fs_info->log_root_tree->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->log_root_tree->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->quota_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->quota_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->remap_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->remap_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->empty_dir | 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->get_context | 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | root->fs_info->sb->s_cop->set_context | 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | root->fs_info->stripe_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->stripe_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->subvol_sem.first_waiter->type | 0-1 |
| 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->fs_info->uuid_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->uuid_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->log_root->fs_info->log_root_tree->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->log_root->fs_info->log_root_tree->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 | 0 | root->ordered_extent_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->ordered_extent_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->ordered_extent_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | root->ordered_extent_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | root->ordered_extent_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | root->ordered_extent_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | root->ordered_extents.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->tree_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->tree_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->node->lock.first_waiter->type | 0-1 |
| BUF_SIZE | 0 | root | (-1),2888 |
| BUF_SIZE | 0 | root | (-1),2888 |
| DATA_SOURCE | 0 | root | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->disk_i_size | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_size |
fs/btrfs/transaction.c start_transaction() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 0 | root->fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | root->fs_info->block_group_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->block_group_root->node->lock.first_waiter->type | 0-1 |
| 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->chunk_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->chunk_root->node->lock.first_waiter->type | 0-1 |
| 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->delayed_refs_rsv.full | 0 |
| PARAM_VALUE | 0 | root->fs_info->delayed_refs_rsv.reserved | 0-18446744073709551614 |
| PARAM_VALUE | 0 | root->fs_info->delayed_refs_rsv.size | 1-u64max |
| PARAM_VALUE | 0 | root->fs_info->delayed_refs_rsv.space_info->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | root->fs_info->dev_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->dev_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->fs_error | 0 |
| PARAM_VALUE | 0 | root->fs_info->log_root_tree->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->log_root_tree->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->quota_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->quota_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->remap_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->remap_root->node->lock.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->stripe_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->stripe_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->subvol_sem.first_waiter->type | 0-1 |
| 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->fs_info->uuid_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->uuid_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->fs_info->zone_size | 1-u64max |
| PARAM_VALUE | 0 | root->log_root->fs_info->log_root_tree->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->log_root->fs_info->log_root_tree->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 | 0 | root->reloc_root->fs_info->commit_root_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->commit_root_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->tree_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->fs_info->tree_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | root->reloc_root->node->lock.first_waiter->type | 0-1 |
| BUF_SIZE | 0 | root | (-1),2888 |
| BUF_SIZE | 0 | root | (-1),2888 |
| CAPPED_DATA | 0 | root | 1 |
| DATA_SOURCE | 0 | root | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->disk_i_size | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | root->dirty_log_pages.inode->vfs_inode.i_size | |
| HALF_LOCKED2 | &dev_replace->lock_finishing_cancel_unmount | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &of->mutex |
fs/btrfs/disk-io.c btrfs_commit_super() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/super.c btrfs_freeze() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sb->s_umount | ||
| HALF_LOCKED2 | &bdev->bd_fsfreeze_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &sdp->sd_freeze_mutex | ||
| HALF_LOCKED2 | global &dax_srcu | ||
| TYPE_LOCK | (struct super_block)->s_umount |
fs/btrfs/send.c ensure_commit_roots_uptodate() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_COMPARE | 0 | root->commit_root | != $0->node |
fs/btrfs/send.c ensure_commit_roots_uptodate() -> btrfs_commit_current_transaction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_COMPARE | 0 | root->commit_root | != $0->node |