Home
last modified time | relevance | path

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

12

/linux-6.15/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);
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);
71 int btrfs_reset_device_zone(struct btrfs_device *device, u64 physical,
107 static inline int btrfs_get_dev_zone_info(struct btrfs_device *device, in btrfs_get_dev_zone_info()
120 struct btrfs_device *orig_dev) in btrfs_clone_dev_zone_info()
171 static inline int btrfs_reset_device_zone(struct btrfs_device *device, in btrfs_reset_device_zone()
178 static inline int btrfs_ensure_empty_zones(struct btrfs_device *device, in btrfs_ensure_empty_zones()
207 static inline int btrfs_zoned_issue_zeroout(struct btrfs_device *device, in btrfs_zoned_issue_zeroout()
[all …]
H A Dvolumes.h110 struct btrfs_device { struct
238 btrfs_device_get_##name(const struct btrfs_device *dev) \
262 btrfs_device_get_##name(const struct btrfs_device *dev) \
282 btrfs_device_get_##name(const struct btrfs_device *dev) \
404 struct btrfs_device *latest_dev;
473 struct btrfs_device *dev;
483 struct btrfs_device *dev;
589 struct btrfs_device *dev;
728 struct btrfs_device *this_dev);
745 struct btrfs_device *device, u64 new_size);
[all …]
H A Dsysfs.h12 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 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 Dvolumes.c414 struct btrfs_device *device; in free_fs_devices()
601 struct btrfs_device *device; in find_fsid_by_device()
783 struct btrfs_device *device; in device_list_add()
995 struct btrfs_device *device; in clone_fs_devices()
1227 struct btrfs_device *device; in open_fs_devices()
2175 struct btrfs_device *device; in btrfs_rm_device()
2498 struct btrfs_device *device; in btrfs_find_device_by_devspec()
6851 struct btrfs_device *dev; in btrfs_alloc_device()
6962 struct btrfs_device *dev; in handle_missing_device()
7793 struct btrfs_device *dev; in btrfs_get_dev_stats()
[all …]
H A Ddev-replace.c236 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()
594 struct btrfs_device *tgt_device = NULL; in btrfs_dev_replace_start()
595 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_start()
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()
814 struct btrfs_device *tgtdev) in btrfs_dev_replace_update_device_in_mapping_tree()
863 struct btrfs_device *tgt_device; in btrfs_dev_replace_finishing()
[all …]
H A Dzoned.c327 struct btrfs_device *device; in btrfs_get_dev_zone_info_all_devices()
660 struct btrfs_device *device; in btrfs_check_for_zoned_device()
677 struct btrfs_device *device; in btrfs_check_zoned_mode()
1283 struct btrfs_device *device; in btrfs_load_zone_info()
2033 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info()
2095 struct btrfs_device *device; in btrfs_zone_activate()
2286 struct btrfs_device *device = map->stripes[i].dev; in do_zone_finish()
2341 struct btrfs_device *device; in btrfs_can_activate_zone()
2461 struct btrfs_device *device; in btrfs_free_zone_cache()
2479 struct btrfs_device *device; in btrfs_zoned_should_reclaim()
[all …]
H A Draid56.h192 struct btrfs_device;
200 struct btrfs_device *scrub_dev,
H A Dsysfs.c1729 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices()
1996 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_in_fs_metadata_show()
2009 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_missing_show()
2023 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_replace_target_show()
2036 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_show()
2046 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_scrub_speed_max_store()
2066 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_writeable_show()
2078 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_fsid_show()
2088 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_devinfo_error_stats_show()
2132 struct btrfs_device *device = container_of(kobj, struct btrfs_device, in btrfs_release_devid_kobj()
[all …]
H A Dscrub.c115 struct btrfs_device *dev;
204 struct btrfs_device *wr_tgtdev;
228 struct btrfs_device *dev;
872 struct btrfs_device *dev = NULL; in scrub_stripe_report_errors()
2120 struct btrfs_device *device, in scrub_simple_mirror()
2220 struct btrfs_device *device, in scrub_simple_stripe()
2253 struct btrfs_device *scrub_dev, in scrub_stripe()
2417 struct btrfs_device *scrub_dev, in scrub_chunk()
2805 struct btrfs_device *scrub_dev) in scrub_supers()
2916 struct btrfs_device *dev; in btrfs_scrub_dev()
[all …]
H A Dbio.c160 struct btrfs_device *dev) in btrfs_end_repair_bio()
259 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) in btrfs_check_read_bio()
304 static void btrfs_log_dev_io_error(struct bio *bio, struct btrfs_device *dev) in btrfs_log_dev_io_error()
341 struct btrfs_device *dev = bio->bi_private; in btrfs_simple_end_io()
419 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;
326 struct btrfs_device *srcdev;
327 struct btrfs_device *tgtdev;
H A Ddisk-io.h17 struct btrfs_device;
H A Dsuper.c308 struct btrfs_device *device; in btrfs_parse_param()
1603 struct btrfs_device *device; in btrfs_calc_avail_data_space()
1838 struct btrfs_device *device; in btrfs_get_tree_super()
2207 struct btrfs_device *device = NULL; in btrfs_control_ioctl()
2283 static int check_dev_super(struct btrfs_device *dev) in check_dev_super()
2338 struct btrfs_device *device; in btrfs_unfreeze()
H A Ddisk-io.c3688 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write()
3802 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers()
3896 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors) in wait_dev_supers()
3960 static void write_dev_flush(struct btrfs_device *device) in write_dev_flush()
3979 static bool wait_dev_flush(struct btrfs_device *device) in wait_dev_flush()
4004 struct btrfs_device *dev; in barrier_all_devices()
4080 struct btrfs_device *dev; in write_all_supers()
4846 struct btrfs_device *dev, *tmp; in btrfs_cleanup_one_transaction()
H A Dbtrfs_inode.h534 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
H A Dioctl.c412 struct btrfs_device *device; in btrfs_ioctl_fitrim()
1040 struct btrfs_device *device = NULL; in btrfs_ioctl_resize()
2769 struct btrfs_device *device; in btrfs_ioctl_fs_info()
2824 struct btrfs_device *dev; in btrfs_ioctl_dev_info()
H A Dextent-tree.c1343 struct btrfs_device *dev = stripe->dev; in do_discard_extent()
6371 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents()
6473 struct btrfs_device *device; in btrfs_trim_fs()
H A Dblock-group.c2675 const struct btrfs_device *device, u64 chunk_offset, in insert_dev_extent()
2720 struct btrfs_device *device; in insert_dev_extents()
H A Draid56.c2446 struct btrfs_device *scrub_dev, in raid56_parity_alloc_scrub_rbio()
/linux-6.15/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()

12