/linux/fs/btrfs/ |
H A D | zoned.h | 57 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 D | volumes.h | 109 struct btrfs_device { struct 238 btrfs_device_get_##name(const struct btrfs_device *dev) \ 251 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 262 btrfs_device_get_##name(const struct btrfs_device *dev) \ 273 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 282 btrfs_device_get_##name(const struct btrfs_device *dev) \ 288 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 404 struct btrfs_device *latest_dev; 483 struct btrfs_device *dev; 492 struct btrfs_device *dev; [all …]
|
H A D | sysfs.h | 12 struct btrfs_device; 27 int btrfs_sysfs_add_device(struct btrfs_device *device); 28 void btrfs_sysfs_remove_device(struct btrfs_device *device); 43 void btrfs_sysfs_update_devid(struct btrfs_device *device);
|
H A D | volumes.c | 258 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device); 400 static void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device() 415 struct btrfs_device *device; in free_fs_devices() 421 struct btrfs_device, dev_list); in free_fs_devices() 526 static int btrfs_free_stale_devices(dev_t devt, struct btrfs_device *skip_device) in btrfs_free_stale_devices() 529 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices() 603 struct btrfs_device *device; in find_fsid_by_device() 649 struct btrfs_device *device, blk_mode_t flags, in btrfs_open_one_device() 738 static bool is_same_device(struct btrfs_device *device, const char *new_path) in is_same_device() 781 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add() [all …]
|
H A D | dev-replace.c | 236 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev() 237 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev() 240 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev() 441 struct btrfs_device *src_dev) in mark_block_group_to_copy() 534 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev, in btrfs_finish_block_group_to_copy() 594 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start() 595 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start() 786 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state() 787 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state() 813 struct btrfs_device *srcdev, in btrfs_dev_replace_update_device_in_mapping_tree() [all …]
|
H A D | scrub.h | 9 struct btrfs_device; 18 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
|
H A D | zoned.c | 198 static int emulate_report_zones(struct btrfs_device *device, u64 pos, in emulate_report_zones() 223 static int btrfs_get_dev_zones(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zones() 331 struct btrfs_device *device; in btrfs_get_dev_zone_info_all_devices() 353 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache) in btrfs_get_dev_zone_info() 598 void btrfs_destroy_dev_zone_info(struct btrfs_device *device) in btrfs_destroy_dev_zone_info() 613 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev) in btrfs_clone_dev_zone_info() 653 static int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, struct blk_zone *zone) in btrfs_get_dev_zone() 667 struct btrfs_device *device; in btrfs_check_for_zoned_device() 684 struct btrfs_device *device; in btrfs_check_zoned_mode() 904 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw, in btrfs_sb_log_location() [all …]
|
H A D | sysfs.c | 1736 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices() 1996 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device() 2022 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show() 2035 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show() 2049 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show() 2062 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_show() 2072 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_store() 2092 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show() 2104 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_fsid_show() 2114 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_error_stats_show() [all …]
|
H A D | raid56.h | 192 struct btrfs_device; 200 struct btrfs_device *scrub_dev,
|
H A D | scrub.c | 145 struct btrfs_device *dev; 213 struct btrfs_device *wr_tgtdev; 321 struct btrfs_device *dev; 584 static void scrub_print_common_warning(const char *errstr, struct btrfs_device *dev, in scrub_print_common_warning() 979 struct btrfs_device *dev = NULL; in scrub_stripe_report_errors() 1355 static void scrub_throttle_dev_io(struct scrub_ctx *sctx, struct btrfs_device *device, in scrub_throttle_dev_io() 1642 struct btrfs_device *dev, u64 physical, in scrub_find_fill_first_stripe() 2015 struct btrfs_device *dev, int mirror_num, in queue_scrub_stripe() 2056 struct btrfs_device *scrub_dev, in scrub_raid56_parity_stripe() 2231 struct btrfs_device *device, in scrub_simple_mirror() [all …]
|
H A D | bio.c | 160 struct btrfs_device *dev) in btrfs_end_repair_bio() 253 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) in btrfs_check_read_bio() 298 static void btrfs_log_dev_io_error(const struct bio *bio, struct btrfs_device *dev) in btrfs_log_dev_io_error() 335 struct btrfs_device *dev = bio->bi_private; in btrfs_simple_end_io() 413 static void btrfs_submit_dev_bio(struct btrfs_device *dev, struct bio *bio) in btrfs_submit_dev_bio()
|
H A D | fs.h | 39 struct btrfs_device; 326 struct btrfs_device *srcdev; 327 struct btrfs_device *tgtdev;
|
H A D | super.c | 366 struct btrfs_device *device; in btrfs_parse_param() 1610 struct btrfs_device *device; in btrfs_calc_avail_data_space() 1844 struct btrfs_device *device; in btrfs_get_tree_super() 2224 struct btrfs_device *device = NULL; in btrfs_control_ioctl() 2300 static int check_dev_super(struct btrfs_device *dev) in check_dev_super() 2355 struct btrfs_device *device; in btrfs_unfreeze()
|
H A D | disk-io.c | 3690 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write() 3725 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers() 3819 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors) in wait_dev_supers() 3883 static void write_dev_flush(struct btrfs_device *device) in write_dev_flush() 3902 static bool wait_dev_flush(struct btrfs_device *device) in wait_dev_flush() 3927 struct btrfs_device *dev; in barrier_all_devices() 4003 struct btrfs_device *dev; in write_all_supers() 4783 struct btrfs_device *dev, *tmp; in btrfs_cleanup_one_transaction()
|
H A D | btrfs_inode.h | 547 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
|
H A D | ioctl.c | 412 struct btrfs_device *device; in btrfs_ioctl_fitrim() 1038 struct btrfs_device *device = NULL; in btrfs_ioctl_resize() 2768 struct btrfs_device *device; in btrfs_ioctl_fs_info() 2823 struct btrfs_device *dev; in btrfs_ioctl_dev_info()
|
H A D | extent-tree.c | 1343 struct btrfs_device *dev = stripe->dev; in do_discard_extent() 6417 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents() 6519 struct btrfs_device *device; in btrfs_trim_fs()
|
H A D | block-group.c | 2690 const struct btrfs_device *device, u64 chunk_offset, in insert_dev_extent() 2735 struct btrfs_device *device; in insert_dev_extents()
|
H A D | inode.c | 3362 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev, in btrfs_data_csum_ok() 10060 struct btrfs_device *device = NULL; in btrfs_swap_activate()
|
/linux/fs/btrfs/tests/ |
H A D | btrfs-tests.h | 58 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);
|
H A D | raid-stripe-tree-tests.c | 21 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()
|