/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | volumes.c | 239 * protects the fs_uuids list that tracks all per-fs fs_devices, resulting from 245 * protects: updates to fs_devices counters like missing devices, rw devices, 250 * does not protect: manipulation of the fs_devices::devices list in general 256 * fs_devices::device_list_mutex (per-fs, with RCU) 258 * protects updates to fs_devices::devices, ie. adding and deleting 339 * @fsid: if not NULL, copy the UUID to fs_devices::fsid 340 * @metadata_fsid: if not NULL, copy the UUID to fs_devices::metadata_fsid 381 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 in free_fs_devices() 397 struct btrfs_fs_devices *fs_devices; btrfs_cleanup_fs_uuids() local 448 struct btrfs_fs_devices *fs_devices; find_fsid() local 471 struct btrfs_fs_devices *fs_devices; find_fsid_with_metadata_uuid() local 601 struct btrfs_fs_devices *fs_devices, *tmp_fs_devices; btrfs_free_stale_devices() local 650 btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, struct btrfs_device *device, fmode_t flags, void *holder) btrfs_open_one_device() argument 738 struct btrfs_fs_devices *fs_devices; find_fsid_inprogress() local 756 struct btrfs_fs_devices *fs_devices; find_fsid_changed() local 791 struct btrfs_fs_devices *fs_devices; find_fsid_reverted_metadata() local 825 struct btrfs_fs_devices *fs_devices = NULL; device_list_add() local 1039 struct btrfs_fs_devices *fs_devices; clone_fs_devices() local 1087 __btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, int step, struct btrfs_device **latest_dev) __btrfs_free_extra_devids() argument 1134 btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, int step) btrfs_free_extra_devids() argument 1165 struct btrfs_fs_devices *fs_devices = device->fs_devices; btrfs_close_one_device() local 1213 close_fs_devices(struct btrfs_fs_devices *fs_devices) close_fs_devices() argument 1232 btrfs_close_devices(struct btrfs_fs_devices *fs_devices) btrfs_close_devices() argument 1263 open_fs_devices(struct btrfs_fs_devices *fs_devices, fmode_t flags, void *holder) open_fs_devices() argument 1312 btrfs_open_devices(struct btrfs_fs_devices *fs_devices, fmode_t flags, void *holder) btrfs_open_devices() argument 2138 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_rm_device() local 2284 struct btrfs_fs_devices *fs_devices; btrfs_rm_dev_replace_remove_srcdev() local 2311 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; btrfs_rm_dev_replace_free_srcdev() local 2338 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; btrfs_destroy_dev_replace_tgtdev() local 2440 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_prepare_sprout() local 2588 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_init_new_device() local 3021 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_remove_chunk() local 4942 init_alloc_chunk_ctl_policy_regular( struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) init_alloc_chunk_ctl_policy_regular() argument 4973 init_alloc_chunk_ctl(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) init_alloc_chunk_ctl() argument 4998 gather_device_info(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) gather_device_info() argument 5119 decide_stripe_size(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) decide_stripe_size() argument 5248 struct btrfs_fs_devices *fs_devices = info->fs_devices; btrfs_alloc_chunk() local 6546 btrfs_find_device(struct btrfs_fs_devices *fs_devices, u64 devid, u8 *uuid, u8 *fsid, bool seed) btrfs_find_device() argument 6578 add_missing_dev(struct btrfs_fs_devices *fs_devices, u64 devid, u8 *dev_uuid) add_missing_dev() argument 6819 struct btrfs_fs_devices *fs_devices; open_seed_devices() local 6874 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; read_one_dev() local 7285 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; btrfs_init_devices_late() local 7369 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; btrfs_init_dev_stats() local 7469 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_run_dev_stats() local 7547 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_get_dev_stats() local [all...] |
H A D | dev-replace.c | 98 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 in btrfs_init_dev_replace_tgtdev() [all...] |
H A D | check-integrity.h | 18 struct btrfs_fs_devices *fs_devices, 20 void btrfsic_unmount(struct btrfs_fs_devices *fs_devices);
|
H A D | super.c | 1315 struct btrfs_fs_devices *fs_devices, in btrfs_fill_super() 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 1636 * superblock with our given fs_devices later on at sget() time. in btrfs_mount_root() 1666 fs_devices = device->fs_devices; in btrfs_mount_root() 1667 fs_info->fs_devices = fs_devices; in btrfs_mount_root() 1314 btrfs_fill_super(struct super_block *sb, struct btrfs_fs_devices *fs_devices, void *data) btrfs_fill_super() argument 2059 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_calc_avail_data_space() local [all...] |
H A D | reada.c | 776 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 [all...] |
H A D | sysfs.c | 803 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() 1240 * Seed fs_devices devices_kobj aren't used, fetch kobject from the in btrfs_sysfs_remove_device() 1241 * fs_info::fs_devices in btrfs_sysfs_remove_device() 1386 btrfs_sysfs_add_fs_devices(struct btrfs_fs_devices *fs_devices) btrfs_sysfs_add_fs_devices() argument 1424 btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices) btrfs_sysfs_update_sprout_fsid() argument [all...] |
H A D | disk-io.c | 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() 2170 struct btrfs_fs_devices *fs_devices) in btrfs_init_workqueues() 2282 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() 2290 if (fs_devices->rw_devices == 0) { in btrfs_replay_log() 2508 if (memcmp(fs_info->fs_devices in validate_super() 2169 btrfs_init_workqueues(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) btrfs_init_workqueues() argument 2281 btrfs_replay_log(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) btrfs_replay_log() argument 2929 open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices, char *options) open_ctree() argument [all...] |
H A D | volumes.h | 59 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,
|
H A D | sysfs.h | 21 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices);
|
H A D | scrub.c | 1509 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() 3711 if (scrub_dev->fs_devices != fs_info->fs_devices) in scrub_supers() 3872 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 3873 dev = btrfs_find_device(fs_info->fs_devices, devid, NULL, NULL, true); in btrfs_scrub_dev() 3876 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 3883 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 3895 mutex_unlock(&fs_info->fs_devices in btrfs_scrub_dev() [all...] |
H A D | check-integrity.c | 287 struct btrfs_fs_devices *fs_devices); 624 struct btrfs_fs_devices *fs_devices) in btrfsic_process_superblock() 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() 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 in btrfsic_unmount() 623 btrfsic_process_superblock(struct btrfsic_state *state, struct btrfs_fs_devices *fs_devices) btrfsic_process_superblock() argument 2768 btrfsic_mount(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices, int including_extent_data, u32 print_mask) btrfsic_mount() argument [all...] |
H A D | disk-io.h | 54 struct btrfs_fs_devices *fs_devices,
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | volumes.c | 261 * protects the fs_uuids list that tracks all per-fs fs_devices, resulting from 267 * protects: updates to fs_devices counters like missing devices, rw devices, 272 * does not protect: manipulation of the fs_devices::devices list in general 278 * fs_devices::device_list_mutex (per-fs, with RCU) 280 * protects updates to fs_devices::devices, ie. adding and deleting 361 * @fsid: if not NULL, copy the UUID to fs_devices::fsid 362 * @metadata_fsid: if not NULL, copy the UUID to fs_devices::metadata_fsid 404 static void free_fs_devices(struct btrfs_fs_devices *fs_devices) in free_fs_devices() argument 408 WARN_ON(fs_devices->opened); in free_fs_devices() 409 while (!list_empty(&fs_devices in free_fs_devices() 420 struct btrfs_fs_devices *fs_devices; btrfs_cleanup_fs_uuids() local 430 match_fsid_fs_devices(const struct btrfs_fs_devices *fs_devices, const u8 *fsid, const u8 *metadata_fsid) match_fsid_fs_devices() argument 448 struct btrfs_fs_devices *fs_devices; find_fsid() local 465 check_fsid_changed(const struct btrfs_fs_devices *fs_devices, const u8 *fsid) check_fsid_changed() argument 477 struct btrfs_fs_devices *fs_devices; find_fsid_with_metadata_uuid() local 563 struct btrfs_fs_devices *fs_devices, *tmp_fs_devices; btrfs_free_stale_devices() local 612 btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, struct btrfs_device *device, blk_mode_t flags, void *holder) btrfs_open_one_device() argument 701 struct btrfs_fs_devices *fs_devices; find_fsid_inprogress() local 717 struct btrfs_fs_devices *fs_devices; find_fsid_changed() local 749 struct btrfs_fs_devices *fs_devices; find_fsid_reverted_metadata() local 782 struct btrfs_fs_devices *fs_devices = NULL; device_list_add() local 993 struct btrfs_fs_devices *fs_devices; clone_fs_devices() local 1045 __btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, struct btrfs_device **latest_dev) __btrfs_free_extra_devids() argument 1092 btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices) btrfs_free_extra_devids() argument 1123 struct btrfs_fs_devices *fs_devices = device->fs_devices; btrfs_close_one_device() local 1171 close_fs_devices(struct btrfs_fs_devices *fs_devices) close_fs_devices() argument 1190 btrfs_close_devices(struct btrfs_fs_devices *fs_devices) btrfs_close_devices() argument 1221 open_fs_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) open_fs_devices() argument 1269 btrfs_open_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) btrfs_open_devices() argument 2095 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_rm_device() local 2264 struct btrfs_fs_devices *fs_devices; btrfs_rm_dev_replace_remove_srcdev() local 2291 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; btrfs_rm_dev_replace_free_srcdev() local 2318 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; btrfs_destroy_dev_replace_tgtdev() local 2442 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_init_sprout() local 2488 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_setup_sprout() local 2619 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_init_new_device() local 3096 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_remove_chunk() local 5103 init_alloc_chunk_ctl_policy_regular( struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) init_alloc_chunk_ctl_policy_regular() argument 5124 init_alloc_chunk_ctl_policy_zoned( struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) init_alloc_chunk_ctl_policy_zoned() argument 5157 init_alloc_chunk_ctl(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) init_alloc_chunk_ctl() argument 5185 gather_device_info(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) gather_device_info() argument 5341 decide_stripe_size(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) decide_stripe_size() argument 5473 struct btrfs_fs_devices *fs_devices = info->fs_devices; btrfs_create_chunk() local 6503 dev_args_match_fs_devices(const struct btrfs_dev_lookup_args *args, const struct btrfs_fs_devices *fs_devices) dev_args_match_fs_devices() argument 6537 btrfs_find_device(const struct btrfs_fs_devices *fs_devices, const struct btrfs_dev_lookup_args *args) btrfs_find_device() argument 6562 add_missing_dev(struct btrfs_fs_devices *fs_devices, u64 devid, u8 *dev_uuid) add_missing_dev() argument 6888 struct btrfs_fs_devices *fs_devices; open_seed_devices() local 6944 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; read_one_dev() local 7357 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; btrfs_init_devices_late() local 7451 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; btrfs_init_dev_stats() local 7551 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_run_dev_stats() local 7626 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_get_dev_stats() local [all...] |
H A D | dev-replace.c | 106 if (btrfs_find_device(fs_info->fs_devices, &args)) { in btrfs_init_dev_replace() 168 if (btrfs_find_device(fs_info->fs_devices, &args)) { in btrfs_init_dev_replace() 179 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_init_dev_replace() 181 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_init_dev_replace() 221 WARN_ON(fs_info->fs_devices->rw_devices == 0); in btrfs_init_dev_replace() 248 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_init_dev_replace_tgtdev() local 255 if (srcdev->fs_devices->seeding) { in btrfs_init_dev_replace_tgtdev() 276 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_init_dev_replace_tgtdev() 321 device->fs_devices in btrfs_init_dev_replace_tgtdev() 855 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_dev_replace_finishing() local [all...] |
H A D | sysfs.c | 756 if (!fs_info->fs_devices) in btrfs_chunk_size_store() 775 val = min(mult_perc(fs_info->fs_devices->total_rw_bytes, 10), val); in btrfs_chunk_size_store() 1137 return sysfs_emit(buf, "%pU\n", fs_info->fs_devices->metadata_uuid); in btrfs_metadata_uuid_show() 1208 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); in btrfs_read_policy_show() local 1213 if (fs_devices->read_policy == i) in btrfs_read_policy_show() 1232 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); in btrfs_read_policy_store() local 1237 if (i != fs_devices->read_policy) { in btrfs_read_policy_store() 1238 fs_devices->read_policy = i; in btrfs_read_policy_store() 1239 btrfs_info(fs_devices->fs_info, in btrfs_read_policy_store() 1389 ret = sysfs_merge_group(&fs_info->fs_devices in addrm_unknown_feature_attrs() 1438 btrfs_sysfs_remove_fs_devices(struct btrfs_fs_devices *fs_devices) btrfs_sysfs_remove_fs_devices() argument 1901 btrfs_sysfs_add_fs_devices(struct btrfs_fs_devices *fs_devices) btrfs_sysfs_add_fs_devices() argument 1939 btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices) btrfs_sysfs_update_sprout_fsid() argument [all...] |
H A D | check-integrity.h | 16 struct btrfs_fs_devices *fs_devices, 18 void btrfsic_unmount(struct btrfs_fs_devices *fs_devices);
|
H A D | super.c | 84 btrfs_info(fs_info, "last unmount of filesystem %pU", fs_info->fs_devices->fsid); in btrfs_put_super() 1134 struct btrfs_fs_devices *fs_devices, in btrfs_fill_super() 1163 err = open_ctree(sb, fs_devices, (char *)data); in btrfs_fill_super() 1351 return fs_info->fs_devices == p->fs_devices; in btrfs_test_super() 1449 struct btrfs_fs_devices *fs_devices = NULL; in btrfs_mount_root() local 1467 * superblock with our given fs_devices later on at sget() time. in btrfs_mount_root() 1497 fs_devices = device->fs_devices; in btrfs_mount_root() 1498 fs_info->fs_devices in btrfs_mount_root() 1133 btrfs_fill_super(struct super_block *sb, struct btrfs_fs_devices *fs_devices, void *data) btrfs_fill_super() argument 1920 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_calc_avail_data_space() local [all...] |
H A D | zoned.c | 337 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_get_dev_zone_info_all_devices() local 345 mutex_lock(&fs_devices->device_list_mutex); in btrfs_get_dev_zone_info_all_devices() 346 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_get_dev_zone_info_all_devices() 355 mutex_unlock(&fs_devices->device_list_mutex); in btrfs_get_dev_zone_info_all_devices() 690 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { in btrfs_check_for_zoned_device() 719 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { in btrfs_check_zoned_mode() 776 fs_info->fs_devices->chunk_alloc_policy = BTRFS_CHUNK_ALLOC_ZONED; in btrfs_check_zoned_mode() 2198 bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags) in btrfs_can_activate_zone() argument 2200 struct btrfs_fs_info *fs_info = fs_devices in btrfs_can_activate_zone() 2317 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_free_zone_cache() local 2335 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_zoned_should_reclaim() local 2489 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; btrfs_check_active_zone_reservation() local [all...] |
H A D | volumes.h | 86 struct btrfs_fs_devices *fs_devices; member 612 int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, 616 void btrfs_close_devices(struct btrfs_fs_devices *fs_devices); 617 void btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices); 637 struct btrfs_device *btrfs_find_device(const struct btrfs_fs_devices *fs_devices,
|
H A D | disk-io.c | 268 ASSERT(memcmp_extent_buffer(eb, fs_info->fs_devices->metadata_uuid, in btree_csum_one_bio() 314 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in check_tree_block_fsid() local 323 * So, we can use fs_devices->metadata_uuid. in check_tree_block_fsid() 325 if (memcmp(fsid, fs_info->fs_devices->metadata_uuid, BTRFS_FSID_SIZE) == 0) in check_tree_block_fsid() 328 list_for_each_entry(seed_devs, &fs_devices->seed_list, seed_list) in check_tree_block_fsid() 2045 struct btrfs_fs_devices *fs_devices) in btrfs_replay_log() 2054 if (fs_devices->rw_devices == 0) { in btrfs_replay_log() 2393 if (memcmp(fs_info->fs_devices->fsid, sb->fsid, BTRFS_FSID_SIZE) != 0) { in btrfs_validate_super() 2395 "superblock fsid doesn't match fsid of fs_devices in btrfs_validate_super() 2044 btrfs_replay_log(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) btrfs_replay_log() argument 3162 open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices, char *options) open_ctree() argument [all...] |
H A D | sysfs.h | 21 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices);
|
H A D | scrub.c | 628 if (memcmp(header->fsid, fs_info->fs_devices->metadata_uuid, in scrub_verify_one_metadata() 635 header->fsid, fs_info->fs_devices->fsid); in scrub_verify_one_metadata() 2736 if (scrub_dev->fs_devices != fs_info->fs_devices) in scrub_supers() 2843 mutex_lock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 2844 dev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_scrub_dev() 2847 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 2854 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 2866 mutex_unlock(&fs_info->fs_devices->device_list_mutex); in btrfs_scrub_dev() 2877 mutex_unlock(&fs_info->fs_devices in btrfs_scrub_dev() [all...] |
H A D | zoned.h | 73 bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags); 224 static inline bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, in btrfs_can_activate_zone() argument
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | btrfs-tests.c | 99 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-6.6/fs/btrfs/tests/ |
H A D | btrfs-tests.c | 107 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device() 125 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info() 127 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info() 131 INIT_LIST_HEAD(&fs_info->fs_devices->devices); in btrfs_alloc_dummy_fs_info() 136 kfree(fs_info->fs_devices); in btrfs_alloc_dummy_fs_info() 189 list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices, in btrfs_free_dummy_fs_info() 198 kfree(fs_info->fs_devices); in btrfs_free_dummy_fs_info()
|