Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/btrfs/volumes.c __btrfs_balance() -> btrfs_relocate_chunk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->balance_cancel_req.counter | 0 |
| PARAM_VALUE | 0 | fs_info->balance_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->balance_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->balance_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->balance_pause_req.counter | 0 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | fs_info->scrub_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->scrub_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->scrub_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 2 | verbose | 1 |
| BUF_SIZE | 0 | fs_info | (-1),128 |
| BUF_SIZE | 0 | fs_info | (-1),128 |
| BUF_SIZE | 0 | fs_info->balance_ctl | (-1),440 |
| CAPPED_DATA | 0 | &fs_info->reclaim_bgs_lock | 1 |
| DATA_SOURCE | 0 | fs_info | $0 |
| USER_DATA | 0 | fs_info->balance_ctl->data.devid | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.flags | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.limit | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.limit_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->data.limit_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->data.pend | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.profiles | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.pstart | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.stripes_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->data.stripes_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->data.target | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.usage | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.usage_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->data.usage_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->data.vend | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->data.vstart | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->flags | 0-2046 |
| USER_DATA | 0 | fs_info->balance_ctl->meta.devid | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.flags | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.limit | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.limit_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.limit_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.pend | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.profiles | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.pstart | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.stripes_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.stripes_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.target | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.usage | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.usage_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.usage_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.vend | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->meta.vstart | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.devid | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.flags | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.limit | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.limit_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.limit_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.pend | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.profiles | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.pstart | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.stripes_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.stripes_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.target | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.usage | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.usage_max | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.usage_min | 0-u32max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.vend | 0-u64max |
| USER_DATA | 0 | fs_info->balance_ctl->sys.vstart | 0-u64max |
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | chunk_offset | unit_byte |
| LOCK2 | 0 | &fs_info->reclaim_bgs_lock | |
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |
fs/btrfs/volumes.c btrfs_relocate_sys_chunks() -> btrfs_relocate_chunk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->dev_root->fs_info->delayed_iput_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->dev_root->fs_info->flush_workers->pending.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->dev_root->fs_info->qgroup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->dev_root->node->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fs_info->dev_root->node->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->dev_root->qgroup_meta_rsv_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->fs_devices->alloc_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->alloc_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->alloc_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->fs_devices->device_list_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->devices.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->fs_info | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->fsid_kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->fsid_kobj.release.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->fsid_kobj.sd->attr.notify_next | 0,426918848001064960 |
| PARAM_VALUE | 0 | fs_info->fs_devices->latest_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->latest_dev->fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->latest_dev->fs_info->fs_devices | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->latest_dev->fs_info->sb | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->latest_dev->fs_info->sb->s_bdev | 1-u64max |
| PARAM_VALUE | 0 | fs_info->fs_devices->missing_devices | 0 |
| PARAM_VALUE | 0 | fs_info->fs_devices->per_profile_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->fs_devices->seed_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->seed_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->seed_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->seeding | 0 |
| PARAM_VALUE | 0 | fs_info->fs_devices->temp_fsid | 0 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | fs_info->super_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *fs_info->fs_devices->fsid | 0-255 |
| PARAM_VALUE | 0 | *fs_info->fs_devices->metadata_uuid | 0-255 |
| PARAM_VALUE | 0 | *fs_info->super_copy->fsid | 0-255 |
| PARAM_VALUE | 2 | verbose | 1 |
| CAPPED_DATA | 0 | &fs_info->reclaim_bgs_lock | 1 |
| DATA_SOURCE | 0 | fs_info | $0 |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | chunk_offset | unit_byte |
| LOCK2 | 0 | &fs_info->reclaim_bgs_lock | |
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |
fs/btrfs/volumes.c btrfs_shrink_device() -> btrfs_relocate_chunk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->block_group_cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | fs_info->chunk_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->dev_root->fs_info->qgroup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->dev_root->qgroup_meta_rsv_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->fs_devices->per_profile_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | verbose | 1 |
| CAPPED_DATA | 0 | &fs_info->chunk_mutex | 1 |
| CAPPED_DATA | 0 | &fs_info->reclaim_bgs_lock | 1 |
| CAPPED_DATA | 1 | chunk_offset | 1 |
| CAPPED_DATA | 1 | chunk_offset | 1 |
| DATA_SOURCE | 1 | chunk_offset | r btrfs_dev_extent_chunk_offset |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | fs_info | unit_byte |
| LOCK2 | 0 | &fs_info->reclaim_bgs_lock | |
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |
fs/btrfs/volumes.c relocating_repair_kthread() -> btrfs_relocate_chunk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->block_group_cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->exclusive_operation | 2 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | fs_info->reclaim_bgs_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | fs_info->sb | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->super_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | verbose | 1 |
| CAPPED_DATA | 0 | &fs_info->reclaim_bgs_lock | 1 |
| CAPPED_DATA | 1 | chunk_offset | 1 |
| CAPPED_DATA | 1 | chunk_offset | 1 |
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | chunk_offset | unit_byte |
| LOCK2 | 0 | &fs_info->reclaim_bgs_lock | |
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |
fs/btrfs/block-group.c btrfs_reclaim_block_group() -> btrfs_relocate_chunk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 2 | verbose | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | fs_info | unit_byte |
| UNITS | 1 | chunk_offset | unit_byte |
| LOCK2 | &fs_info->reclaim_bgs_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |