Lines Matching refs:fs_devices

320 	ASSERT(memcmp_extent_buffer(eb, fs_info->fs_devices->metadata_uuid,  in csum_one_extent_buffer()
460 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in check_tree_block_fsid() local
472 metadata_uuid = fs_devices->metadata_uuid; in check_tree_block_fsid()
474 metadata_uuid = fs_devices->fsid; in check_tree_block_fsid()
479 list_for_each_entry(seed_devs, &fs_devices->seed_list, seed_list) in check_tree_block_fsid()
2260 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() argument
2269 if (fs_devices->rw_devices == 0) { in btrfs_replay_log()
2608 if (memcmp(fs_info->fs_devices->fsid, fs_info->super_copy->fsid, in btrfs_validate_super()
2612 fs_info->super_copy->fsid, fs_info->fs_devices->fsid); in btrfs_validate_super()
2617 memcmp(fs_info->fs_devices->metadata_uuid, in btrfs_validate_super()
2622 fs_info->fs_devices->metadata_uuid); in btrfs_validate_super()
2638 if (memcmp(fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid, in btrfs_validate_super()
2642 fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid); in btrfs_validate_super()
3319 int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices, in open_ctree() argument
3362 invalidate_bdev(fs_devices->latest_dev->bdev); in open_ctree()
3367 disk_super = btrfs_read_dev_super(fs_devices->latest_dev->bdev); in open_ctree()
3509 memcpy(&sb->s_uuid, fs_info->fs_devices->fsid, BTRFS_FSID_SIZE); in open_ctree()
3545 btrfs_free_extra_devids(fs_devices); in open_ctree()
3546 if (!fs_devices->latest_dev->bdev) { in open_ctree()
3612 ret = btrfs_sysfs_add_fsid(fs_devices); in open_ctree()
3639 if (!sb_rdonly(sb) && fs_info->fs_devices->missing_devices && in open_ctree()
3658 !fs_info->fs_devices->rotating) { in open_ctree()
3670 fs_info->fs_devices->discardable) { in open_ctree()
3678 ret = btrfsic_mount(fs_info, fs_devices, in open_ctree()
3699 ret = btrfs_replay_log(fs_info, fs_devices); in open_ctree()
3766 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in open_ctree()
3785 btrfs_close_devices(fs_info->fs_devices); in open_ctree()
4143 lockdep_assert_held(&info->fs_devices->device_list_mutex); in barrier_all_devices()
4145 head = &info->fs_devices->devices; in barrier_all_devices()
4245 mutex_lock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4246 head = &fs_info->fs_devices->devices; in write_all_supers()
4253 &fs_info->fs_devices->device_list_mutex); in write_all_supers()
4280 memcpy(dev_item->fsid, dev->fs_devices->metadata_uuid, in write_all_supers()
4288 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4301 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4322 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in write_all_supers()
4610 btrfs_sysfs_remove_fsid(fs_info->fs_devices); in close_ctree()
4641 btrfsic_unmount(fs_info->fs_devices); in close_ctree()
4645 btrfs_close_devices(fs_info->fs_devices); in close_ctree()