Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/relocation.c __add_reloc_root() -> rb_simple_insert()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 simple_node 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &rc->reloc_root_tree.lock
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &fs_info->reloc_mutex
TYPE_LOCK (struct mapping_tree)->lock

fs/btrfs/relocation.c __update_reloc_root() -> rb_simple_insert()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
PARAM_VALUE 1 simple_node 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &rc->reloc_root_tree.lock
HALF_LOCKED2 &fs_info->cleaner_mutex
TYPE_LOCK (struct mapping_tree)->lock

fs/btrfs/relocation.c add_tree_block() -> rb_simple_insert()

Type Parameter Key Value
PARAM_VALUE 0 root 7069674365165301760
PARAM_VALUE 0 root->rb_node 0,4096-ptr_max
PARAM_VALUE 1 simple_node 4096-ptr_max
DATA_SOURCE 0 root $3
BIT_INFO 0 *root 0x0,0x7fffffffffffffff
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/backref.c btrfs_backref_finish_upper_links() -> rb_simple_insert()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 1 simple_node 4096-ptr_max
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/backref.c btrfs_backref_finish_upper_links() -> rb_simple_insert()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
PARAM_VALUE 1 simple_node 4096-ptr_max
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