Lines Matching refs:next_device
2003 struct btrfs_device *next_device; in btrfs_find_next_active_device() local
2005 list_for_each_entry(next_device, &fs_devs->devices, dev_list) { in btrfs_find_next_active_device()
2006 if (next_device != device && in btrfs_find_next_active_device()
2007 !test_bit(BTRFS_DEV_STATE_MISSING, &next_device->dev_state) in btrfs_find_next_active_device()
2008 && next_device->bdev) in btrfs_find_next_active_device()
2009 return next_device; in btrfs_find_next_active_device()
2022 struct btrfs_device *next_device) in btrfs_assign_next_active_device() argument
2026 if (!next_device) in btrfs_assign_next_active_device()
2027 next_device = btrfs_find_next_active_device(fs_info->fs_devices, in btrfs_assign_next_active_device()
2029 ASSERT(next_device); in btrfs_assign_next_active_device()
2033 fs_info->sb->s_bdev = next_device->bdev; in btrfs_assign_next_active_device()
2036 fs_info->fs_devices->latest_bdev = next_device->bdev; in btrfs_assign_next_active_device()