Lines Matching refs:fs_devices
473 ASSERT(memcmp_extent_buffer(eb, fs_info->fs_devices->metadata_uuid, in csum_dirty_buffer()
500 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in check_tree_block_fsid() local
512 metadata_uuid = fs_devices->metadata_uuid; in check_tree_block_fsid()
514 metadata_uuid = fs_devices->fsid; in check_tree_block_fsid()
519 list_for_each_entry(seed_devs, &fs_devices->seed_list, seed_list) in check_tree_block_fsid()
2161 struct btrfs_fs_devices *fs_devices) in btrfs_init_workqueues() argument
2253 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() argument
2261 if (fs_devices->rw_devices == 0) { in btrfs_replay_log()
2479 if (memcmp(fs_info->fs_devices->fsid, fs_info->super_copy->fsid, in validate_super()
2483 fs_info->super_copy->fsid, fs_info->fs_devices->fsid); in validate_super()
2488 memcmp(fs_info->fs_devices->metadata_uuid, in validate_super()
2493 fs_info->fs_devices->metadata_uuid); in validate_super()
2497 if (memcmp(fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid, in validate_super()
2501 fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid); in validate_super()
2903 int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices, in open_ctree() argument
2947 invalidate_bdev(fs_devices->latest_bdev); in open_ctree()
2952 disk_super = btrfs_read_dev_super(fs_devices->latest_bdev); in open_ctree()
3122 ret = btrfs_init_workqueues(fs_info, fs_devices); in open_ctree()
3133 memcpy(&sb->s_uuid, fs_info->fs_devices->fsid, BTRFS_FSID_SIZE); in open_ctree()
3174 btrfs_free_extra_devids(fs_devices, 0); in open_ctree()
3176 if (!fs_devices->latest_bdev) { in open_ctree()
3222 btrfs_free_extra_devids(fs_devices, 1); in open_ctree()
3224 ret = btrfs_sysfs_add_fsid(fs_devices); in open_ctree()
3249 if (!sb_rdonly(sb) && fs_info->fs_devices->missing_devices && in open_ctree()
3268 !fs_info->fs_devices->rotating) { in open_ctree()
3280 ret = btrfsic_mount(fs_info, fs_devices, in open_ctree()
3302 ret = btrfs_replay_log(fs_info, fs_devices); in open_ctree()
3448 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in open_ctree()
3467 btrfs_close_devices(fs_info->fs_devices); in open_ctree()
3781 lockdep_assert_held(&info->fs_devices->device_list_mutex); in barrier_all_devices()
3783 head = &info->fs_devices->devices; in barrier_all_devices()
3883 mutex_lock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3884 head = &fs_info->fs_devices->devices; in write_all_supers()
3891 &fs_info->fs_devices->device_list_mutex); in write_all_supers()
3918 memcpy(dev_item->fsid, dev->fs_devices->metadata_uuid, in write_all_supers()
3926 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3939 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
3960 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4192 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in close_ctree()
4220 btrfsic_unmount(fs_info->fs_devices); in close_ctree()
4224 btrfs_close_devices(fs_info->fs_devices); in close_ctree()