Lines Matching refs:device
378 struct btrfs_device *device; in btrfs_ioctl_fitrim() local
390 list_for_each_entry_rcu(device, &fs_info->fs_devices->devices, in btrfs_ioctl_fitrim()
392 if (!device->bdev) in btrfs_ioctl_fitrim()
394 q = bdev_get_queue(device->bdev); in btrfs_ioctl_fitrim()
1494 struct btrfs_device *device = NULL; in btrfs_ioctl_resize() local
1539 device = btrfs_find_device(root->fs_info, devid, NULL, NULL); in btrfs_ioctl_resize()
1540 if (!device) { in btrfs_ioctl_resize()
1547 if (!device->writeable) { in btrfs_ioctl_resize()
1556 new_size = device->bdev->bd_inode->i_size; in btrfs_ioctl_resize()
1572 if (device->is_tgtdev_for_dev_replace) { in btrfs_ioctl_resize()
1577 old_size = btrfs_device_get_total_bytes(device); in btrfs_ioctl_resize()
1597 if (new_size > device->bdev->bd_inode->i_size) { in btrfs_ioctl_resize()
1606 rcu_str_deref(device->name), new_size); in btrfs_ioctl_resize()
1614 ret = btrfs_grow_device(trans, device, new_size); in btrfs_ioctl_resize()
1617 ret = btrfs_shrink_device(device, new_size); in btrfs_ioctl_resize()
2789 struct btrfs_device *device; in btrfs_ioctl_fs_info() local
2801 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_ioctl_fs_info()
2802 if (device->devid > fi_args->max_id) in btrfs_ioctl_fs_info()
2803 fi_args->max_id = device->devid; in btrfs_ioctl_fs_info()