Lines Matching refs:btrfs_device
47 struct btrfs_device *device);
49 static void __btrfs_reset_dev_stats(struct btrfs_device *dev);
50 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
51 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
101 struct btrfs_device *device; in free_fs_devices()
105 struct btrfs_device, dev_list); in free_fs_devices()
138 static struct btrfs_device *__alloc_device(void) in __alloc_device()
140 struct btrfs_device *dev; in __alloc_device()
162 static noinline struct btrfs_device *__find_device(struct list_head *head, in __find_device()
165 struct btrfs_device *dev; in __find_device()
250 static noinline void run_scheduled_bios(struct btrfs_device *device) in run_scheduled_bios()
439 struct btrfs_device *device; in pending_bios_fn()
441 device = container_of(work, struct btrfs_device, work); in pending_bios_fn()
457 struct btrfs_device *device; in device_list_add()
568 struct btrfs_device *device; in clone_fs_devices()
569 struct btrfs_device *orig_dev; in clone_fs_devices()
614 struct btrfs_device *device, *next; in btrfs_close_extra_devices()
615 struct btrfs_device *latest_dev = NULL; in btrfs_close_extra_devices()
674 struct btrfs_device *device; in __free_device()
676 device = container_of(work, struct btrfs_device, rcu_work); in __free_device()
687 struct btrfs_device *device; in free_device()
689 device = container_of(head, struct btrfs_device, rcu); in free_device()
697 struct btrfs_device *device; in __btrfs_close_devices()
704 struct btrfs_device *new_device; in __btrfs_close_devices()
779 struct btrfs_device *device; in __btrfs_open_devices()
780 struct btrfs_device *latest_dev = NULL; in __btrfs_open_devices()
972 int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start, in btrfs_account_dev_extents_size()
1056 struct btrfs_device *device, in contains_pending_extent()
1112 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1272 struct btrfs_device *device, in btrfs_free_dev_extent()
1330 struct btrfs_device *device, in btrfs_alloc_dev_extent()
1435 struct btrfs_device *device) in btrfs_add_device()
1506 struct btrfs_device *device) in btrfs_rm_dev_item()
1548 struct btrfs_device *device; in btrfs_rm_device()
1549 struct btrfs_device *next_device; in btrfs_rm_device()
1603 struct btrfs_device *tmp; in btrfs_rm_device()
1701 struct btrfs_device, dev_list); in btrfs_rm_device()
1810 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
1841 struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
1872 struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
1874 struct btrfs_device *next_device; in btrfs_destroy_dev_replace_tgtdev()
1886 struct btrfs_device, dev_list); in btrfs_destroy_dev_replace_tgtdev()
1900 struct btrfs_device **device) in btrfs_find_device_by_path()
1928 struct btrfs_device **device) in btrfs_find_device_missing_or_by_path()
1933 struct btrfs_device *tmp; in btrfs_find_device_missing_or_by_path()
1967 struct btrfs_device *device; in btrfs_prepare_sprout()
2030 struct btrfs_device *device; in btrfs_finish_sprout()
2100 struct btrfs_device *device; in btrfs_init_new_device()
2305 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev()
2306 struct btrfs_device **device_out) in btrfs_init_dev_replace_tgtdev()
2309 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev()
2401 struct btrfs_device *tgtdev) in btrfs_init_dev_replace_tgtdev_for_resume()
2412 struct btrfs_device *device) in btrfs_update_device()
2460 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
2615 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
3144 struct btrfs_device *device; in __btrfs_balance()
3956 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
4305 struct btrfs_device *device; in __btrfs_alloc_chunk()
4309 device = list_entry(cur, struct btrfs_device, dev_alloc_list); in __btrfs_alloc_chunk()
4519 struct btrfs_device *device; in btrfs_finish_chunk_alloc()
4636 struct btrfs_device *device) in init_first_rw_device()
4842 struct btrfs_device *srcdev; in find_live_mirror()
5600 struct btrfs_device *dev = bbio->stripes[0].dev; in btrfs_end_bio()
5668 struct btrfs_device *device, in btrfs_schedule_bio()
5752 struct btrfs_device *dev = bbio->stripes[dev_nr].dev; in submit_stripe_bio()
5782 struct bio *first_bio, struct btrfs_device *dev, in breakup_stripe_bio()
5832 struct btrfs_device *dev; in btrfs_map_bio()
5915 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, in btrfs_find_device()
5918 struct btrfs_device *device; in btrfs_find_device()
5935 static struct btrfs_device *add_missing_dev(struct btrfs_root *root, in add_missing_dev()
5939 struct btrfs_device *device; in add_missing_dev()
5968 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
5972 struct btrfs_device *dev; in btrfs_alloc_device()
6097 struct btrfs_device *device) in fill_device_from_item()
6178 struct btrfs_device *device; in read_one_dev()
6429 struct btrfs_device *device; in btrfs_init_devices_late()
6441 static void __btrfs_reset_dev_stats(struct btrfs_device *dev) in __btrfs_reset_dev_stats()
6458 struct btrfs_device *device; in btrfs_init_dev_stats()
6512 struct btrfs_device *device) in update_dev_stat_item()
6581 struct btrfs_device *device; in btrfs_run_dev_stats()
6600 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
6606 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev) in btrfs_dev_stat_print_on_error()
6620 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
6643 struct btrfs_device *dev; in btrfs_get_dev_stats()
6675 int btrfs_scratch_superblock(struct btrfs_device *device) in btrfs_scratch_superblock()
6700 struct btrfs_device *curr, *next; in btrfs_update_commit_device_size()
6722 struct btrfs_device *dev; in btrfs_update_commit_device_bytes_used()