Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

fs/btrfs/ordered-data.c btrfs_wait_ordered_roots() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->ordered_operations_mutex
LOCK2 &fs_info->ordered_root_lock
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
TYPE_LOCK (struct btrfs_fs_info)->ordered_operations_mutex
TYPE_LOCK (struct btrfs_fs_info)->ordered_root_lock

fs/btrfs/inode.c btrfs_init_locked_inode() -> btrfs_grab_root()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &inode_hash_lock

fs/btrfs/inode.c btrfs_start_delalloc_roots() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->delalloc_root_lock
LOCK2 &fs_info->delalloc_root_mutex
HALF_LOCKED2 &dev_replace->lock_finishing_cancel_unmount
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->delalloc_root_lock
TYPE_LOCK (struct btrfs_fs_info)->delalloc_root_mutex

fs/btrfs/inode.c new_simple_dir() -> btrfs_grab_root()

Type Parameter Key Value
DATA_SOURCE 0 root $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->subvol_sem

fs/btrfs/relocation.c btrfs_init_reloc_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->block_rsv 0,4096-ptr_max
PARAM_VALUE 0 root->commit_root 4096-ptr_max
PARAM_VALUE 0 root->commit_root->refs.refs.counter (-1073741824),0-s32max
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_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->delalloc_mutex.first_waiter 0
PARAM_VALUE 0 root->delalloc_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.next->next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev->next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->delayed_nodes.xa_flags 0
PARAM_VALUE 0 root->delayed_nodes.xa_head 0
PARAM_VALUE 0 root->dirty_list.next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 0 root->inodes.xa_flags 0
PARAM_VALUE 0 root->inodes.xa_head 0
PARAM_VALUE 0 root->leak_list.next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->log_batch.counter 0
PARAM_VALUE 0 root->log_commit 4096-ptr_max
PARAM_VALUE 0 root->log_commit_wait 4096-ptr_max
PARAM_VALUE 0 root->log_ctxs 4096-ptr_max
PARAM_VALUE 0 root->log_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->log_mutex.first_waiter 0
PARAM_VALUE 0 root->log_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->log_mutex.osq.tail.counter 0
PARAM_VALUE 0 root->log_mutex.owner.counter 0
PARAM_VALUE 0 root->log_transid_committed (-1)
PARAM_VALUE 0 root->log_writer_wait.head.next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->log_writers.counter 0
PARAM_VALUE 0 root->node 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->dev_replace.bio_counter.lock.owner (-1)
PARAM_VALUE 0 root->node->fs_info->dev_replace.bio_counter.lock.owner_cpu u32max
PARAM_VALUE 0 root->node->fs_info->dev_replace.replace_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->dev_replace.replace_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->dev_replace.replace_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 0 root->node->refs.refs.counter (-1073741824),0-s32max
PARAM_VALUE 0 root->nr_swapfiles.counter 0
PARAM_VALUE 0 root->objectid_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->objectid_mutex.first_waiter 0
PARAM_VALUE 0 root->objectid_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->ordered_extent_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->ordered_extent_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.next->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.next->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->refs.refs.counter 1
PARAM_VALUE 0 root->reloc_dirty_list.next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->root_item->uuid 0-255
PARAM_VALUE 0 root->root_key.type 132
PARAM_VALUE 0 root->root_list.next 4096-ptr_max
PARAM_VALUE 0 root->root_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->snapshot_force_cow.counter 0
PARAM_VALUE 0 root->swapped_blocks->blocks 4096-ptr_max
PARAM_VALUE 0 root->swapped_blocks.swapped 0
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
DATA_SOURCE 0 root r create_reloc_root
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->reloc_mutex

fs/btrfs/relocation.c btrfs_reloc_post_snapshot() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->block_rsv 0,4096-ptr_max
PARAM_VALUE 0 root->commit_root 4096-ptr_max
PARAM_VALUE 0 root->commit_root->refs.refs.counter (-1073741824),0-s32max
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_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->delalloc_mutex.first_waiter 0
PARAM_VALUE 0 root->delalloc_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.next->next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev->next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->delayed_nodes.xa_flags 0
PARAM_VALUE 0 root->delayed_nodes.xa_head 0
PARAM_VALUE 0 root->dirty_list.next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->fs_info 4096-ptr_max
PARAM_VALUE 0 root->inodes.xa_flags 0
PARAM_VALUE 0 root->inodes.xa_head 0
PARAM_VALUE 0 root->leak_list.next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->log_batch.counter 0
PARAM_VALUE 0 root->log_commit 4096-ptr_max
PARAM_VALUE 0 root->log_commit_wait 4096-ptr_max
PARAM_VALUE 0 root->log_ctxs 4096-ptr_max
PARAM_VALUE 0 root->log_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->log_mutex.first_waiter 0
PARAM_VALUE 0 root->log_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->log_mutex.osq.tail.counter 0
PARAM_VALUE 0 root->log_mutex.owner.counter 0
PARAM_VALUE 0 root->log_transid_committed (-1)
PARAM_VALUE 0 root->log_writer_wait.head.next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->log_writers.counter 0
PARAM_VALUE 0 root->node 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->dev_replace.bio_counter.lock.owner (-1)
PARAM_VALUE 0 root->node->fs_info->dev_replace.bio_counter.lock.owner_cpu u32max
PARAM_VALUE 0 root->node->fs_info->dev_replace.replace_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->dev_replace.replace_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->dev_replace.replace_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 root->node->fs_info->mapping_tree_lock.dep_map->name 0-255
PARAM_VALUE 0 root->node->refs.refs.counter (-1073741824),0-s32max
PARAM_VALUE 0 root->nr_swapfiles.counter 0
PARAM_VALUE 0 root->objectid_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->objectid_mutex.first_waiter 0
PARAM_VALUE 0 root->objectid_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->ordered_extent_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->ordered_extent_mutex.magic 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.next->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.next->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->refs.refs.counter 1
PARAM_VALUE 0 root->reloc_dirty_list.next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->root_item->uuid 0-255
PARAM_VALUE 0 root->root_key.type 132
PARAM_VALUE 0 root->root_list.next 4096-ptr_max
PARAM_VALUE 0 root->root_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->snapshot_force_cow.counter 0
PARAM_VALUE 0 root->swapped_blocks->blocks 4096-ptr_max
PARAM_VALUE 0 root->swapped_blocks.swapped 0
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
DATA_SOURCE 0 root r create_reloc_root

fs/btrfs/relocation.c btrfs_update_reloc_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 1-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &fs_info->cleaner_mutex

fs/btrfs/relocation.c create_reloc_inode() -> btrfs_grab_root()

Type Parameter Key Value

fs/btrfs/relocation.c find_reloc_root() -> btrfs_grab_root()

Type Parameter Key Value
BUF_SIZE 0 root 0,2888
BUF_SIZE 0 root 0,2888
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->cleaner_mutex
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->cleaner_mutex
TYPE_LOCK (struct btrfs_fs_info)->reclaim_bgs_lock

fs/btrfs/relocation.c insert_dirty_subvol() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max
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->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,4672,5297,4573560380487,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max
PARAM_VALUE 0 root->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max
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->node->fs_info->buffer_tree.xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 root->node->fs_info->eb_leak_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 root->node->lock.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PARAM_VALUE 0 root->node->refs_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 root->reloc_dirty_list.next 4096-ptr_max
PARAM_VALUE 0 root->root_key.objectid 0-18446744073709551607,18446744073709551609-u64max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
CAPPED_DATA 0 root 1
CAPPED_DATA 0 &root->reloc_dirty_list 1
DATA_SOURCE 0 root $2
PARAM_COMPARE 0 &root->reloc_dirty_list == $0->reloc_dirty_list.next
NOCHECK_CALL
HALF_LOCKED2 &cow->lock

fs/btrfs/relocation.c merge_reloc_roots() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->root_list.next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev 370228974458908672
CAPPED_DATA 0 root 1
CAPPED_DATA 0 &root->root_list 1
NOCHECK_CALL

fs/btrfs/relocation.c relocate_tree_block() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->node 4096-ptr_max
PARAM_VALUE 0 root->reloc_root->node 4096-ptr_max

fs/btrfs/relocation.c select_reloc_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->node 4096-ptr_max
PARAM_VALUE 0 root->reloc_root->node 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->cleaner_mutex
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &eb->lock
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->cleaner_mutex
TYPE_LOCK (struct btrfs_fs_info)->reclaim_bgs_lock

fs/btrfs/extent_map.c btrfs_extent_map_shrinker_worker() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD <- disables preempt
LOCK2 &fs_info->fs_roots_radix_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct btrfs_fs_info)->fs_roots_radix_lock

fs/btrfs/transaction.c btrfs_add_dead_root() -> btrfs_grab_root()

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->trans_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 root->root_list.next 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
CAPPED_DATA 0 &root->root_list 1
DATA_SOURCE 0 root $0
PARAM_COMPARE 0 &root->root_list == $0->root_list.next
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &fs_info->trans_lock
TYPE_LOCK (struct btrfs_fs_info)->trans_lock

fs/btrfs/disk-io.c btrfs_cleanup_fs_roots() -> btrfs_grab_root()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->fs_roots_radix_lock
TYPE_LOCK (struct btrfs_fs_info)->fs_roots_radix_lock

fs/btrfs/disk-io.c btrfs_destroy_all_delalloc_inodes() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->delalloc_root_lock
LOCK2 &fs_info->transaction_kthread_mutex
TYPE_LOCK (struct btrfs_fs_info)->delalloc_root_lock
TYPE_LOCK (struct btrfs_fs_info)->transaction_kthread_mutex

fs/btrfs/disk-io.c btrfs_drop_all_logs() -> btrfs_grab_root()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->fs_roots_radix_lock
LOCK2 &fs_info->transaction_kthread_mutex
TYPE_LOCK (struct btrfs_fs_info)->fs_roots_radix_lock
TYPE_LOCK (struct btrfs_fs_info)->transaction_kthread_mutex

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 0,4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 0,4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 0,4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
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->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_get_global_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 root->node->lock.first_waiter->type 0-1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->commit_root_sem

fs/btrfs/disk-io.c btrfs_init_btree_inode() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max

fs/btrfs/disk-io.c btrfs_insert_fs_root() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->delalloc_inodes.next->next 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_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->delalloc_root.next->next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev->next 4096-ptr_max
PARAM_VALUE 0 root->delalloc_root.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->dirty_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->leak_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->leak_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->log_batch.counter 0
PARAM_VALUE 0 root->log_commit 4096-ptr_max
PARAM_VALUE 0 root->log_commit_wait 4096-ptr_max
PARAM_VALUE 0 root->log_ctxs 4096-ptr_max
PARAM_VALUE 0 root->log_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->log_writer_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->log_writer_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->objectid_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->objectid_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 root->objectid_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 root->objectid_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 root->objectid_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 root->objectid_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 root->objectid_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 root->objectid_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 root->ordered_extent_mutex.dep_map->name 0-255
PARAM_VALUE 0 root->ordered_extents.next->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_extents.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.next->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev->next 4096-ptr_max
PARAM_VALUE 0 root->ordered_root.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 root->qgroup_flush_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->reloc_dirty_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->root_list.next->next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev->next 4096-ptr_max
PARAM_VALUE 0 root->root_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 root->swapped_blocks->blocks 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root->fs_info (-1),11312
DATA_SOURCE 0 root $1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 root->fs_info->nodesize
NO_OVERFLOW_SIMPLE 0 root->fs_info->sectorsize
LOCK2 &fs_info->fs_roots_radix_lock
TYPE_LOCK (struct btrfs_fs_info)->fs_roots_radix_lock

fs/btrfs/disk-io.c btrfs_lookup_fs_root() -> btrfs_grab_root()

Type Parameter Key Value
DATA_SOURCE 0 root r radix_tree_lookup
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->fs_roots_radix_lock
HALF_LOCKED2 &fs_info->commit_root_sem
TYPE_LOCK (struct btrfs_fs_info)->fs_roots_radix_lock

fs/btrfs/ioctl.c btrfs_ioctl_qgroup_assign() -> btrfs_grab_root()

Type Parameter Key Value
CAPABLE 0 21
LOCK2 &fs_info->qgroup_ioctl_lock
TYPE_LOCK (struct btrfs_fs_info)->qgroup_ioctl_lock

fs/btrfs/ioctl.c btrfs_ioctl_qgroup_create() -> btrfs_grab_root()

Type Parameter Key Value
CAPABLE 0 21
LOCK2 &fs_info->qgroup_ioctl_lock
TYPE_LOCK (struct btrfs_fs_info)->qgroup_ioctl_lock

fs/btrfs/ioctl.c btrfs_ioctl_qgroup_limit() -> btrfs_grab_root()

Type Parameter Key Value
CAPABLE 0 21
LOCK2 &fs_info->qgroup_ioctl_lock
TYPE_LOCK (struct btrfs_fs_info)->qgroup_ioctl_lock

fs/btrfs/ioctl.c search_ioctl() -> btrfs_grab_root()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
DATA_SOURCE 0 root $0
CAPABLE 0 21