Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/dev-replace.c btrfs_dev_replace_kthread() -> btrfs_scrub_dev()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.srcdev 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.tgtdev 0,4096-ptr_max
PARAM_VALUE 4 progress 4096-ptr_max
PARAM_VALUE 5 readonly 0
PARAM_VALUE 6 is_dev_replace 1
BUF_SIZE 0 fs_info 128
BUF_SIZE 0 fs_info 128
DATA_SOURCE 0 fs_info $0
UNITS 1 devid unit_byte
UNITS 2 start unit_byte

fs/btrfs/dev-replace.c btrfs_dev_replace_start() -> btrfs_scrub_dev()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.cont_reading_from_srcdev_mode 0-1
PARAM_VALUE 0 fs_info->dev_replace.cursor_left 0
PARAM_VALUE 0 fs_info->dev_replace.cursor_right 0
PARAM_VALUE 0 fs_info->dev_replace.is_valid 1
PARAM_VALUE 0 fs_info->dev_replace.item_needs_writeback 1
PARAM_VALUE 0 fs_info->dev_replace.replace_state 1
PARAM_VALUE 0 fs_info->dev_replace.rwsem.dep_map->name 0-255
PARAM_VALUE 0 fs_info->dev_replace.rwsem.first_waiter->handoff_set 1
PARAM_VALUE 0 fs_info->dev_replace.rwsem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 fs_info->dev_replace.rwsem.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 fs_info->dev_replace.rwsem.first_waiter->type 0-1
PARAM_VALUE 0 fs_info->dev_replace.rwsem.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_info->dev_replace.rwsem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->dev_replace.rwsem.wait_lock.owner (-1)
PARAM_VALUE 0 fs_info->dev_replace.rwsem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 fs_info->dev_replace.srcdev 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.srcdev->bdev 0,4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.srcdev->fs_devices 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.tgtdev 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.tgtdev->alloc_state.owner 10
PARAM_VALUE 0 fs_info->dev_replace.tgtdev->dev_stats_valid 1
PARAM_VALUE 0 fs_info->dev_replace.tgtdev->devt 1-u32max
PARAM_VALUE 0 fs_info->dev_replace.tgtdev->fs_info 4096-ptr_max
PARAM_VALUE 0 fs_info->dev_replace.tgtdev->generation 0
PARAM_VALUE 0 fs_info->dev_root->fs_info->commit_root_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 fs_info->dev_root->fs_info->commit_root_sem.first_waiter->type 0-1
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->exclusive_operation 5
PARAM_VALUE 0 fs_info->fs_devices 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->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->ordered_operations_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_info->ordered_operations_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 fs_info->ordered_operations_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->ordered_operations_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 fs_info->ordered_operations_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 fs_info->ordered_operations_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 fs_info->ordered_operations_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_info->ordered_root_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->ordered_roots.prev->next->next 4096-ptr_max
PARAM_VALUE 0 fs_info->sb 4096-ptr_max
PARAM_VALUE 0 fs_info->super_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 fs_info->swapfile_pins_lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 start 0
PARAM_VALUE 4 progress 4096-ptr_max
PARAM_VALUE 5 readonly 0
PARAM_VALUE 6 is_dev_replace 1
CAPPED_DATA 0 fs_info->sb 1
DATA_SOURCE 0 fs_info $0
CAPABLE 0 21
UNITS 0 fs_info unit_byte
UNITS 1 devid unit_byte

fs/btrfs/ioctl.c btrfs_ioctl_scrub() -> btrfs_scrub_dev()

Type Parameter Key Value
PARAM_VALUE 0 fs_info 4096-ptr_max
PARAM_VALUE 4 progress 4096-ptr_max
PARAM_VALUE 5 readonly 0
PARAM_VALUE 6 is_dev_replace 0
CAPABLE 0 21
USER_DATA 1 devid 0-u64max
USER_DATA 2 start 0-u64max
USER_DATA 3 end 0-u64max
USER_DATA 5 readonly 0[c]
UNITS 0 fs_info unit_byte