Lines Matching refs:num_devices
574 fs_devices->num_devices--; in btrfs_free_stale_devices()
582 if (fs_devices->num_devices == 0) { in btrfs_free_stale_devices()
876 fs_devices->num_devices++; in device_list_add()
1046 fs_devices->num_devices++; in clone_fs_devices()
1091 fs_devices->num_devices--; in __btrfs_free_extra_devids()
1215 if (fs_devices->num_devices == 1) { in btrfs_close_devices()
1248 fs_devices->num_devices--; in open_fs_devices()
1982 u64 num_devices) in btrfs_check_raid_min_devices() argument
2000 if (num_devices < btrfs_raid_array[i].devs_min) in btrfs_check_raid_min_devices()
2052 u64 num_devices = fs_info->fs_devices->num_devices; in btrfs_num_devices() local
2056 ASSERT(num_devices > 1); in btrfs_num_devices()
2057 num_devices--; in btrfs_num_devices()
2061 return num_devices; in btrfs_num_devices()
2117 u64 num_devices; in btrfs_rm_device() local
2130 num_devices = btrfs_num_devices(fs_info); in btrfs_rm_device()
2132 ret = btrfs_check_raid_min_devices(fs_info, num_devices - 1); in btrfs_rm_device()
2209 cur_devices->num_devices--; in btrfs_rm_device()
2226 num_devices = btrfs_super_num_devices(fs_info->super_copy) - 1; in btrfs_rm_device()
2227 btrfs_set_super_num_devices(fs_info->super_copy, num_devices); in btrfs_rm_device()
2261 if (cur_devices->num_devices == 0) { in btrfs_rm_device()
2299 fs_devices->num_devices--; in btrfs_rm_dev_replace_remove_srcdev()
2321 if (!fs_devices->num_devices) { in btrfs_rm_dev_replace_free_srcdev()
2348 fs_devices->num_devices--; in btrfs_destroy_dev_replace_tgtdev()
2540 fs_devices->num_devices = 0; in btrfs_setup_sprout()
2750 fs_devices->num_devices++; in btrfs_init_new_device()
2858 fs_info->fs_devices->num_devices--; in btrfs_init_new_device()
4290 u64 num_devices; in btrfs_balance() local
4327 num_devices = fs_info->fs_devices->rw_devices; in btrfs_balance()
4336 if (num_devices >= btrfs_raid_array[i].devs_min) in btrfs_balance()
7046 fs_devices->num_devices++; in add_missing_dev()
7463 device->fs_devices->num_devices--; in read_one_dev()
7464 fs_devices->num_devices++; in read_one_dev()