Home
last modified time | relevance | path

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

12

/openbmc/linux/fs/btrfs/
H A Dzoned.h41 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 *device, u64 physical, u64 length);
[all …]
H A Dvolumes.h88 struct btrfs_device { struct
212 btrfs_device_get_##name(const struct btrfs_device *dev) \
225 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
236 btrfs_device_get_##name(const struct btrfs_device *dev) \
247 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
256 btrfs_device_get_##name(const struct btrfs_device *dev) \
262 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
337 struct btrfs_device *latest_dev;
389 struct btrfs_device *dev;
399 struct btrfs_device *dev;
[all …]
H A Dsysfs.h17 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 Dvolumes.c250 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
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()
692 static bool is_same_device(struct btrfs_device *device, const char *new_path) in is_same_device()
813 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
817 struct btrfs_device *device; in device_list_add()
[all …]
H A Ddev-replace.c245 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()
801 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state()
802 struct btrfs_device *tgtdev) in btrfs_set_target_alloc_state()
828 struct btrfs_device *srcdev, in btrfs_dev_replace_update_device_in_mapping_tree()
[all …]
H A Dzoned.c198 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 *device, int mirror, int rw, in btrfs_sb_log_location()
[all …]
H A Dsysfs.c1440 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()
1757 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_store()
1777 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show()
1789 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_fsid_show()
1799 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_error_stats_show()
[all …]
H A Draid56.h183 struct btrfs_device;
191 struct btrfs_device *scrub_dev,
H A Dscrub.c115 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()
1807 struct btrfs_device *dev, int mirror_num, in queue_scrub_stripe()
1848 struct btrfs_device *scrub_dev, in scrub_raid56_parity_stripe()
2021 struct btrfs_device *device, in scrub_simple_mirror()
[all …]
H A Dscrub.h12 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
H A Ddev-replace.h25 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
H A Dbio.c189 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()
H A Ddisk-io.h28 struct btrfs_device;
H A Dfs.h264 struct btrfs_device *srcdev;
265 struct btrfs_device *tgtdev;
H A Dsuper.c865 struct btrfs_device *device = NULL; in btrfs_parse_device_options()
1448 struct btrfs_device *device = NULL; in btrfs_mount_root()
1921 struct btrfs_device *device; in btrfs_calc_avail_data_space()
2187 struct btrfs_device *device = NULL; in btrfs_control_ioctl()
2258 static int check_dev_super(struct btrfs_device *dev) in check_dev_super()
2312 struct btrfs_device *device; in btrfs_unfreeze()
H A Dcheck-integrity.c314 struct btrfs_device *device,
577 struct btrfs_device *device; in btrfsic_process_superblock()
701 struct btrfs_device *device, in btrfsic_process_superblock_dev_mirror()
1464 struct btrfs_device *device; in btrfsic_map_block()
2738 struct btrfs_device *device; in btrfsic_mount()
2809 struct btrfs_device *device; in btrfsic_unmount()
H A Dbtrfs_inode.h418 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
H A Ddisk-io.c3639 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write()
3756 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers()
3852 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors) in wait_dev_supers()
3926 static void write_dev_flush(struct btrfs_device *device) in write_dev_flush()
3962 static bool wait_dev_flush(struct btrfs_device *device) in wait_dev_flush()
3987 struct btrfs_device *dev; in barrier_all_devices()
4063 struct btrfs_device *dev; in write_all_supers()
4891 struct btrfs_device *dev, *tmp; in btrfs_cleanup_one_transaction()
H A Dextent_map.c365 struct btrfs_device *device = stripe->dev; in extent_map_device_set_bits()
381 struct btrfs_device *device = stripe->dev; in extent_map_device_clear_bits()
H A Dctree.h51 struct btrfs_device;
H A Dioctl.c483 struct btrfs_device *device; in btrfs_ioctl_fitrim()
1128 struct btrfs_device *device = NULL; in btrfs_ioctl_resize()
2829 struct btrfs_device *device; in btrfs_ioctl_fs_info()
2884 struct btrfs_device *dev; in btrfs_ioctl_dev_info()
H A Dextent-tree.c1334 struct btrfs_device *dev = stripe->dev; in do_discard_extent()
6027 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents()
6129 struct btrfs_device *device; in btrfs_trim_fs()
/openbmc/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()
157 struct btrfs_device *dev, *tmp; in btrfs_free_dummy_fs_info()
H A Dbtrfs-tests.h49 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);
H A Dextent-map-tests.c898 struct btrfs_device *dev = btrfs_alloc_dummy_device(fs_info); in test_rmap_block()

12