Lines Matching refs:fs_devices
314 ASSERT(memcmp_extent_buffer(eb, fs_info->fs_devices->metadata_uuid, in csum_one_extent_buffer()
438 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in check_tree_block_fsid() local
450 metadata_uuid = fs_devices->metadata_uuid; in check_tree_block_fsid()
452 metadata_uuid = fs_devices->fsid; in check_tree_block_fsid()
457 list_for_each_entry(seed_devs, &fs_devices->seed_list, seed_list) in check_tree_block_fsid()
2357 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() argument
2365 if (fs_devices->rw_devices == 0) { in btrfs_replay_log()
2704 if (memcmp(fs_info->fs_devices->fsid, fs_info->super_copy->fsid, in btrfs_validate_super()
2708 fs_info->super_copy->fsid, fs_info->fs_devices->fsid); in btrfs_validate_super()
2713 memcmp(fs_info->fs_devices->metadata_uuid, in btrfs_validate_super()
2718 fs_info->fs_devices->metadata_uuid); in btrfs_validate_super()
2734 if (memcmp(fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid, in btrfs_validate_super()
2738 fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid); in btrfs_validate_super()
3411 int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices, in open_ctree() argument
3454 invalidate_bdev(fs_devices->latest_dev->bdev); in open_ctree()
3459 disk_super = btrfs_read_dev_super(fs_devices->latest_dev->bdev); in open_ctree()
3601 memcpy(&sb->s_uuid, fs_info->fs_devices->fsid, BTRFS_FSID_SIZE); in open_ctree()
3637 btrfs_free_extra_devids(fs_devices); in open_ctree()
3638 if (!fs_devices->latest_dev->bdev) { in open_ctree()
3704 ret = btrfs_sysfs_add_fsid(fs_devices); in open_ctree()
3731 if (!sb_rdonly(sb) && fs_info->fs_devices->missing_devices && in open_ctree()
3750 !fs_info->fs_devices->rotating) { in open_ctree()
3762 ret = btrfsic_mount(fs_info, fs_devices, in open_ctree()
3783 ret = btrfs_replay_log(fs_info, fs_devices); in open_ctree()
3850 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in open_ctree()
3869 btrfs_close_devices(fs_info->fs_devices); in open_ctree()
4227 lockdep_assert_held(&info->fs_devices->device_list_mutex); in barrier_all_devices()
4229 head = &info->fs_devices->devices; in barrier_all_devices()
4329 mutex_lock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4330 head = &fs_info->fs_devices->devices; in write_all_supers()
4337 &fs_info->fs_devices->device_list_mutex); in write_all_supers()
4364 memcpy(dev_item->fsid, dev->fs_devices->metadata_uuid, in write_all_supers()
4372 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4385 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4406 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4694 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in close_ctree()
4725 btrfsic_unmount(fs_info->fs_devices); in close_ctree()
4729 btrfs_close_devices(fs_info->fs_devices); in close_ctree()