Lines Matching refs:btrfs_device
138 struct btrfs_device *device);
140 static void __btrfs_reset_dev_stats(struct btrfs_device *dev);
141 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
142 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
196 struct btrfs_device *device; in free_fs_devices()
200 struct btrfs_device, dev_list); in free_fs_devices()
233 static struct btrfs_device *__alloc_device(void) in __alloc_device()
235 struct btrfs_device *dev; in __alloc_device()
257 static noinline struct btrfs_device *__find_device(struct list_head *head, in __find_device()
260 struct btrfs_device *dev; in __find_device()
344 static noinline void run_scheduled_bios(struct btrfs_device *device) in run_scheduled_bios()
536 struct btrfs_device *device; in pending_bios_fn()
538 device = container_of(work, struct btrfs_device, work); in pending_bios_fn()
543 void btrfs_free_stale_device(struct btrfs_device *cur_dev) in btrfs_free_stale_device()
546 struct btrfs_device *dev; in btrfs_free_stale_device()
610 struct btrfs_device *device; in device_list_add()
728 struct btrfs_device *device; in clone_fs_devices()
729 struct btrfs_device *orig_dev; in clone_fs_devices()
775 struct btrfs_device *device, *next; in btrfs_close_extra_devices()
776 struct btrfs_device *latest_dev = NULL; in btrfs_close_extra_devices()
835 struct btrfs_device *device; in __free_device()
837 device = container_of(work, struct btrfs_device, rcu_work); in __free_device()
844 struct btrfs_device *device; in free_device()
846 device = container_of(head, struct btrfs_device, rcu); in free_device()
852 static void btrfs_close_bdev(struct btrfs_device *device) in btrfs_close_bdev()
863 static void btrfs_prepare_close_one_device(struct btrfs_device *device) in btrfs_prepare_close_one_device()
866 struct btrfs_device *new_device; in btrfs_prepare_close_one_device()
898 struct btrfs_device *device, *tmp; in __btrfs_close_devices()
921 struct btrfs_device, dev_list); in __btrfs_close_devices()
969 struct btrfs_device *device; in __btrfs_open_devices()
970 struct btrfs_device *latest_dev = NULL; in __btrfs_open_devices()
1179 int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start, in btrfs_account_dev_extents_size()
1263 struct btrfs_device *device, in contains_pending_extent()
1339 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent_start()
1500 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1509 struct btrfs_device *device, in btrfs_free_dev_extent()
1567 struct btrfs_device *device, in btrfs_alloc_dev_extent()
1672 struct btrfs_device *device) in btrfs_add_device()
1742 struct btrfs_device *device) in btrfs_rm_dev_item()
1817 struct btrfs_device *btrfs_find_next_active_device(struct btrfs_fs_devices *fs_devs, in btrfs_find_next_active_device()
1818 struct btrfs_device *device) in btrfs_find_next_active_device()
1820 struct btrfs_device *next_device; in btrfs_find_next_active_device()
1838 struct btrfs_device *device, struct btrfs_device *this_dev) in btrfs_assign_next_active_device()
1840 struct btrfs_device *next_device; in btrfs_assign_next_active_device()
1859 struct btrfs_device *device; in btrfs_rm_device()
1997 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
2025 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
2063 struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
2097 struct btrfs_device **device) in btrfs_find_device_by_path()
2125 struct btrfs_device **device) in btrfs_find_device_missing_or_by_path()
2130 struct btrfs_device *tmp; in btrfs_find_device_missing_or_by_path()
2158 struct btrfs_device **device) in btrfs_find_device_by_devspec()
2187 struct btrfs_device *device; in btrfs_prepare_sprout()
2250 struct btrfs_device *device; in btrfs_finish_sprout()
2320 struct btrfs_device *device; in btrfs_init_new_device()
2525 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev()
2526 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev()
2529 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev()
2623 struct btrfs_device *tgtdev) in btrfs_init_dev_replace_tgtdev_for_resume()
2634 struct btrfs_device *device) in btrfs_update_device()
2682 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
2847 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
3468 struct btrfs_device *device; in __btrfs_balance()
4363 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
4690 struct btrfs_device *device; in __btrfs_alloc_chunk()
4694 device = list_entry(cur, struct btrfs_device, dev_alloc_list); in __btrfs_alloc_chunk()
4905 struct btrfs_device *device; in btrfs_finish_chunk_alloc()
5036 struct btrfs_device *device) in init_first_rw_device()
5242 struct btrfs_device *srcdev; in find_live_mirror()
6023 struct btrfs_device *dev; in btrfs_end_bio()
6081 struct btrfs_device *device, in btrfs_schedule_bio()
6136 struct btrfs_device *dev = bbio->stripes[dev_nr].dev; in submit_stripe_bio()
6184 struct btrfs_device *dev; in btrfs_map_bio()
6256 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, in btrfs_find_device()
6259 struct btrfs_device *device; in btrfs_find_device()
6276 static struct btrfs_device *add_missing_dev(struct btrfs_root *root, in add_missing_dev()
6280 struct btrfs_device *device; in add_missing_dev()
6309 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6313 struct btrfs_device *dev; in btrfs_alloc_device()
6515 struct btrfs_device *device) in fill_device_from_item()
6596 struct btrfs_device *device; in read_one_dev()
6888 struct btrfs_device *device; in btrfs_init_devices_late()
6900 static void __btrfs_reset_dev_stats(struct btrfs_device *dev) in __btrfs_reset_dev_stats()
6917 struct btrfs_device *device; in btrfs_init_dev_stats()
6971 struct btrfs_device *device) in update_dev_stat_item()
7040 struct btrfs_device *device; in btrfs_run_dev_stats()
7059 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
7065 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev) in btrfs_dev_stat_print_on_error()
7079 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
7102 struct btrfs_device *dev; in btrfs_get_dev_stats()
7173 struct btrfs_device *curr, *next; in btrfs_update_commit_device_size()
7195 struct btrfs_device *dev; in btrfs_update_commit_device_bytes_used()