Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- fs/btrfs/disk-io.c
- fs/btrfs/relocation.c, line 853
- fs/btrfs/transaction.c
- fs/btrfs/tree-log.c, line 3386
Smatch caller information:
fs/btrfs/tree-log.c btrfs_sync_log() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| RX_PATH | |||
| NOCHECK_CALL | |||
| LOCK2 | &root->log_mutex | ||
| TYPE_LOCK | (struct btrfs_root)->log_mutex |
fs/btrfs/relocation.c btrfs_update_reloc_root() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| BUF_SIZE | 0 | item | 439 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &fs_info->cleaner_mutex |
fs/btrfs/transaction.c commit_fs_roots() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &cow->lock | ||
| LOCK2 | &fs_info->reloc_mutex | ||
| HALF_LOCKED2 | &dev_replace->lock_finishing_cancel_unmount | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem | ||
| HALF_LOCKED2 | &fs_info->transaction_kthread_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reloc_mutex |
fs/btrfs/transaction.c create_pending_snapshot() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| PARAM_VALUE | 1 | node | 4096-ptr_max |
| PARAM_VALUE | 1 | node->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | node->log_index | (-1)-1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &fs_info->reloc_mutex | ||
| HALF_LOCKED2 | &dev_replace->lock_finishing_cancel_unmount | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem | ||
| HALF_LOCKED2 | &fs_info->transaction_kthread_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reloc_mutex |
fs/btrfs/transaction.c update_cowonly_root() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| PARAM_VALUE | 1 | node | 4096-ptr_max |
| RX_PATH | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &cow->lock |
fs/btrfs/disk-io.c btrfs_add_log_tree() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| PARAM_VALUE | 1 | node | 4096-ptr_max |
| PARAM_VALUE | 1 | node->fs_info->dirty_metadata_bytes.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | node->fs_info->dirty_metadata_bytes.lock.owner | (-1) |
| PARAM_VALUE | 1 | node->fs_info->dirty_metadata_bytes.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | node->lock.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 1 | node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | node->lock_owner | 0 |
| PARAM_VALUE | 1 | node->log_index | (-1)-1 |
| PARAM_VALUE | 1 | node->refs_lock.rlock.dep_map->name | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &root->log_mutex | ||
| HALF_LOCKED2 | &inode->i_mmap_lock | ||
| HALF_LOCKED2 | &inode->vfs_inode.i_rwsem | ||
| TYPE_LOCK | (struct btrfs_root)->log_mutex |
fs/btrfs/disk-io.c load_super_root() -> btrfs_set_root_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | item | 4096-ptr_max |
| PARAM_VALUE | 1 | node | 4096-ptr_max |
| PARAM_VALUE | 1 | node->fs_info->block_group_cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | node->fs_info->dev_replace.bio_counter.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | node->fs_info->dev_replace.bio_counter.lock.owner | (-1) |
| PARAM_VALUE | 1 | node->fs_info->dev_replace.bio_counter.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | node->fs_info->dev_replace.replace_wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | node->fs_info->dev_replace.replace_wait.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | node->fs_info->mapping_tree_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | node->fs_info->stripe_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | node->fs_info->stripe_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | node->lock.first_waiter->type | 0-1 |
| CAPPED_DATA | 1 | node | 1 |
| DATA_SOURCE | 1 | node | r read_tree_block |
| NOCHECK_CALL |