Lines Matching refs:btrfs_device
261 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()
859 struct btrfs_device *device; in device_list_add()
1071 struct btrfs_device *device; in clone_fs_devices()
1072 struct btrfs_device *orig_dev; in clone_fs_devices()
1123 struct btrfs_device **latest_dev) in __btrfs_free_extra_devids()
1125 struct btrfs_device *device, *next; in __btrfs_free_extra_devids()
1172 struct btrfs_device *latest_dev = NULL; in btrfs_free_extra_devids()
1186 static void btrfs_close_bdev(struct btrfs_device *device) in btrfs_close_bdev()
1199 static void btrfs_close_one_device(struct btrfs_device *device) in btrfs_close_one_device()
1252 struct btrfs_device *device, *tmp; in close_fs_devices()
1303 struct btrfs_device *device; in open_fs_devices()
1304 struct btrfs_device *latest_dev = NULL; in open_fs_devices()
1305 struct btrfs_device *tmp_device; in open_fs_devices()
1360 const struct btrfs_device *dev1, *dev2; in devid_cmp()
1362 dev1 = list_entry(a, struct btrfs_device, dev_list); in devid_cmp()
1363 dev2 = list_entry(b, struct btrfs_device, dev_list); in devid_cmp()
1472 struct btrfs_device *device; in btrfs_skip_registration()
1509 struct btrfs_device *btrfs_scan_one_device(const char *path, blk_mode_t flags, in btrfs_scan_one_device()
1514 struct btrfs_device *device = NULL; in btrfs_scan_one_device()
1596 static bool contains_pending_extent(struct btrfs_device *device, u64 *start, in contains_pending_extent()
1617 static u64 dev_extent_search_start(struct btrfs_device *device) in dev_extent_search_start()
1634 static bool dev_extent_hole_check_zoned(struct btrfs_device *device, in dev_extent_hole_check_zoned()
1689 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start, in dev_extent_hole_check()
1760 static int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1904 struct btrfs_device *device, in btrfs_free_dev_extent()
2023 struct btrfs_device *device) in btrfs_add_dev_item()
2097 struct btrfs_device *device) in btrfs_rm_dev_item()
2158 static struct btrfs_device * btrfs_find_next_active_device( in btrfs_find_next_active_device()
2159 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device) in btrfs_find_next_active_device()
2161 struct btrfs_device *next_device; in btrfs_find_next_active_device()
2179 void __cold btrfs_assign_next_active_device(struct btrfs_device *device, in btrfs_assign_next_active_device()
2180 struct btrfs_device *next_device) in btrfs_assign_next_active_device()
2237 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, struct btrfs_device *device) in btrfs_scratch_superblocks()
2264 struct btrfs_device *device; in btrfs_rm_device()
2431 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
2458 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
2485 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
2582 struct btrfs_device *btrfs_find_device_by_devspec( in btrfs_find_device_by_devspec()
2587 struct btrfs_device *device; in btrfs_find_device_by_devspec()
2658 struct btrfs_device *device; in btrfs_setup_sprout()
2713 struct btrfs_device *device; in btrfs_finish_sprout()
2782 struct btrfs_device *device; in btrfs_init_new_device()
3022 struct btrfs_device *device) in btrfs_update_device()
3066 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
3357 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
4926 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
5308 struct btrfs_device *device; in gather_device_info()
5497 struct btrfs_device *device = stripe->dev; in chunk_map_device_set_bits()
5509 struct btrfs_device *device = stripe->dev; in chunk_map_device_clear_bits()
5628 struct btrfs_device *dev = map->stripes[i].dev; in create_chunk()
5765 struct btrfs_device *device = map->stripes[i].dev; in btrfs_chunk_alloc_add_chunk_item()
5774 struct btrfs_device *device = map->stripes[i].dev; in btrfs_chunk_alloc_add_chunk_item()
5981 const struct btrfs_device *device = map->stripes[index].dev; in btrfs_read_preferred()
6024 struct btrfs_device *device = map->stripes[first].dev; in btrfs_read_rr()
6056 struct btrfs_device *srcdev; in find_live_mirror()
6844 const struct btrfs_device *device) in dev_args_match_device()
6867 struct btrfs_device *btrfs_find_device(const struct btrfs_fs_devices *fs_devices, in btrfs_find_device()
6870 struct btrfs_device *device; in btrfs_find_device()
6892 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices, in add_missing_dev()
6895 struct btrfs_device *device; in add_missing_dev()
6936 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6940 struct btrfs_device *dev; in btrfs_alloc_device()
7048 static struct btrfs_device *handle_missing_device(struct btrfs_fs_info *fs_info, in handle_missing_device()
7051 struct btrfs_device *dev; in handle_missing_device()
7166 struct btrfs_device *device) in fill_device_from_item()
7251 struct btrfs_device *device; in read_one_dev()
7434 struct btrfs_device *failing_dev) in btrfs_check_rw_degradable()
7455 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
7619 struct btrfs_device *device; in btrfs_init_devices_late()
7664 static int btrfs_device_init_dev_stats(struct btrfs_device *device, in btrfs_device_init_dev_stats()
7711 struct btrfs_device *device; in btrfs_init_dev_stats()
7740 struct btrfs_device *device) in update_dev_stat_item()
7809 struct btrfs_device *device; in btrfs_run_dev_stats()
7842 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
7858 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
7882 struct btrfs_device *dev; in btrfs_get_dev_stats()
7926 struct btrfs_device *curr, *next; in btrfs_commit_device_sizes()
7966 struct btrfs_device *dev; in verify_one_dev_extent()