Lines Matching refs:next_device
1993 struct btrfs_device *next_device; in btrfs_find_next_active_device() local
1995 list_for_each_entry(next_device, &fs_devs->devices, dev_list) { in btrfs_find_next_active_device()
1996 if (next_device != device && in btrfs_find_next_active_device()
1997 !test_bit(BTRFS_DEV_STATE_MISSING, &next_device->dev_state) in btrfs_find_next_active_device()
1998 && next_device->bdev) in btrfs_find_next_active_device()
1999 return next_device; in btrfs_find_next_active_device()
2012 struct btrfs_device *next_device) in btrfs_assign_next_active_device() argument
2016 if (!next_device) in btrfs_assign_next_active_device()
2017 next_device = btrfs_find_next_active_device(fs_info->fs_devices, in btrfs_assign_next_active_device()
2019 ASSERT(next_device); in btrfs_assign_next_active_device()
2023 fs_info->sb->s_bdev = next_device->bdev; in btrfs_assign_next_active_device()
2026 fs_info->fs_devices->latest_dev = next_device; in btrfs_assign_next_active_device()