Lines Matching refs:btrfs_device
129 static void __btrfs_reset_dev_stats(struct btrfs_device *dev);
130 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
131 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
267 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device()
276 struct btrfs_device *device; in free_fs_devices()
280 struct btrfs_device, dev_list); in free_fs_devices()
317 static struct btrfs_device *__alloc_device(void) in __alloc_device()
319 struct btrfs_device *dev; in __alloc_device()
357 static struct btrfs_device *find_device(struct btrfs_fs_devices *fs_devices, in find_device()
360 struct btrfs_device *dev; in find_device()
444 static noinline void run_scheduled_bios(struct btrfs_device *device) in run_scheduled_bios()
619 struct btrfs_device *device; in pending_bios_fn()
621 device = container_of(work, struct btrfs_device, work); in pending_bios_fn()
634 struct btrfs_device *skip_device) in btrfs_free_stale_devices()
637 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices()
681 struct btrfs_device *device, fmode_t flags, in btrfs_open_one_device()
753 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
757 struct btrfs_device *device; in device_list_add()
884 struct btrfs_device *device; in clone_fs_devices()
885 struct btrfs_device *orig_dev; in clone_fs_devices()
935 struct btrfs_device *device, *next; in btrfs_free_extra_devids()
936 struct btrfs_device *latest_dev = NULL; in btrfs_free_extra_devids()
998 struct btrfs_device *device; in free_device_rcu()
1000 device = container_of(head, struct btrfs_device, rcu); in free_device_rcu()
1004 static void btrfs_close_bdev(struct btrfs_device *device) in btrfs_close_bdev()
1017 static void btrfs_close_one_device(struct btrfs_device *device) in btrfs_close_one_device()
1020 struct btrfs_device *new_device; in btrfs_close_one_device()
1056 struct btrfs_device *device, *tmp; in close_fs_devices()
1100 struct btrfs_device *device; in open_fs_devices()
1101 struct btrfs_device *latest_dev = NULL; in open_fs_devices()
1128 struct btrfs_device *dev1, *dev2; in devid_cmp()
1130 dev1 = list_entry(a, struct btrfs_device, dev_list); in devid_cmp()
1131 dev2 = list_entry(b, struct btrfs_device, dev_list); in devid_cmp()
1216 struct btrfs_device *btrfs_scan_one_device(const char *path, fmode_t flags, in btrfs_scan_one_device()
1221 struct btrfs_device *device = NULL; in btrfs_scan_one_device()
1261 struct btrfs_device *device, in contains_pending_extent()
1337 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent_start()
1498 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1507 struct btrfs_device *device, in btrfs_free_dev_extent()
1566 struct btrfs_device *device, in btrfs_alloc_dev_extent()
1669 struct btrfs_device *device) in btrfs_add_dev_item()
1737 struct btrfs_device *device) in btrfs_rm_dev_item()
1815 static struct btrfs_device * btrfs_find_next_active_device( in btrfs_find_next_active_device()
1816 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device) in btrfs_find_next_active_device()
1818 struct btrfs_device *next_device; in btrfs_find_next_active_device()
1836 void btrfs_assign_next_active_device(struct btrfs_device *device, in btrfs_assign_next_active_device()
1837 struct btrfs_device *this_dev) in btrfs_assign_next_active_device()
1840 struct btrfs_device *next_device; in btrfs_assign_next_active_device()
1860 struct btrfs_device *device; in btrfs_rm_device()
2000 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
2028 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
2066 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
2101 struct btrfs_device **device) in btrfs_find_device_by_path()
2128 struct btrfs_device **device) in btrfs_find_device_missing_or_by_path()
2133 struct btrfs_device *tmp; in btrfs_find_device_missing_or_by_path()
2158 struct btrfs_device **device) in btrfs_find_device_by_devspec()
2186 struct btrfs_device *device; in btrfs_prepare_sprout()
2250 struct btrfs_device *device; in btrfs_finish_sprout()
2319 struct btrfs_device *device; in btrfs_init_new_device()
2541 struct btrfs_device *device) in btrfs_update_device()
2587 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
2769 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
3430 struct btrfs_device *device; in __btrfs_balance()
4327 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
4583 struct btrfs_device *device; in __btrfs_alloc_chunk()
4875 struct btrfs_device *device; in btrfs_finish_chunk_alloc()
5170 struct btrfs_device *srcdev; in find_live_mirror()
6012 struct btrfs_device *dev; in btrfs_end_bio()
6068 static noinline void btrfs_schedule_bio(struct btrfs_device *device, in btrfs_schedule_bio()
6114 struct btrfs_device *dev = bbio->stripes[dev_nr].dev; in submit_stripe_bio()
6156 struct btrfs_device *dev; in btrfs_map_bio()
6228 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, in btrfs_find_device()
6231 struct btrfs_device *device; in btrfs_find_device()
6247 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices, in add_missing_dev()
6250 struct btrfs_device *device; in add_missing_dev()
6279 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6283 struct btrfs_device *dev; in btrfs_alloc_device()
6528 struct btrfs_device *device) in fill_device_from_item()
6609 struct btrfs_device *device; in read_one_dev()
6830 struct btrfs_device *failing_dev) in btrfs_check_rw_degradable()
6856 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
6983 struct btrfs_device *device; in btrfs_init_devices_late()
6995 static void __btrfs_reset_dev_stats(struct btrfs_device *dev) in __btrfs_reset_dev_stats()
7012 struct btrfs_device *device; in btrfs_init_dev_stats()
7065 struct btrfs_device *device) in update_dev_stat_item()
7136 struct btrfs_device *device; in btrfs_run_dev_stats()
7169 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
7175 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev) in btrfs_dev_stat_print_on_error()
7189 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
7212 struct btrfs_device *dev; in btrfs_get_dev_stats()
7281 struct btrfs_device *curr, *next; in btrfs_update_commit_device_size()
7303 struct btrfs_device *dev; in btrfs_update_commit_device_bytes_used()