Lines Matching refs:btrfs_device

123 				struct btrfs_device *device);
125 static void __btrfs_reset_dev_stats(struct btrfs_device *dev);
126 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
127 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
181 struct btrfs_device *device; in free_fs_devices()
185 struct btrfs_device, dev_list); in free_fs_devices()
218 static struct btrfs_device *__alloc_device(void) in __alloc_device()
220 struct btrfs_device *dev; in __alloc_device()
242 static noinline struct btrfs_device *__find_device(struct list_head *head, in __find_device()
245 struct btrfs_device *dev; in __find_device()
329 static noinline void run_scheduled_bios(struct btrfs_device *device) in run_scheduled_bios()
521 struct btrfs_device *device; in pending_bios_fn()
523 device = container_of(work, struct btrfs_device, work); in pending_bios_fn()
528 void btrfs_free_stale_device(struct btrfs_device *cur_dev) in btrfs_free_stale_device()
531 struct btrfs_device *dev; in btrfs_free_stale_device()
594 struct btrfs_device *device; in device_list_add()
711 struct btrfs_device *device; in clone_fs_devices()
712 struct btrfs_device *orig_dev; in clone_fs_devices()
757 struct btrfs_device *device, *next; in btrfs_close_extra_devices()
758 struct btrfs_device *latest_dev = NULL; in btrfs_close_extra_devices()
817 struct btrfs_device *device; in __free_device()
819 device = container_of(work, struct btrfs_device, rcu_work); in __free_device()
830 struct btrfs_device *device; in free_device()
832 device = container_of(head, struct btrfs_device, rcu); in free_device()
840 struct btrfs_device *device, *tmp; in __btrfs_close_devices()
893 struct btrfs_device *device; in __btrfs_open_devices()
894 struct btrfs_device *latest_dev = NULL; in __btrfs_open_devices()
1086 int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start, in btrfs_account_dev_extents_size()
1170 struct btrfs_device *device, in contains_pending_extent()
1246 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent_start()
1407 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1416 struct btrfs_device *device, in btrfs_free_dev_extent()
1474 struct btrfs_device *device, in btrfs_alloc_dev_extent()
1579 struct btrfs_device *device) in btrfs_add_device()
1650 struct btrfs_device *device) in btrfs_rm_dev_item()
1692 struct btrfs_device *device; in btrfs_rm_device()
1693 struct btrfs_device *next_device; in btrfs_rm_device()
1747 struct btrfs_device *tmp; in btrfs_rm_device()
1845 struct btrfs_device, dev_list); in btrfs_rm_device()
1954 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
1985 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
2016 struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
2018 struct btrfs_device *next_device; in btrfs_destroy_dev_replace_tgtdev()
2033 struct btrfs_device, dev_list); in btrfs_destroy_dev_replace_tgtdev()
2047 struct btrfs_device **device) in btrfs_find_device_by_path()
2075 struct btrfs_device **device) in btrfs_find_device_missing_or_by_path()
2080 struct btrfs_device *tmp; in btrfs_find_device_missing_or_by_path()
2112 struct btrfs_device *device; in btrfs_prepare_sprout()
2175 struct btrfs_device *device; in btrfs_finish_sprout()
2245 struct btrfs_device *device; in btrfs_init_new_device()
2452 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev()
2453 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev()
2456 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev()
2548 struct btrfs_device *tgtdev) in btrfs_init_dev_replace_tgtdev_for_resume()
2559 struct btrfs_device *device) in btrfs_update_device()
2607 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
2765 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
3382 struct btrfs_device *device; in __btrfs_balance()
4245 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
4573 struct btrfs_device *device; in __btrfs_alloc_chunk()
4577 device = list_entry(cur, struct btrfs_device, dev_alloc_list); in __btrfs_alloc_chunk()
4787 struct btrfs_device *device; in btrfs_finish_chunk_alloc()
4904 struct btrfs_device *device) in init_first_rw_device()
5110 struct btrfs_device *srcdev; in find_live_mirror()
5873 struct btrfs_device *dev; in btrfs_end_bio()
5931 struct btrfs_device *device, in btrfs_schedule_bio()
5987 struct btrfs_device *dev = bbio->stripes[dev_nr].dev; in submit_stripe_bio()
6033 struct btrfs_device *dev; in btrfs_map_bio()
6102 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, in btrfs_find_device()
6105 struct btrfs_device *device; in btrfs_find_device()
6122 static struct btrfs_device *add_missing_dev(struct btrfs_root *root, in add_missing_dev()
6126 struct btrfs_device *device; in add_missing_dev()
6155 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6159 struct btrfs_device *dev; in btrfs_alloc_device()
6286 struct btrfs_device *device) in fill_device_from_item()
6367 struct btrfs_device *device; in read_one_dev()
6619 struct btrfs_device *device; in btrfs_init_devices_late()
6631 static void __btrfs_reset_dev_stats(struct btrfs_device *dev) in __btrfs_reset_dev_stats()
6648 struct btrfs_device *device; in btrfs_init_dev_stats()
6702 struct btrfs_device *device) in update_dev_stat_item()
6771 struct btrfs_device *device; in btrfs_run_dev_stats()
6790 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
6796 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev) in btrfs_dev_stat_print_on_error()
6810 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
6833 struct btrfs_device *dev; in btrfs_get_dev_stats()
6902 struct btrfs_device *curr, *next; in btrfs_update_commit_device_size()
6924 struct btrfs_device *dev; in btrfs_update_commit_device_bytes_used()
6961 void btrfs_close_one_device(struct btrfs_device *device) in btrfs_close_one_device()
6964 struct btrfs_device *new_device; in btrfs_close_one_device()