/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | zoned.h | 41 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, 44 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache); 45 void btrfs_destroy_dev_zone_info(struct btrfs_device *device); 46 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev); 51 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw, 53 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror); 55 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, 57 int btrfs_reset_device_zone(struct btrfs_device *device, u64 physical, 59 int btrfs_ensure_empty_zones(struct btrfs_device *device, u64 start, u64 size); 68 int btrfs_zoned_issue_zeroout(struct btrfs_device *devic [all...] |
H A D | volumes.h | 82 struct btrfs_device { struct 189 * points to a struct btrfs_device. 206 btrfs_device_get_##name(const struct btrfs_device *dev) \ 219 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 230 btrfs_device_get_##name(const struct btrfs_device *dev) \ 241 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 250 btrfs_device_get_##name(const struct btrfs_device *dev) \ 256 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 331 struct btrfs_device *latest_dev; 383 struct btrfs_device *de [all...] |
H A D | sysfs.h | 17 int btrfs_sysfs_add_device(struct btrfs_device *device); 18 void btrfs_sysfs_remove_device(struct btrfs_device *device); 33 void btrfs_sysfs_update_devid(struct btrfs_device *device);
|
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() 338 struct btrfs_device *device; in btrfs_get_dev_zone_info_all_devices() 360 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache) in btrfs_get_dev_zone_info() 618 void btrfs_destroy_dev_zone_info(struct btrfs_device *device) in btrfs_destroy_dev_zone_info() 633 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev) in btrfs_clone_dev_zone_info() 673 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zone() 688 struct btrfs_device *device; in btrfs_check_for_zoned_device() 706 struct btrfs_device *device; in btrfs_check_zoned_mode() 915 int btrfs_sb_log_location(struct btrfs_device *devic [all...] |
H A D | sysfs.c | 1440 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices() 1681 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device() 1707 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show() 1720 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show() 1734 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show() 1747 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_show() [all...] |
H A D | dev-replace.c | 245 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev() 246 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev() 249 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev() 454 struct btrfs_device *src_dev) in mark_block_group_to_copy() 547 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev, in btrfs_finish_block_group_to_copy() 609 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start() 610 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start() 800 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state() 801 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state() 827 struct btrfs_device *srcde in btrfs_dev_replace_update_device_in_mapping_tree() [all...] |
H A D | volumes.c | 250 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device); 276 * btrfs_device::name - renames (write side), read is RCU 395 static void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device() 406 struct btrfs_device *device; in free_fs_devices() 411 struct btrfs_device, dev_list); in free_fs_devices() 561 static int btrfs_free_stale_devices(dev_t devt, struct btrfs_device *skip_device) in btrfs_free_stale_devices() 564 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices() 613 struct btrfs_device *device, blk_mode_t flags, in btrfs_open_one_device() 777 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add() 781 struct btrfs_device *devic in device_list_add() [all...] |
H A D | raid56.h | 183 struct btrfs_device; 191 struct btrfs_device *scrub_dev,
|
H A D | scrub.c | 115 struct btrfs_device *dev; 205 struct btrfs_device *wr_tgtdev; 229 struct btrfs_device *dev; 479 static void scrub_print_common_warning(const char *errstr, struct btrfs_device *dev, in scrub_print_common_warning() 873 struct btrfs_device *dev = NULL; in scrub_stripe_report_errors() 1233 static void scrub_throttle_dev_io(struct scrub_ctx *sctx, struct btrfs_device *device, in scrub_throttle_dev_io() 1524 struct btrfs_device *dev, u64 physical, in scrub_find_fill_first_stripe() 1803 struct btrfs_device *dev, int mirror_num, in queue_scrub_stripe() 1844 struct btrfs_device *scrub_dev, in scrub_raid56_parity_stripe() 2017 struct btrfs_device *devic in scrub_simple_mirror() [all...] |
H A D | scrub.h | 12 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
|
H A D | dev-replace.h | 25 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
|
H A D | bio.c | 189 struct btrfs_device *dev) in btrfs_end_repair_bio() 282 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) in btrfs_check_read_bio() 327 static void btrfs_log_dev_io_error(struct bio *bio, struct btrfs_device *dev) in btrfs_log_dev_io_error() 364 struct btrfs_device *dev = bio->bi_private; in btrfs_simple_end_io() 437 static void btrfs_submit_dev_bio(struct btrfs_device *dev, struct bio *bio) in btrfs_submit_dev_bio()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | volumes.h | 55 struct btrfs_device { struct 151 btrfs_device_get_##name(const struct btrfs_device *dev) \ 164 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 175 btrfs_device_get_##name(const struct btrfs_device *dev) \ 186 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 195 btrfs_device_get_##name(const struct btrfs_device *dev) \ 201 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 292 struct btrfs_device *device; 318 struct btrfs_device *dev; 347 struct btrfs_device *de [all...] |
H A D | sysfs.h | 17 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);
|
H A D | dev-replace.c | 240 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev() 241 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev() 243 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev() 442 static char* btrfs_dev_name(struct btrfs_device *device) in btrfs_dev_name() 458 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start() 459 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start() 624 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state() 625 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state() 651 struct btrfs_device *srcdev, in btrfs_dev_replace_update_device_in_mapping_tree() 652 struct btrfs_device *tgtde in btrfs_dev_replace_update_device_in_mapping_tree() [all...] |
H A D | raid56.h | 31 struct btrfs_device; 45 struct btrfs_device *scrub_dev,
|
H A D | reada.c | 71 struct btrfs_device *device; 72 struct btrfs_device *devs[BTRFS_MAX_MIRRORS]; /* full list, incl 224 static struct reada_zone *reada_find_zone(struct btrfs_device *dev, u64 logical, in reada_find_zone() 307 struct btrfs_device *dev; in reada_find_extent() 308 struct btrfs_device *prev_dev; in reada_find_extent() 598 static int reada_pick_zone(struct btrfs_device *dev) in reada_pick_zone() 676 static int reada_start_machine_dev(struct btrfs_device *dev) in reada_start_machine_dev() 780 struct btrfs_device *device; in reada_start_for_fsdevs() 845 struct btrfs_device *device; in dump_devs() 1037 void btrfs_reada_remove_dev(struct btrfs_device *de [all...] |
H A D | volumes.c | 222 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev); 223 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device); 254 * btrfs_device::name - renames (write side), read is RCU 372 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device() 383 struct btrfs_device *device; in free_fs_devices() 388 struct btrfs_device, dev_list); in free_fs_devices() 408 * Returns a pointer to a new btrfs_device on success; ERR_PTR() on error. 412 static struct btrfs_device *__alloc_device(struct btrfs_fs_info *fs_info) in __alloc_device() 414 struct btrfs_device *dev; in __alloc_device() 551 static bool device_matched(const struct btrfs_device *devic [all...] |
H A D | sysfs.c | 986 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices() 1233 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device() 1264 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show() 1277 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show() 1291 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show() 1304 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show() [all...] |
H A D | scrub.c | 66 struct btrfs_device *dev; 87 struct btrfs_device *dev; 126 struct btrfs_device *scrub_dev; 175 struct btrfs_device *wr_tgtdev; 200 struct btrfs_device *dev; 239 u64 physical, struct btrfs_device *dev, u64 flags, 248 struct btrfs_device **extent_dev, 730 struct btrfs_device *dev; in scrub_print_warning() 824 struct btrfs_device *dev; in scrub_handle_errored_block() 2057 struct btrfs_device *de in scrub_missing_raid56_worker() [all...] |
H A D | disk-io.h | 38 struct btrfs_device;
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | btrfs-tests.c | 89 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() 91 struct btrfs_device *dev; in btrfs_alloc_dummy_device() 104 static void btrfs_free_dummy_device(struct btrfs_device *dev) in btrfs_free_dummy_device() 148 struct btrfs_device *dev, *tmp; in btrfs_free_dummy_fs_info()
|
H A D | btrfs-tests.h | 49 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);
|
/kernel/linux/linux-6.6/fs/btrfs/tests/ |
H A D | btrfs-tests.c | 97 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() 157 struct btrfs_device *dev, *tmp; in btrfs_free_dummy_fs_info()
|
H A D | btrfs-tests.h | 49 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);
|