Lines Matching refs:next_device
1818 struct btrfs_device *next_device; in btrfs_find_next_active_device() local
1820 list_for_each_entry(next_device, &fs_devs->devices, dev_list) { in btrfs_find_next_active_device()
1821 if (next_device != device && in btrfs_find_next_active_device()
1822 !test_bit(BTRFS_DEV_STATE_MISSING, &next_device->dev_state) in btrfs_find_next_active_device()
1823 && next_device->bdev) in btrfs_find_next_active_device()
1824 return next_device; in btrfs_find_next_active_device()
1840 struct btrfs_device *next_device; in btrfs_assign_next_active_device() local
1843 next_device = this_dev; in btrfs_assign_next_active_device()
1845 next_device = btrfs_find_next_active_device(fs_info->fs_devices, in btrfs_assign_next_active_device()
1847 ASSERT(next_device); in btrfs_assign_next_active_device()
1851 fs_info->sb->s_bdev = next_device->bdev; in btrfs_assign_next_active_device()
1854 fs_info->fs_devices->latest_bdev = next_device->bdev; in btrfs_assign_next_active_device()