Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/btrfs/xattr.c btrfs_xattr_handler_set() -> btrfs_root_readonly()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &unused->d_inode->i_rwsem

fs/btrfs/xattr.c btrfs_xattr_handler_set_security() -> btrfs_root_readonly()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &unused->d_inode->i_rwsem

fs/btrfs/inode.c btrfs_permission() -> btrfs_root_readonly()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &cgroup_mutex

fs/btrfs/inode.c btrfs_setattr() -> btrfs_root_readonly()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock

fs/btrfs/inode.c btrfs_update_time() -> btrfs_root_readonly()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

fs/btrfs/acl.c btrfs_set_acl() -> btrfs_root_readonly()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dentry->d_lockref.lock

fs/btrfs/ioctl.c _btrfs_ioctl_set_received_subvol() -> btrfs_root_readonly()

Type Parameter Key Value
LOCK2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->subvol_sem

fs/btrfs/ioctl.c btrfs_fileattr_set() -> btrfs_root_readonly()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/btrfs/ioctl.c btrfs_ioctl_defrag() -> btrfs_root_readonly()

Type Parameter Key Value

fs/btrfs/ioctl.c btrfs_ioctl_subvol_getflags() -> btrfs_root_readonly()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
LOCK2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->subvol_sem

fs/btrfs/ioctl.c btrfs_ioctl_subvol_setflags() -> btrfs_root_readonly()

Type Parameter Key Value
LOCK2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->subvol_sem

fs/btrfs/reflink.c btrfs_remap_file_range_prep() -> btrfs_root_readonly()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &src_inode->vfs_inode.i_rwsem