Home
last modified time | relevance | path

Searched refs:btrfs_device (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/fs/btrfs/
Dzoned.h34 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
37 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache);
38 void btrfs_destroy_dev_zone_info(struct btrfs_device *device);
39 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev);
44 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw,
46 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror);
48 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start,
50 int btrfs_reset_device_zone(struct btrfs_device *device, u64 physical,
52 int btrfs_ensure_empty_zones(struct btrfs_device *device, u64 start, u64 size);
67 int btrfs_zoned_issue_zeroout(struct btrfs_device *device, u64 physical, u64 length);
[all …]
Dvolumes.h91 struct btrfs_device { struct
215 btrfs_device_get_##name(const struct btrfs_device *dev) \
228 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
239 btrfs_device_get_##name(const struct btrfs_device *dev) \
250 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
259 btrfs_device_get_##name(const struct btrfs_device *dev) \
265 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
329 struct btrfs_device *latest_dev;
404 struct btrfs_device *device;
466 struct btrfs_device *dev;
[all …]
Dsysfs.h17 int btrfs_sysfs_add_device(struct btrfs_device *device);
18 void btrfs_sysfs_remove_device(struct btrfs_device *device);
34 void btrfs_sysfs_update_devid(struct btrfs_device *device);
Ddev-replace.c243 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev()
244 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev()
247 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev()
459 static char* btrfs_dev_name(struct btrfs_device *device) in btrfs_dev_name()
468 struct btrfs_device *src_dev) in mark_block_group_to_copy()
561 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev, in btrfs_finish_block_group_to_copy()
623 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start()
624 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start()
798 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state()
799 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state()
[all …]
Dzoned.c192 static int emulate_report_zones(struct btrfs_device *device, u64 pos, in emulate_report_zones()
217 static int btrfs_get_dev_zones(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zones()
329 struct btrfs_device *device; in btrfs_get_dev_zone_info_all_devices()
351 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache) in btrfs_get_dev_zone_info()
630 void btrfs_destroy_dev_zone_info(struct btrfs_device *device) in btrfs_destroy_dev_zone_info()
645 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev) in btrfs_clone_dev_zone_info()
685 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zone()
700 struct btrfs_device *device; in btrfs_check_for_zoned_device()
717 struct btrfs_device *device; in btrfs_check_zoned_mode()
905 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw, in btrfs_sb_log_location()
[all …]
Dvolumes.c250 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
399 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device()
410 struct btrfs_device *device; in free_fs_devices()
414 struct btrfs_device, dev_list); in free_fs_devices()
545 static int btrfs_free_stale_devices(dev_t devt, struct btrfs_device *skip_device) in btrfs_free_stale_devices()
548 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices()
597 struct btrfs_device *device, fmode_t flags, in btrfs_open_one_device()
756 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
760 struct btrfs_device *device; in device_list_add()
986 struct btrfs_device *device; in clone_fs_devices()
[all …]
Dsysfs.c1384 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices()
1625 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device()
1651 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show()
1664 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show()
1678 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show()
1691 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_show()
1701 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_store()
1717 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show()
1729 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_fsid_show()
1739 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_error_stats_show()
[all …]
Draid56.h164 struct btrfs_device;
175 struct btrfs_device *scrub_dev,
Dscrub.c83 struct btrfs_device *dev;
101 struct btrfs_device *dev;
132 struct btrfs_device *scrub_dev;
182 struct btrfs_device *wr_tgtdev;
207 struct btrfs_device *dev;
256 struct btrfs_device *dev, in alloc_scrub_block()
406 u64 physical, struct btrfs_device *dev, u64 flags,
415 struct btrfs_device **extent_dev,
889 struct btrfs_device *dev; in scrub_print_warning()
990 struct btrfs_device *dev = sblock_to_check->dev; in scrub_handle_errored_block()
[all …]
Ddev-replace.h25 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
Ddisk-io.h28 struct btrfs_device;
Dsuper.c1163 struct btrfs_device *device = NULL; in btrfs_parse_device_options()
1744 struct btrfs_device *device = NULL; in btrfs_mount_root()
2215 struct btrfs_device *device; in btrfs_calc_avail_data_space()
2481 struct btrfs_device *device = NULL; in btrfs_control_ioctl()
2554 static int check_dev_super(struct btrfs_device *dev) in check_dev_super()
2608 struct btrfs_device *device; in btrfs_unfreeze()
Dcheck-integrity.c312 struct btrfs_device *device,
575 struct btrfs_device *device; in btrfsic_process_superblock()
699 struct btrfs_device *device, in btrfsic_process_superblock_dev_mirror()
1461 struct btrfs_device *device; in btrfsic_map_block()
2731 struct btrfs_device *device; in btrfsic_mount()
2802 struct btrfs_device *device; in btrfsic_unmount()
Dextent_map.c372 struct btrfs_device *device = stripe->dev; in extent_map_device_set_bits()
387 struct btrfs_device *device = stripe->dev; in extent_map_device_clear_bits()
Ddisk-io.c3876 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write()
3993 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers()
4089 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors) in wait_dev_supers()
4163 static void write_dev_flush(struct btrfs_device *device) in write_dev_flush()
4196 static blk_status_t wait_dev_flush(struct btrfs_device *device) in wait_dev_flush()
4223 struct btrfs_device *dev; in barrier_all_devices()
4307 struct btrfs_device *dev; in write_all_supers()
5177 struct btrfs_device *dev, *tmp; in btrfs_cleanup_one_transaction()
Dctree.h52 struct btrfs_device;
466 struct btrfs_device *srcdev;
467 struct btrfs_device *tgtdev;
4044 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
Dioctl.c470 struct btrfs_device *device; in btrfs_ioctl_fitrim()
1994 struct btrfs_device *device = NULL; in btrfs_ioctl_resize()
3676 struct btrfs_device *device; in btrfs_ioctl_fs_info()
3731 struct btrfs_device *dev; in btrfs_ioctl_dev_info()
Dblock-group.c2295 struct btrfs_device *device, u64 chunk_offset, in insert_dev_extent()
2343 struct btrfs_device *device; in insert_dev_extents()
Dextent-tree.c1274 struct btrfs_device *dev = stripe->dev; in do_discard_extent()
6039 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents()
6142 struct btrfs_device *device; in btrfs_trim_fs()
Draid56.c2281 struct btrfs_device *scrub_dev, in raid56_parity_alloc_scrub_rbio()
Dextent_io.c544 struct btrfs_device *dev; in repair_io_failure()
1520 struct btrfs_device *dev; in alloc_new_bio()
Dinode.c10974 struct btrfs_device *device = NULL; in btrfs_swap_activate()
/linux-6.1.9/fs/btrfs/tests/
Dbtrfs-tests.c96 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device()
98 struct btrfs_device *dev; in btrfs_alloc_dummy_device()
111 static void btrfs_free_dummy_device(struct btrfs_device *dev) in btrfs_free_dummy_device()
156 struct btrfs_device *dev, *tmp; in btrfs_free_dummy_fs_info()
Dbtrfs-tests.h49 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);
Dextent-map-tests.c493 struct btrfs_device *dev = btrfs_alloc_dummy_device(fs_info); in test_rmap_block()