Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/btrfs/dev-replace.c btrfs_init_dev_replace() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 6447448236997279744
PARAM_VALUE 1 args->devid 0
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0

fs/btrfs/dev-replace.c btrfs_init_dev_replace() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 6447448236997279744
PARAM_VALUE 1 args->devid 0
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0

fs/btrfs/dev-replace.c btrfs_init_dev_replace() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 6447448236997279744
PARAM_VALUE 1 args->devid 0
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0

fs/btrfs/dev-replace.c btrfs_init_dev_replace() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices 4096-ptr_max
PARAM_VALUE 1 args 6447448236997279744
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0

fs/btrfs/volumes.c btrfs_find_device_by_devspec() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 1336047332766924800
PARAM_VALUE 1 args->devid 1-u64max
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
CAPABLE 0 21
USER_DATA 1 args->devid 1-u64max

fs/btrfs/volumes.c btrfs_find_device_by_devspec() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 1336047332766924800
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0,4096-ptr_max
PARAM_VALUE 1 args->uuid 0,4096-ptr_max
CAPABLE 0 21

fs/btrfs/volumes.c btrfs_finish_sprout() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices 4096-ptr_max
PARAM_VALUE 1 args 3446768660082692096
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 4484098792866365440
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 4522064688503443456
CAPABLE 0 21
LOCK2 &sb->s_umount
LOCK2 global &uuid_mutex
TYPE_LOCK (struct super_block)->s_umount

fs/btrfs/volumes.c btrfs_get_dev_stats() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices->device_list_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 fs_devices->device_list_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 1 args 6477557682498203648
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
USER_DATA 1 args->devid 0-u64max
LOCK2 &fs_devices->device_list_mutex
TYPE_LOCK (struct btrfs_fs_devices)->device_list_mutex

fs/btrfs/volumes.c btrfs_rm_device() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices 4096-ptr_max
PARAM_VALUE 1 args 5612861057586671616,7674686255697252352
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0,4096-ptr_max
PARAM_VALUE 1 args->uuid 0,4096-ptr_max
DATA_SOURCE 1 args $1
CAPABLE 0 21
USER_DATA 1 args->devid 0-u64max

fs/btrfs/volumes.c device_list_add() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices 4096-ptr_max
PARAM_VALUE 0 fs_devices->device_list_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 fs_devices->device_list_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 1 args 2305537480315375616
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
CAPPED_DATA 0 &fs_devices->device_list_mutex 1
DATA_SOURCE 0 fs_devices r find_fsid_by_device
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &uuid_mutex
LOCK2 0 &fs_devices->device_list_mutex
TYPE_LOCK (struct btrfs_fs_devices)->device_list_mutex

fs/btrfs/volumes.c read_one_chunk() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 8759500411089477632
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 7217603942211727360
HALF_LOCKED2 global &uuid_mutex

fs/btrfs/volumes.c read_one_dev() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices 4096-ptr_max
PARAM_VALUE 1 args 2974521613875036160
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 7438179502520422400
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 6962239839000072192
LOCK2 global &uuid_mutex

fs/btrfs/volumes.c verify_one_dev_extent() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 1437957928749436928
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0

fs/btrfs/scrub.c btrfs_scrub_dev() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices->device_list_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 fs_devices->device_list_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 1 args 3843903702846119936
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
CAPPED_DATA 0 &fs_devices->device_list_mutex 1
USER_DATA 1 args->devid 0-u64max
LOCK2 0 &fs_devices->device_list_mutex
TYPE_LOCK (struct btrfs_fs_devices)->device_list_mutex

fs/btrfs/scrub.c btrfs_scrub_progress() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices->device_list_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 fs_devices->device_list_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 1 args 7490886183692365824
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
CAPPED_DATA 0 &fs_devices->device_list_mutex 1
CAPABLE 0 21
USER_DATA 1 args->devid 0-u64max
LOCK2 0 &fs_devices->device_list_mutex
TYPE_LOCK (struct btrfs_fs_devices)->device_list_mutex

fs/btrfs/sysfs.c btrfs_read_policy_store() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices 4096-ptr_max
PARAM_VALUE 1 args 1917237270883319808
PARAM_VALUE 1 args->devid 0-18446744073709551614
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
DATA_SOURCE 0 fs_devices r to_fs_devs
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 args->devid 0-18446744073709551614
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

fs/btrfs/ioctl.c btrfs_ioctl_dev_info() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 2115442923153141760
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
USER_DATA 1 args->devid 0-u64max
USER_PTR 1 args->uuid
LOCK2 rcu_read

fs/btrfs/ioctl.c btrfs_ioctl_resize() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 1 args 2014136004126789632
PARAM_VALUE 1 args->devid 1-u64max
PARAM_VALUE 1 args->devt 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
CAPABLE 0 21
USER_DATA 1 args->devid 1-u64max
NO_OVERFLOW_SIMPLE 1 args->devid

fs/btrfs/super.c btrfs_remove_bdev() -> btrfs_find_device()

Type Parameter Key Value
PARAM_VALUE 0 fs_devices->device_list_mutex.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 fs_devices->device_list_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 fs_devices->device_list_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 1 args 6333684606184734720
PARAM_VALUE 1 args->devid 0
PARAM_VALUE 1 args->fsid 0
PARAM_VALUE 1 args->missing 0
PARAM_VALUE 1 args->uuid 0
CAPPED_DATA 0 &fs_devices->device_list_mutex 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sb->s_umount
LOCK2 0 &fs_devices->device_list_mutex
HALF_LOCKED2 global &floppy_mutex
TYPE_LOCK (struct btrfs_fs_devices)->device_list_mutex
TYPE_LOCK (struct super_block)->s_umount