/linux-6.1.9/fs/btrfs/ |
D | volumes.c | 408 static void free_fs_devices(struct btrfs_fs_devices *fs_devices) in free_fs_devices() argument 411 WARN_ON(fs_devices->opened); in free_fs_devices() 412 while (!list_empty(&fs_devices->devices)) { in free_fs_devices() 413 device = list_entry(fs_devices->devices.next, in free_fs_devices() 418 kfree(fs_devices); in free_fs_devices() 423 struct btrfs_fs_devices *fs_devices; in btrfs_cleanup_fs_uuids() local 426 fs_devices = list_entry(fs_uuids.next, in btrfs_cleanup_fs_uuids() 428 list_del(&fs_devices->fs_list); in btrfs_cleanup_fs_uuids() 429 free_fs_devices(fs_devices); in btrfs_cleanup_fs_uuids() 436 struct btrfs_fs_devices *fs_devices; in find_fsid() local [all …]
|
D | dev-replace.c | 104 if (btrfs_find_device(fs_info->fs_devices, &args)) { in btrfs_init_dev_replace() 166 if (btrfs_find_device(fs_info->fs_devices, &args)) { in btrfs_init_dev_replace() 177 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_init_dev_replace() 179 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_init_dev_replace() 219 WARN_ON(fs_info->fs_devices->rw_devices == 0); in btrfs_init_dev_replace() 246 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_init_dev_replace_tgtdev() local 254 if (srcdev->fs_devices->seeding) { in btrfs_init_dev_replace_tgtdev() 275 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_init_dev_replace_tgtdev() 327 device->fs_devices = fs_devices; in btrfs_init_dev_replace_tgtdev() 333 mutex_lock(&fs_devices->device_list_mutex); in btrfs_init_dev_replace_tgtdev() [all …]
|
D | sysfs.c | 746 if (!fs_info->fs_devices) in btrfs_chunk_size_store() 765 val = min(div_factor(fs_info->fs_devices->total_rw_bytes, 1), val); in btrfs_chunk_size_store() 1086 return sysfs_emit(buf, "%pU\n", fs_info->fs_devices->metadata_uuid); in btrfs_metadata_uuid_show() 1157 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); in btrfs_read_policy_show() local 1162 if (fs_devices->read_policy == i) in btrfs_read_policy_show() 1181 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); in btrfs_read_policy_store() local 1186 if (i != fs_devices->read_policy) { in btrfs_read_policy_store() 1187 fs_devices->read_policy = i; in btrfs_read_policy_store() 1188 btrfs_info(fs_devices->fs_info, in btrfs_read_policy_store() 1333 ret = sysfs_merge_group(&fs_info->fs_devices->fsid_kobj, in addrm_unknown_feature_attrs() [all …]
|
D | check-integrity.h | 16 struct btrfs_fs_devices *fs_devices, 18 void btrfsic_unmount(struct btrfs_fs_devices *fs_devices);
|
D | super.c | 1432 struct btrfs_fs_devices *fs_devices, in btrfs_fill_super() argument 1461 err = open_ctree(sb, fs_devices, (char *)data); in btrfs_fill_super() 1647 return fs_info->fs_devices == p->fs_devices; in btrfs_test_super() 1745 struct btrfs_fs_devices *fs_devices = NULL; in btrfs_mount_root() local 1796 fs_devices = device->fs_devices; in btrfs_mount_root() 1797 fs_info->fs_devices = fs_devices; in btrfs_mount_root() 1799 error = btrfs_open_devices(fs_devices, mode, fs_type); in btrfs_mount_root() 1804 if (!(flags & SB_RDONLY) && fs_devices->rw_devices == 0) { in btrfs_mount_root() 1809 bdev = fs_devices->latest_dev->bdev; in btrfs_mount_root() 1818 btrfs_close_devices(fs_devices); in btrfs_mount_root() [all …]
|
D | zoned.c | 328 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_get_dev_zone_info_all_devices() local 336 mutex_lock(&fs_devices->device_list_mutex); in btrfs_get_dev_zone_info_all_devices() 337 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_get_dev_zone_info_all_devices() 346 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_get_dev_zone_info_all_devices() 702 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { in btrfs_check_for_zoned_device() 729 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { in btrfs_check_zoned_mode() 769 fs_info->fs_devices->chunk_alloc_policy = BTRFS_CHUNK_ALLOC_ZONED; in btrfs_check_zoned_mode() 2085 bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags) in btrfs_can_activate_zone() argument 2087 struct btrfs_fs_info *fs_info = fs_devices->fs_info; in btrfs_can_activate_zone() 2096 list_for_each_entry(device, &fs_devices->alloc_list, dev_alloc_list) { in btrfs_can_activate_zone() [all …]
|
D | disk-io.c | 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() [all …]
|
D | volumes.h | 95 struct btrfs_fs_devices *fs_devices; member 626 int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, 631 void btrfs_close_devices(struct btrfs_fs_devices *fs_devices); 632 void btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices); 653 struct btrfs_device *btrfs_find_device(const struct btrfs_fs_devices *fs_devices,
|
D | sysfs.h | 21 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices);
|
D | zoned.h | 74 bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags); 243 static inline bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, in btrfs_can_activate_zone() argument
|
D | scrub.c | 1664 struct btrfs_fs_devices *fs_devices = sector->sblock->dev->fs_devices; in scrub_check_fsid() local 1667 ret = memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE); in scrub_check_fsid() 4136 if (scrub_dev->fs_devices != fs_info->fs_devices) in scrub_supers() 4273 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 4274 dev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_scrub_dev() 4277 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 4284 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 4296 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 4307 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 4315 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() [all …]
|
D | disk-io.h | 48 struct btrfs_fs_devices *fs_devices,
|
D | check-integrity.c | 571 struct btrfs_fs_devices *fs_devices) in btrfsic_process_superblock() argument 574 struct list_head *dev_head = &fs_devices->devices; in btrfsic_process_superblock() 1660 if (memcmp(h->fsid, fs_info->fs_devices->fsid, BTRFS_FSID_SIZE)) in btrfsic_test_for_metadata() 2725 struct btrfs_fs_devices *fs_devices, in btrfsic_mount() argument 2730 struct list_head *dev_head = &fs_devices->devices; in btrfsic_mount() 2781 ret = btrfsic_process_superblock(state, fs_devices); in btrfsic_mount() 2784 btrfsic_unmount(fs_devices); in btrfsic_mount() 2797 void btrfsic_unmount(struct btrfs_fs_devices *fs_devices) in btrfsic_unmount() argument 2801 struct list_head *dev_head = &fs_devices->devices; in btrfsic_unmount()
|
D | ioctl.c | 436 sysfs_notify(&fs_info->fs_devices->fsid_kobj, NULL, "exclusive_operation"); in btrfs_exclop_finish() 498 list_for_each_entry_rcu(device, &fs_info->fs_devices->devices, in btrfs_ioctl_fitrim() 2042 device = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_ioctl_resize() 3677 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_ioctl_fs_info() local 3689 fi_args->num_devices = fs_devices->num_devices; in btrfs_ioctl_fs_info() 3691 list_for_each_entry_rcu(device, &fs_devices->devices, dev_list) { in btrfs_ioctl_fs_info() 3697 memcpy(&fi_args->fsid, fs_devices->fsid, sizeof(fi_args->fsid)); in btrfs_ioctl_fs_info() 3714 memcpy(&fi_args->metadata_uuid, fs_devices->metadata_uuid, in btrfs_ioctl_fs_info() 3743 dev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_ioctl_dev_info()
|
D | extent-tree.c | 3966 if (btrfs_can_activate_zone(fs_info->fs_devices, ffe_ctl->flags)) in can_allocate_chunk_zoned() 4920 write_extent_buffer_fsid(buf, fs_info->fs_devices->metadata_uuid); in btrfs_init_new_buffer() 6140 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_trim_fs() local 6204 mutex_lock(&fs_devices->device_list_mutex); in btrfs_trim_fs() 6205 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_trim_fs() 6218 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_trim_fs()
|
D | block-group.c | 58 u64 num_devices = fs_info->fs_devices->rw_devices; in btrfs_reduce_alloc_profile() 2367 mutex_lock(&fs_info->fs_devices->device_list_mutex); in insert_dev_extents() 2377 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in insert_dev_extents() 3819 num_dev = fs_info->fs_devices->rw_devices; in get_profile_num_devs()
|
D | space-info.c | 207 if (fs_info->fs_devices->total_rw_bytes > 50ULL * SZ_1G) in calc_chunk_size()
|
D | ctree.c | 236 write_extent_buffer_fsid(cow, fs_info->fs_devices->metadata_uuid); in btrfs_copy_root() 452 write_extent_buffer_fsid(cow, fs_info->fs_devices->metadata_uuid); in __btrfs_cow_block()
|
D | ctree.h | 860 struct btrfs_fs_devices *fs_devices; member
|
D | extent_io.c | 1538 bio_set_dev(bio, fs_info->fs_devices->latest_dev->bdev); in alloc_new_bio()
|
D | inode.c | 7747 iomap->bdev = fs_info->fs_devices->latest_dev->bdev; in btrfs_dio_iomap_begin()
|
/linux-6.1.9/fs/btrfs/tests/ |
D | btrfs-tests.c | 106 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device() 124 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info() 126 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info() 130 INIT_LIST_HEAD(&fs_info->fs_devices->devices); in btrfs_alloc_dummy_fs_info() 135 kfree(fs_info->fs_devices); in btrfs_alloc_dummy_fs_info() 188 list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices, in btrfs_free_dummy_fs_info() 197 kfree(fs_info->fs_devices); in btrfs_free_dummy_fs_info()
|
/linux-6.1.9/include/trace/events/ |
D | btrfs.h | 167 memcpy(__entry->fsid, fs_info->fs_devices->fsid, \
|