• Home
  • Raw
  • Download

Lines Matching refs:device

1030 	struct btrfs_device *device = NULL;  in btrfs_parse_device_options()  local
1060 device = btrfs_scan_one_device(device_name, flags, in btrfs_parse_device_options()
1063 if (IS_ERR(device)) { in btrfs_parse_device_options()
1064 error = PTR_ERR(device); in btrfs_parse_device_options()
1614 struct btrfs_device *device = NULL; in btrfs_mount_root() local
1659 device = btrfs_scan_one_device(device_name, mode, fs_type); in btrfs_mount_root()
1660 if (IS_ERR(device)) { in btrfs_mount_root()
1662 error = PTR_ERR(device); in btrfs_mount_root()
1666 fs_devices = device->fs_devices; in btrfs_mount_root()
2060 struct btrfs_device *device; in btrfs_calc_avail_data_space() local
2107 list_for_each_entry_rcu(device, &fs_devices->devices, dev_list) { in btrfs_calc_avail_data_space()
2109 &device->dev_state) || in btrfs_calc_avail_data_space()
2110 !device->bdev || in btrfs_calc_avail_data_space()
2111 test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state)) in btrfs_calc_avail_data_space()
2117 avail_space = device->total_bytes - device->bytes_used; in btrfs_calc_avail_data_space()
2135 devices_info[i].dev = device; in btrfs_calc_avail_data_space()
2334 struct btrfs_device *device = NULL; in btrfs_control_ioctl() local
2348 device = btrfs_scan_one_device(vol->name, FMODE_READ, in btrfs_control_ioctl()
2350 ret = PTR_ERR_OR_ZERO(device); in btrfs_control_ioctl()
2358 device = btrfs_scan_one_device(vol->name, FMODE_READ, in btrfs_control_ioctl()
2360 if (IS_ERR(device)) { in btrfs_control_ioctl()
2362 ret = PTR_ERR(device); in btrfs_control_ioctl()
2365 ret = !(device->fs_devices->num_devices == in btrfs_control_ioctl()
2366 device->fs_devices->total_devices); in btrfs_control_ioctl()