Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/btrfs/dev-replace.c btrfs_init_dev_replace_tgtdev() -> btrfs_release_device_allow_freeze()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev_file | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->__f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->__f_path.mnt | 0 |
| PARAM_VALUE | 0 | bdev_file->f_cred | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_ep | 0 |
| PARAM_VALUE | 0 | bdev_file->f_flags | 0,32768-u32max |
| PARAM_VALUE | 0 | bdev_file->f_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_iocb_flags | 0,2,16,18,131072,131074,131088,131090 |
| PARAM_VALUE | 0 | bdev_file->f_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_mapping->invalidate_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_mapping->invalidate_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mode | 0,64-u32max |
| PARAM_VALUE | 0 | bdev_file->f_op | 8212791493360840704 |
| PARAM_VALUE | 0 | bdev_file->f_owner | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.async_size | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.mmap_miss | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.order | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.prev_pos | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.ra_pages | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.size | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.start | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ref.refcnt.counter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_sb_err | 0 |
| PARAM_VALUE | 0 | bdev_file->f_security | 0 |
| PARAM_VALUE | 0 | bdev_file->private_data | 4096-ptr_max |
| CAPPED_DATA | 0 | bdev_file | 1 |
| DATA_SOURCE | 0 | bdev_file | r btrfs_open_device_deny_freeze |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | bdev_file->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | bdev_file->f_inode->i_size |
fs/btrfs/volumes.c btrfs_close_bdev() -> btrfs_release_device_allow_freeze()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &uuid_mutex |
fs/btrfs/volumes.c btrfs_init_new_device() -> btrfs_release_device_allow_freeze()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev_file | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->__f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->__f_path.mnt | 0 |
| PARAM_VALUE | 0 | bdev_file->f_cred | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | bdev_file->f_ep | 0 |
| PARAM_VALUE | 0 | bdev_file->f_flags | 0,32768-u32max |
| PARAM_VALUE | 0 | bdev_file->f_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_iocb_flags | 0,2,16,18,131072,131074,131088,131090 |
| PARAM_VALUE | 0 | bdev_file->f_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_mapping->invalidate_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_mapping->invalidate_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mapping->host->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bdev_file->f_mode | 0,64-u32max |
| PARAM_VALUE | 0 | bdev_file->f_op | 8212791493360840704 |
| PARAM_VALUE | 0 | bdev_file->f_owner | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_pos_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.async_size | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.mmap_miss | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.order | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.prev_pos | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.ra_pages | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.size | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ra.start | 0 |
| PARAM_VALUE | 0 | bdev_file->f_ref.refcnt.counter | 0 |
| PARAM_VALUE | 0 | bdev_file->f_sb_err | 0 |
| PARAM_VALUE | 0 | bdev_file->f_security | 0 |
| PARAM_VALUE | 0 | bdev_file->private_data | 4096-ptr_max |
| CAPPED_DATA | 0 | bdev_file | 1 |
| DATA_SOURCE | 0 | bdev_file | r btrfs_open_device_deny_freeze |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | bdev_file->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | bdev_file->f_inode->i_size | |
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | global &uuid_mutex |
fs/btrfs/ioctl.c btrfs_ioctl_rm_dev() -> btrfs_release_device_allow_freeze()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev_file | 1-u64max |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL |
fs/btrfs/ioctl.c btrfs_ioctl_rm_dev_v2() -> btrfs_release_device_allow_freeze()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev_file | 1-u64max |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL |