Home
last modified time | relevance | path

Searched refs:fs_devices (Results 1 – 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
Dvolumes.c381 static void free_fs_devices(struct btrfs_fs_devices *fs_devices) in free_fs_devices() argument
385 WARN_ON(fs_devices->opened); in free_fs_devices()
386 while (!list_empty(&fs_devices->devices)) { in free_fs_devices()
387 device = list_entry(fs_devices->devices.next, in free_fs_devices()
392 kfree(fs_devices); in free_fs_devices()
397 struct btrfs_fs_devices *fs_devices; in btrfs_cleanup_fs_uuids() local
400 fs_devices = list_entry(fs_uuids.next, in btrfs_cleanup_fs_uuids()
402 list_del(&fs_devices->fs_list); in btrfs_cleanup_fs_uuids()
403 free_fs_devices(fs_devices); in btrfs_cleanup_fs_uuids()
448 struct btrfs_fs_devices *fs_devices; in find_fsid() local
[all …]
Ddev-replace.c98 if (btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
161 if (btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
173 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
175 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
216 WARN_ON(fs_info->fs_devices->rw_devices == 0); in btrfs_init_dev_replace()
250 if (srcdev->fs_devices->seeding) { in btrfs_init_dev_replace_tgtdev()
264 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { in btrfs_init_dev_replace_tgtdev()
314 device->fs_devices = fs_info->fs_devices; in btrfs_init_dev_replace_tgtdev()
316 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_init_dev_replace_tgtdev()
317 list_add(&device->dev_list, &fs_info->fs_devices->devices); in btrfs_init_dev_replace_tgtdev()
[all …]
Dcheck-integrity.h18 struct btrfs_fs_devices *fs_devices,
20 void btrfsic_unmount(struct btrfs_fs_devices *fs_devices);
Dsysfs.c803 fs_info->fs_devices->metadata_uuid); in btrfs_metadata_uuid_show()
935 ret = sysfs_merge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
940 sysfs_unmerge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs()
984 static void btrfs_sysfs_remove_fs_devices(struct btrfs_fs_devices *fs_devices) in btrfs_sysfs_remove_fs_devices() argument
989 list_for_each_entry(device, &fs_devices->devices, dev_list) in btrfs_sysfs_remove_fs_devices()
992 list_for_each_entry(seed, &fs_devices->seed_list, seed_list) { in btrfs_sysfs_remove_fs_devices()
1000 struct kobject *fsid_kobj = &fs_info->fs_devices->fsid_kobj; in btrfs_sysfs_remove_mounted()
1025 btrfs_sysfs_remove_fs_devices(fs_info->fs_devices); in btrfs_sysfs_remove_mounted()
1243 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_remove_device()
1348 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_add_device()
[all …]
Dsuper.c1315 struct btrfs_fs_devices *fs_devices, in btrfs_fill_super() argument
1341 err = open_ctree(sb, fs_devices, (char *)data); in btrfs_fill_super()
1517 return fs_info->fs_devices == p->fs_devices; in btrfs_test_super()
1615 struct btrfs_fs_devices *fs_devices = NULL; in btrfs_mount_root() local
1666 fs_devices = device->fs_devices; in btrfs_mount_root()
1667 fs_info->fs_devices = fs_devices; in btrfs_mount_root()
1669 error = btrfs_open_devices(fs_devices, mode, fs_type); in btrfs_mount_root()
1674 if (!(flags & SB_RDONLY) && fs_devices->rw_devices == 0) { in btrfs_mount_root()
1679 bdev = fs_devices->latest_bdev; in btrfs_mount_root()
1688 btrfs_close_devices(fs_devices); in btrfs_mount_root()
[all …]
Dreada.c776 static int reada_start_for_fsdevs(struct btrfs_fs_devices *fs_devices) in reada_start_for_fsdevs() argument
784 list_for_each_entry(device, &fs_devices->devices, dev_list) { in reada_start_for_fsdevs()
797 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in __reada_start_machine() local
801 mutex_lock(&fs_devices->device_list_mutex); in __reada_start_machine()
803 enqueued += reada_start_for_fsdevs(fs_devices); in __reada_start_machine()
804 list_for_each_entry(seed_devs, &fs_devices->seed_list, seed_list) in __reada_start_machine()
807 mutex_unlock(&fs_devices->device_list_mutex); in __reada_start_machine()
846 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in dump_devs() local
854 list_for_each_entry(device, &fs_devices->devices, dev_list) { in dump_devs()
Ddisk-io.c473 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()
2170 struct btrfs_fs_devices *fs_devices) in btrfs_init_workqueues() argument
2279 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() argument
2287 if (fs_devices->rw_devices == 0) { in btrfs_replay_log()
2505 if (memcmp(fs_info->fs_devices->fsid, fs_info->super_copy->fsid, in validate_super()
2509 fs_info->super_copy->fsid, fs_info->fs_devices->fsid); in validate_super()
[all …]
Dvolumes.h59 struct btrfs_fs_devices *fs_devices; member
434 int btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
439 void btrfs_close_devices(struct btrfs_fs_devices *fs_devices);
440 void btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, int step);
456 struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices,
Dsysfs.h21 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices);
Dscrub.c1509 struct btrfs_fs_devices *fs_devices = spage->dev->fs_devices; in scrub_check_fsid() local
1512 ret = memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE); in scrub_check_fsid()
3704 if (scrub_dev->fs_devices != fs_info->fs_devices) in scrub_supers()
3865 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev()
3866 dev = btrfs_find_device(fs_info->fs_devices, devid, NULL, NULL, true); in btrfs_scrub_dev()
3869 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev()
3876 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev()
3888 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev()
3899 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev()
3907 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev()
[all …]
Dcheck-integrity.c287 struct btrfs_fs_devices *fs_devices);
624 struct btrfs_fs_devices *fs_devices) in btrfsic_process_superblock() argument
627 struct list_head *dev_head = &fs_devices->devices; in btrfsic_process_superblock()
1712 if (memcmp(h->fsid, fs_info->fs_devices->fsid, BTRFS_FSID_SIZE)) in btrfsic_test_for_metadata()
2769 struct btrfs_fs_devices *fs_devices, in btrfsic_mount() argument
2774 struct list_head *dev_head = &fs_devices->devices; in btrfsic_mount()
2831 ret = btrfsic_process_superblock(state, fs_devices); in btrfsic_mount()
2834 btrfsic_unmount(fs_devices); in btrfsic_mount()
2847 void btrfsic_unmount(struct btrfs_fs_devices *fs_devices) in btrfsic_unmount() argument
2851 struct list_head *dev_head = &fs_devices->devices; in btrfsic_unmount()
Ddisk-io.h54 struct btrfs_fs_devices *fs_devices,
Dioctl.c390 sysfs_notify(&fs_info->fs_devices->fsid_kobj, NULL, "exclusive_operation"); in btrfs_exclop_finish()
529 list_for_each_entry_rcu(device, &fs_info->fs_devices->devices, in btrfs_ioctl_fitrim()
1732 device = btrfs_find_device(fs_info->fs_devices, devid, NULL, NULL, true); in btrfs_ioctl_resize()
3327 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_ioctl_fs_info() local
3339 fi_args->num_devices = fs_devices->num_devices; in btrfs_ioctl_fs_info()
3341 list_for_each_entry_rcu(device, &fs_devices->devices, dev_list) { in btrfs_ioctl_fs_info()
3347 memcpy(&fi_args->fsid, fs_devices->fsid, sizeof(fi_args->fsid)); in btrfs_ioctl_fs_info()
3364 memcpy(&fi_args->metadata_uuid, fs_devices->metadata_uuid, in btrfs_ioctl_fs_info()
3392 dev = btrfs_find_device(fs_info->fs_devices, di_args->devid, s_uuid, in btrfs_ioctl_dev_info()
Dextent-tree.c4611 write_extent_buffer_fsid(buf, fs_info->fs_devices->metadata_uuid); in btrfs_init_new_buffer()
5887 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_trim_fs()
5888 devices = &fs_info->fs_devices->devices; in btrfs_trim_fs()
5902 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_trim_fs()
Dblock-group.c56 u64 num_devices = fs_info->fs_devices->rw_devices; in btrfs_reduce_alloc_profile()
3216 num_dev = fs_info->fs_devices->rw_devices; in get_profile_num_devs()
Dctree.c217 write_extent_buffer_fsid(cow, fs_info->fs_devices->metadata_uuid); in btrfs_copy_root()
1066 write_extent_buffer_fsid(cow, fs_info->fs_devices->metadata_uuid); in __btrfs_cow_block()
Dctree.h807 struct btrfs_fs_devices *fs_devices; member
Dextent_io.c3083 bdev = BTRFS_I(page->mapping->host)->root->fs_info->fs_devices->latest_bdev; in submit_extent_page()
Dinode.c7538 iomap->bdev = fs_info->fs_devices->latest_bdev; in btrfs_dio_iomap_begin()
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dbtrfs-tests.c99 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device()
117 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info()
119 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info()
123 INIT_LIST_HEAD(&fs_info->fs_devices->devices); in btrfs_alloc_dummy_fs_info()
128 kfree(fs_info->fs_devices); in btrfs_alloc_dummy_fs_info()
180 list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices, in btrfs_free_dummy_fs_info()
189 kfree(fs_info->fs_devices); in btrfs_free_dummy_fs_info()
/kernel/linux/linux-5.10/include/trace/events/
Dbtrfs.h165 memcpy(__entry->fsid, fs_info->fs_devices->fsid, \