Lines Matching refs:seed_devices
2444 struct btrfs_fs_devices *seed_devices; in btrfs_init_sprout() local
2454 seed_devices = alloc_fs_devices(NULL, NULL); in btrfs_init_sprout()
2455 if (IS_ERR(seed_devices)) in btrfs_init_sprout()
2456 return seed_devices; in btrfs_init_sprout()
2466 kfree(seed_devices); in btrfs_init_sprout()
2472 memcpy(seed_devices, fs_devices, sizeof(*seed_devices)); in btrfs_init_sprout()
2473 seed_devices->opened = 1; in btrfs_init_sprout()
2474 INIT_LIST_HEAD(&seed_devices->devices); in btrfs_init_sprout()
2475 INIT_LIST_HEAD(&seed_devices->alloc_list); in btrfs_init_sprout()
2476 mutex_init(&seed_devices->device_list_mutex); in btrfs_init_sprout()
2478 return seed_devices; in btrfs_init_sprout()
2486 struct btrfs_fs_devices *seed_devices) in btrfs_setup_sprout() argument
2513 list_splice_init_rcu(&fs_devices->devices, &seed_devices->devices, in btrfs_setup_sprout()
2515 list_for_each_entry(device, &seed_devices->devices, dev_list) in btrfs_setup_sprout()
2516 device->fs_devices = seed_devices; in btrfs_setup_sprout()
2523 list_add(&seed_devices->seed_list, &fs_devices->seed_list); in btrfs_setup_sprout()
2620 struct btrfs_fs_devices *seed_devices = NULL; in btrfs_init_new_device() local
2701 seed_devices = btrfs_init_sprout(fs_info); in btrfs_init_new_device()
2702 if (IS_ERR(seed_devices)) { in btrfs_init_new_device()
2703 ret = PTR_ERR(seed_devices); in btrfs_init_new_device()
2711 btrfs_setup_sprout(fs_info, seed_devices); in btrfs_init_new_device()