Home
last modified time | relevance | path

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

12

/fs/btrfs/
Dzoned.h35 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
38 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache);
39 void btrfs_destroy_dev_zone_info(struct btrfs_device *device);
44 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw,
46 void 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);
68 int btrfs_sync_zone_write_pointer(struct btrfs_device *tgt_dev, u64 logical,
[all …]
Dvolumes.h57 struct btrfs_device { struct
158 btrfs_device_get_##name(const struct btrfs_device *dev) \ argument
171 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
182 btrfs_device_get_##name(const struct btrfs_device *dev) \
193 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
202 btrfs_device_get_##name(const struct btrfs_device *dev) \
208 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
253 struct btrfs_device *latest_dev;
317 struct btrfs_device *device;
343 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()
246 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev()
456 static char* btrfs_dev_name(struct btrfs_device *device) in btrfs_dev_name()
465 struct btrfs_device *src_dev) in mark_block_group_to_copy()
588 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev, in btrfs_finish_block_group_to_copy()
651 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start()
652 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start()
837 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state()
838 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state()
[all …]
Dvolumes.c249 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
250 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()
411 struct btrfs_device *device; in free_fs_devices()
416 struct btrfs_device, dev_list); in free_fs_devices()
541 static bool device_matched(const struct btrfs_device *device, const char *path) in device_matched()
590 struct btrfs_device *skip_device) in btrfs_free_stale_devices()
593 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices()
642 struct btrfs_device *device, fmode_t flags, in btrfs_open_one_device()
811 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
[all …]
Dzoned.c172 static int emulate_report_zones(struct btrfs_device *device, u64 pos, in emulate_report_zones()
197 static int btrfs_get_dev_zones(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zones()
309 struct btrfs_device *device; in btrfs_get_dev_zone_info_all_devices()
331 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache) in btrfs_get_dev_zone_info()
559 void btrfs_destroy_dev_zone_info(struct btrfs_device *device) in btrfs_destroy_dev_zone_info()
573 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zone()
589 struct btrfs_device *device; in btrfs_check_zoned_mode()
811 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw, in btrfs_sb_log_location()
855 void btrfs_advance_sb_log(struct btrfs_device *device, int mirror) in btrfs_advance_sb_log()
920 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, in btrfs_find_allocatable_zones()
[all …]
Dsysfs.c1199 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices()
1446 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device()
1472 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show()
1485 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show()
1499 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show()
1512 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_show()
1523 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_store()
1543 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show()
1555 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_error_stats_show()
1598 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_release_devid_kobj()
[all …]
Dreada.c73 struct btrfs_device *device;
74 struct btrfs_device *devs[BTRFS_MAX_MIRRORS]; /* full list, incl
229 static struct reada_zone *reada_find_zone(struct btrfs_device *dev, u64 logical, in reada_find_zone()
313 struct btrfs_device *dev; in reada_find_extent()
314 struct btrfs_device *prev_dev; in reada_find_extent()
610 static int reada_pick_zone(struct btrfs_device *dev) in reada_pick_zone()
689 static int reada_start_machine_dev(struct btrfs_device *dev) in reada_start_machine_dev()
794 struct btrfs_device *device; in reada_start_for_fsdevs()
859 struct btrfs_device *device; in dump_devs()
1054 void btrfs_reada_remove_dev(struct btrfs_device *dev) in btrfs_reada_remove_dev()
[all …]
Draid56.h31 struct btrfs_device;
45 struct btrfs_device *scrub_dev,
Dscrub.c67 struct btrfs_device *dev;
86 struct btrfs_device *dev;
125 struct btrfs_device *scrub_dev;
178 struct btrfs_device *wr_tgtdev;
203 struct btrfs_device *dev;
236 u64 physical, struct btrfs_device *dev, u64 flags,
245 struct btrfs_device **extent_dev,
723 struct btrfs_device *dev; in scrub_print_warning()
817 struct btrfs_device *dev; in scrub_handle_errored_block()
2004 struct btrfs_device *device; in scrub_throttle()
[all …]
Ddev-replace.h21 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
Ddisk-io.h38 struct btrfs_device;
Dsuper.c1089 struct btrfs_device *device = NULL; in btrfs_parse_device_options()
1671 struct btrfs_device *device = NULL; in btrfs_mount_root()
2157 struct btrfs_device *device; in btrfs_calc_avail_data_space()
2431 struct btrfs_device *device = NULL; in btrfs_control_ioctl()
2498 static int check_dev_super(struct btrfs_device *dev) in check_dev_super()
2552 struct btrfs_device *device; in btrfs_unfreeze()
Dextent_map.c364 struct btrfs_device *device = stripe->dev; in extent_map_device_set_bits()
379 struct btrfs_device *device = stripe->dev; in extent_map_device_clear_bits()
Dcheck-integrity.c314 struct btrfs_device *device,
578 struct btrfs_device *device; in btrfsic_process_superblock()
702 struct btrfs_device *device, in btrfsic_process_superblock_dev_mirror()
1459 struct btrfs_device *device; in btrfsic_map_block()
2719 struct btrfs_device *device; in btrfsic_mount()
2795 struct btrfs_device *device; in btrfsic_unmount()
Ddisk-io.c3709 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write()
3826 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers()
3919 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors) in wait_dev_supers()
3992 static void write_dev_flush(struct btrfs_device *device) in write_dev_flush()
4026 static blk_status_t wait_dev_flush(struct btrfs_device *device) in wait_dev_flush()
4053 struct btrfs_device *dev; in barrier_all_devices()
4137 struct btrfs_device *dev; in write_all_supers()
4982 struct btrfs_device *dev, *tmp; in btrfs_cleanup_one_transaction()
Dctree.h435 struct btrfs_device *srcdev;
436 struct btrfs_device *tgtdev;
530 struct btrfs_device;
3799 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
3833 void btrfs_reada_remove_dev(struct btrfs_device *dev);
3834 void btrfs_reada_undo_remove_dev(struct btrfs_device *dev);
Dioctl.c425 struct btrfs_device *device; in btrfs_ioctl_fitrim()
1672 struct btrfs_device *device = NULL; in btrfs_ioctl_resize()
3363 struct btrfs_device *device; in btrfs_ioctl_fs_info()
3418 struct btrfs_device *dev; in btrfs_ioctl_dev_info()
Dextent-tree.c1277 struct btrfs_device *dev = stripe->dev; in do_discard_extent()
1348 struct btrfs_device *device = stripe->dev; in btrfs_discard_extent()
5954 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents()
6057 struct btrfs_device *device; in btrfs_trim_fs()
Dcompression.c428 struct btrfs_device *device; in btrfs_submit_compressed_write()
Dblock-group.c2307 struct btrfs_device *device, u64 chunk_offset, in insert_dev_extent()
2355 struct btrfs_device *device; in insert_dev_extents()
Draid56.c2266 struct btrfs_device *scrub_dev, in raid56_parity_alloc_scrub_rbio()
/fs/btrfs/tests/
Dbtrfs-tests.c95 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device()
97 struct btrfs_device *dev; in btrfs_alloc_dummy_device()
110 static void btrfs_free_dummy_device(struct btrfs_device *dev) in btrfs_free_dummy_device()
155 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.c491 struct btrfs_device *dev = btrfs_alloc_dummy_device(fs_info); in test_rmap_block()

12