Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/btrfs/relocation.c __add_tree_block() -> rb_simple_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 1 | bytenr | 1 |
| CAPPED_DATA | 1 | bytenr | 1 |
| DATA_SOURCE | 0 | root | $3 |
| DATA_SOURCE | 1 | bytenr | $1 |
| UNITS | 1 | bytenr | unit_byte |
fs/btrfs/relocation.c __del_reloc_root() -> rb_simple_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | bytenr | unit_byte |
| LOCK2 | &rc->reloc_root_tree.lock | ||
| TYPE_LOCK | (struct mapping_tree)->lock |
fs/btrfs/relocation.c __update_reloc_root() -> rb_simple_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | bytenr | unit_byte |
| LOCK2 | &rc->reloc_root_tree.lock | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| TYPE_LOCK | (struct mapping_tree)->lock |
fs/btrfs/relocation.c find_reloc_root() -> rb_simple_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| DATA_SOURCE | 1 | bytenr | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | bytenr | unit_byte |
| LOCK2 | &fs_info->cleaner_mutex | ||
| LOCK2 | &rc->reloc_root_tree.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 | ||
| TYPE_LOCK | (struct mapping_tree)->lock |
fs/btrfs/backref.c handle_direct_tree_backref() -> rb_simple_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | bytenr | unit_byte |
| 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 handle_indirect_tree_backref() -> rb_simple_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | bytenr | unit_byte |
| 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 |