Lines Matching refs:fs_devices

217 		em->bdev = fs_info->fs_devices->latest_bdev;  in btree_get_extent()
232 em->bdev = fs_info->fs_devices->latest_bdev; in btree_get_extent()
563 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in check_tree_block_fsid() local
568 while (fs_devices) { in check_tree_block_fsid()
569 if (!memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE)) { in check_tree_block_fsid()
573 fs_devices = fs_devices->seed; in check_tree_block_fsid()
1631 list_for_each_entry_rcu(device, &info->fs_devices->devices, dev_list) { in btrfs_congested_fn()
2179 struct btrfs_fs_devices *fs_devices) in btrfs_init_workqueues() argument
2206 min_t(u64, fs_devices->num_devices, in btrfs_init_workqueues()
2247 min_t(u64, fs_devices->num_devices, in btrfs_init_workqueues()
2268 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() argument
2276 if (fs_devices->rw_devices == 0) { in btrfs_replay_log()
2603 struct btrfs_fs_devices *fs_devices, in open_ctree() argument
2793 invalidate_bdev(fs_devices->latest_bdev); in open_ctree()
2798 bh = btrfs_read_dev_super(fs_devices->latest_bdev); in open_ctree()
2931 ret = btrfs_init_workqueues(fs_info, fs_devices); in open_ctree()
2988 btrfs_free_extra_devids(fs_devices, 0); in open_ctree()
2990 if (!fs_devices->latest_bdev) { in open_ctree()
3059 btrfs_free_extra_devids(fs_devices, 1); in open_ctree()
3061 ret = btrfs_sysfs_add_fsid(fs_devices, NULL); in open_ctree()
3068 ret = btrfs_sysfs_add_device(fs_devices); in open_ctree()
3111 !fs_info->fs_devices->rotating) { in open_ctree()
3123 ret = btrfsic_mount(fs_info, fs_devices, in open_ctree()
3144 ret = btrfs_replay_log(fs_info, fs_devices); in open_ctree()
3294 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in open_ctree()
3321 btrfs_close_devices(fs_info->fs_devices); in open_ctree()
3627 lockdep_assert_held(&info->fs_devices->device_list_mutex); in barrier_all_devices()
3629 head = &info->fs_devices->devices; in barrier_all_devices()
3729 mutex_lock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3730 head = &fs_info->fs_devices->devices; in write_all_supers()
3737 &fs_info->fs_devices->device_list_mutex); in write_all_supers()
3764 memcpy(dev_item->fsid, dev->fs_devices->fsid, BTRFS_FSID_SIZE); in write_all_supers()
3771 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3784 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3805 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3991 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in close_ctree()
4013 btrfsic_unmount(fs_info->fs_devices); in close_ctree()
4016 btrfs_close_devices(fs_info->fs_devices); in close_ctree()