Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Dzoned.h57 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache);
58 void btrfs_destroy_dev_zone_info(struct btrfs_device *device);
59 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev);
65 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw,
67 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror);
69 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start,
71 int btrfs_reset_device_zone(struct btrfs_device *device, u64 physical,
73 int btrfs_ensure_empty_zones(struct btrfs_device *device, u64 start, u64 size);
80 int btrfs_zoned_issue_zeroout(struct btrfs_device *device, u64 physical, u64 length);
81 int btrfs_sync_zone_write_pointer(struct btrfs_device *tgt_dev, u64 logical,
[all …]
H A Dvolumes.h106 struct btrfs_device { struct
234 btrfs_device_get_##name(const struct btrfs_device *dev) \
247 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
258 btrfs_device_get_##name(const struct btrfs_device *dev) \
269 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
278 btrfs_device_get_##name(const struct btrfs_device *dev) \
284 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
400 struct btrfs_device *latest_dev;
469 struct btrfs_device *dev;
479 struct btrfs_device *dev;
[all …]
H A Dsysfs.h11 struct btrfs_device;
26 int btrfs_sysfs_add_device(struct btrfs_device *device);
27 void btrfs_sysfs_remove_device(struct btrfs_device *device);
42 void btrfs_sysfs_update_devid(struct btrfs_device *device);
H A Dvolumes.c261 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
403 static void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device()
414 struct btrfs_device *device; in free_fs_devices()
419 struct btrfs_device, dev_list); in free_fs_devices()
524 static int btrfs_free_stale_devices(dev_t devt, struct btrfs_device *skip_device) in btrfs_free_stale_devices()
527 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices()
601 struct btrfs_device *device; in find_fsid_by_device()
647 struct btrfs_device *device, blk_mode_t flags, in btrfs_open_one_device()
812 static bool is_same_device(struct btrfs_device *device, const char *new_path) in is_same_device()
855 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
[all …]
H A Ddev-replace.c242 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev()
243 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev()
246 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev()
450 struct btrfs_device *src_dev) in mark_block_group_to_copy()
543 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev, in btrfs_finish_block_group_to_copy()
603 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start()
604 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start()
795 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state()
796 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state()
822 struct btrfs_device *srcdev, in btrfs_dev_replace_update_device_in_mapping_tree()
[all …]
H A Dscrub.h9 struct btrfs_device;
18 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
H A Ddev-replace.h17 struct btrfs_device;
29 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
H A Dzoned.c194 static int emulate_report_zones(struct btrfs_device *device, u64 pos, in emulate_report_zones()
219 static int btrfs_get_dev_zones(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zones()
327 struct btrfs_device *device; in btrfs_get_dev_zone_info_all_devices()
349 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache) in btrfs_get_dev_zone_info()
591 void btrfs_destroy_dev_zone_info(struct btrfs_device *device) in btrfs_destroy_dev_zone_info()
606 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev) in btrfs_clone_dev_zone_info()
646 static int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, struct blk_zone *zone) in btrfs_get_dev_zone()
660 struct btrfs_device *device; in btrfs_check_for_zoned_device()
677 struct btrfs_device *device; in btrfs_check_zoned_mode()
897 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw, in btrfs_sb_log_location()
[all …]
H A Dsysfs.c1727 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices()
1968 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device()
1994 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show()
2007 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show()
2021 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show()
2034 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_show()
2044 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_store()
2064 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show()
2076 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_fsid_show()
2086 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_error_stats_show()
[all …]
H A Draid56.h192 struct btrfs_device;
200 struct btrfs_device *scrub_dev,
H A Dscrub.c115 struct btrfs_device *dev;
204 struct btrfs_device *wr_tgtdev;
228 struct btrfs_device *dev;
478 static void scrub_print_common_warning(const char *errstr, struct btrfs_device *dev, in scrub_print_common_warning()
872 struct btrfs_device *dev = NULL; in scrub_stripe_report_errors()
1232 static void scrub_throttle_dev_io(struct scrub_ctx *sctx, struct btrfs_device *device, in scrub_throttle_dev_io()
1527 struct btrfs_device *dev, u64 physical, in scrub_find_fill_first_stripe()
1907 struct btrfs_device *dev, int mirror_num, in queue_scrub_stripe()
1948 struct btrfs_device *scrub_dev, in scrub_raid56_parity_stripe()
2120 struct btrfs_device *device, in scrub_simple_mirror()
[all …]
H A Dbio.c168 struct btrfs_device *dev) in btrfs_end_repair_bio()
267 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) in btrfs_check_read_bio()
312 static void btrfs_log_dev_io_error(struct bio *bio, struct btrfs_device *dev) in btrfs_log_dev_io_error()
349 struct btrfs_device *dev = bio->bi_private; in btrfs_simple_end_io()
427 static void btrfs_submit_dev_bio(struct btrfs_device *dev, struct bio *bio) in btrfs_submit_dev_bio()
H A Dfs.h39 struct btrfs_device;
310 struct btrfs_device *srcdev;
311 struct btrfs_device *tgtdev;
H A Ddisk-io.h17 struct btrfs_device;
H A Dsuper.c308 struct btrfs_device *device; in btrfs_parse_param()
1600 struct btrfs_device *device; in btrfs_calc_avail_data_space()
1835 struct btrfs_device *device; in btrfs_get_tree_super()
2204 struct btrfs_device *device = NULL; in btrfs_control_ioctl()
2280 static int check_dev_super(struct btrfs_device *dev) in check_dev_super()
2335 struct btrfs_device *device; in btrfs_unfreeze()
H A Ddisk-io.c3690 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write()
3804 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers()
3899 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors) in wait_dev_supers()
3964 static void write_dev_flush(struct btrfs_device *device) in write_dev_flush()
3983 static bool wait_dev_flush(struct btrfs_device *device) in wait_dev_flush()
4008 struct btrfs_device *dev; in barrier_all_devices()
4084 struct btrfs_device *dev; in write_all_supers()
4822 struct btrfs_device *dev, *tmp; in btrfs_cleanup_one_transaction()
H A Dbtrfs_inode.h525 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
H A Dioctl.c414 struct btrfs_device *device; in btrfs_ioctl_fitrim()
1044 struct btrfs_device *device = NULL; in btrfs_ioctl_resize()
2770 struct btrfs_device *device; in btrfs_ioctl_fs_info()
2825 struct btrfs_device *dev; in btrfs_ioctl_dev_info()
H A Dextent-tree.c1347 struct btrfs_device *dev = stripe->dev; in do_discard_extent()
6374 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents()
6476 struct btrfs_device *device; in btrfs_trim_fs()
H A Dblock-group.c2639 const struct btrfs_device *device, u64 chunk_offset, in insert_dev_extent()
2686 struct btrfs_device *device; in insert_dev_extents()
H A Dinode.c3352 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev, in btrfs_data_csum_ok()
9871 struct btrfs_device *device = NULL; in btrfs_swap_activate()
/linux/fs/btrfs/tests/
H A Dbtrfs-tests.c97 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device()
99 struct btrfs_device *dev; in btrfs_alloc_dummy_device()
112 static void btrfs_free_dummy_device(struct btrfs_device *dev) in btrfs_free_dummy_device()
162 struct btrfs_device *dev, *tmp; in btrfs_free_dummy_fs_info()
H A Dbtrfs-tests.h58 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);
H A Draid-stripe-tree-tests.c21 static struct btrfs_device *btrfs_device_by_devid(struct btrfs_fs_devices *fs_devices, in btrfs_device_by_devid()
24 struct btrfs_device *dev; in btrfs_device_by_devid()
1123 struct btrfs_device *dev; in run_test()
H A Dextent-map-tests.c1034 struct btrfs_device *dev = btrfs_alloc_dummy_device(fs_info); in test_rmap_block()