Lines Matching refs:btrfs_device
221 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
222 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
371 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device()
382 struct btrfs_device *device; in free_fs_devices()
386 struct btrfs_device, dev_list); in free_fs_devices()
410 static struct btrfs_device *__alloc_device(struct btrfs_fs_info *fs_info) in __alloc_device()
412 struct btrfs_device *dev; in __alloc_device()
542 static bool device_path_matched(const char *path, struct btrfs_device *device) in device_path_matched()
565 struct btrfs_device *skip_device) in btrfs_free_stale_devices()
568 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices()
617 struct btrfs_device *device, fmode_t flags, in btrfs_open_one_device()
778 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
782 struct btrfs_device *device; in device_list_add()
998 struct btrfs_device *device; in clone_fs_devices()
999 struct btrfs_device *orig_dev; in clone_fs_devices()
1047 int step, struct btrfs_device **latest_dev) in __btrfs_free_extra_devids()
1049 struct btrfs_device *device, *next; in __btrfs_free_extra_devids()
1094 struct btrfs_device *latest_dev = NULL; in btrfs_free_extra_devids()
1108 static void btrfs_close_bdev(struct btrfs_device *device) in btrfs_close_bdev()
1121 static void btrfs_close_one_device(struct btrfs_device *device) in btrfs_close_one_device()
1155 struct btrfs_device *device, *tmp; in close_fs_devices()
1193 struct btrfs_device *device; in open_fs_devices()
1194 struct btrfs_device *latest_dev = NULL; in open_fs_devices()
1195 struct btrfs_device *tmp_device; in open_fs_devices()
1226 struct btrfs_device *dev1, *dev2; in devid_cmp()
1228 dev1 = list_entry(a, struct btrfs_device, dev_list); in devid_cmp()
1229 dev2 = list_entry(b, struct btrfs_device, dev_list); in devid_cmp()
1330 struct btrfs_device *btrfs_scan_one_device(const char *path, fmode_t flags, in btrfs_scan_one_device()
1335 struct btrfs_device *device = NULL; in btrfs_scan_one_device()
1378 static bool contains_pending_extent(struct btrfs_device *device, u64 *start, in contains_pending_extent()
1399 static u64 dev_extent_search_start(struct btrfs_device *device, u64 start) in dev_extent_search_start()
1424 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start, in dev_extent_hole_check()
1480 static int find_free_dev_extent_start(struct btrfs_device *device, in find_free_dev_extent_start()
1622 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1630 struct btrfs_device *device, in btrfs_free_dev_extent()
1689 struct btrfs_device *device, in btrfs_alloc_dev_extent()
1797 struct btrfs_device *device) in btrfs_add_dev_item()
1865 static int btrfs_rm_dev_item(struct btrfs_device *device) in btrfs_rm_dev_item()
1943 static struct btrfs_device * btrfs_find_next_active_device( in btrfs_find_next_active_device()
1944 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device) in btrfs_find_next_active_device()
1946 struct btrfs_device *next_device; in btrfs_find_next_active_device()
1964 void __cold btrfs_assign_next_active_device(struct btrfs_device *device, in btrfs_assign_next_active_device()
1965 struct btrfs_device *next_device) in btrfs_assign_next_active_device()
2043 struct btrfs_device *device; in btrfs_rm_device()
2189 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
2216 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
2243 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
2277 static struct btrfs_device *btrfs_find_device_by_path( in btrfs_find_device_by_path()
2285 struct btrfs_device *device; in btrfs_find_device_by_path()
2311 struct btrfs_device *btrfs_find_device_by_devspec( in btrfs_find_device_by_devspec()
2315 struct btrfs_device *device; in btrfs_find_device_by_devspec()
2351 struct btrfs_device *device; in btrfs_prepare_sprout()
2421 struct btrfs_device *device; in btrfs_finish_sprout()
2491 struct btrfs_device *device; in btrfs_init_new_device()
2719 struct btrfs_device *device) in btrfs_update_device()
2765 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
2951 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
4563 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
4906 struct btrfs_device *device; in gather_device_info()
5117 struct btrfs_device *dev = map->stripes[i].dev; in create_chunk()
5213 struct btrfs_device *device; in btrfs_finish_chunk_alloc()
5472 struct btrfs_device *srcdev; in find_live_mirror()
6281 struct btrfs_device *dev = btrfs_io_bio(bio)->device; in btrfs_end_bio()
6328 u64 physical, struct btrfs_device *dev) in submit_stripe_bio()
6368 struct btrfs_device *dev; in btrfs_map_bio()
6449 struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices, in btrfs_find_device()
6453 struct btrfs_device *device; in btrfs_find_device()
6481 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices, in add_missing_dev()
6484 struct btrfs_device *device; in add_missing_dev()
6522 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6526 struct btrfs_device *dev; in btrfs_alloc_device()
6698 struct btrfs_device *device) in fill_device_from_item()
6778 struct btrfs_device *device; in read_one_dev()
7001 struct btrfs_device *failing_dev) in btrfs_check_rw_degradable()
7027 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
7189 struct btrfs_device *device; in btrfs_init_devices_late()
7229 static int btrfs_device_init_dev_stats(struct btrfs_device *device, in btrfs_device_init_dev_stats()
7273 struct btrfs_device *device; in btrfs_init_dev_stats()
7302 struct btrfs_device *device) in update_dev_stat_item()
7373 struct btrfs_device *device; in btrfs_run_dev_stats()
7406 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
7412 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev) in btrfs_dev_stat_print_on_error()
7426 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
7449 struct btrfs_device *dev; in btrfs_get_dev_stats()
7493 struct btrfs_device *curr, *next; in btrfs_commit_device_sizes()
7534 struct btrfs_device *dev; in verify_one_dev_extent()