Lines Matching refs:btrfs_device

194 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
195 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
339 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device()
350 struct btrfs_device *device; in free_fs_devices()
354 struct btrfs_device, dev_list); in free_fs_devices()
378 static struct btrfs_device *__alloc_device(void) in __alloc_device()
380 struct btrfs_device *dev; in __alloc_device()
529 static noinline void run_scheduled_bios(struct btrfs_device *device) in run_scheduled_bios()
704 struct btrfs_device *device; in pending_bios_fn()
706 device = container_of(work, struct btrfs_device, work); in pending_bios_fn()
710 static bool device_path_matched(const char *path, struct btrfs_device *device) in device_path_matched()
733 struct btrfs_device *skip_device) in btrfs_free_stale_devices()
736 struct btrfs_device *device, *tmp_device; in btrfs_free_stale_devices()
782 struct btrfs_device *device, fmode_t flags, in btrfs_open_one_device()
906 static noinline struct btrfs_device *device_list_add(const char *path, in device_list_add()
910 struct btrfs_device *device; in device_list_add()
1116 struct btrfs_device *device; in clone_fs_devices()
1117 struct btrfs_device *orig_dev; in clone_fs_devices()
1170 struct btrfs_device *device, *next; in btrfs_free_extra_devids()
1171 struct btrfs_device *latest_dev = NULL; in btrfs_free_extra_devids()
1231 static void btrfs_close_bdev(struct btrfs_device *device) in btrfs_close_bdev()
1244 static void btrfs_close_one_device(struct btrfs_device *device) in btrfs_close_one_device()
1247 struct btrfs_device *new_device; in btrfs_close_one_device()
1284 struct btrfs_device *device, *tmp; in close_fs_devices()
1328 struct btrfs_device *device; in open_fs_devices()
1329 struct btrfs_device *latest_dev = NULL; in open_fs_devices()
1356 struct btrfs_device *dev1, *dev2; in devid_cmp()
1358 dev1 = list_entry(a, struct btrfs_device, dev_list); in devid_cmp()
1359 dev2 = list_entry(b, struct btrfs_device, dev_list); in devid_cmp()
1455 struct btrfs_device *btrfs_scan_one_device(const char *path, fmode_t flags, in btrfs_scan_one_device()
1460 struct btrfs_device *device = NULL; in btrfs_scan_one_device()
1503 static bool contains_pending_extent(struct btrfs_device *device, u64 *start, in contains_pending_extent()
1552 static int find_free_dev_extent_start(struct btrfs_device *device, in find_free_dev_extent_start()
1709 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent()
1717 struct btrfs_device *device, in btrfs_free_dev_extent()
1776 struct btrfs_device *device, in btrfs_alloc_dev_extent()
1884 struct btrfs_device *device) in btrfs_add_dev_item()
1952 static int btrfs_rm_dev_item(struct btrfs_device *device) in btrfs_rm_dev_item()
2030 static struct btrfs_device * btrfs_find_next_active_device( in btrfs_find_next_active_device()
2031 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device) in btrfs_find_next_active_device()
2033 struct btrfs_device *next_device; in btrfs_find_next_active_device()
2051 void btrfs_assign_next_active_device(struct btrfs_device *device, in btrfs_assign_next_active_device()
2052 struct btrfs_device *this_dev) in btrfs_assign_next_active_device()
2055 struct btrfs_device *next_device; in btrfs_assign_next_active_device()
2093 struct btrfs_device *device; in btrfs_rm_device()
2242 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev()
2269 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev()
2309 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev()
2343 static struct btrfs_device *btrfs_find_device_by_path( in btrfs_find_device_by_path()
2352 struct btrfs_device *device; in btrfs_find_device_by_path()
2378 struct btrfs_device *btrfs_find_device_by_devspec( in btrfs_find_device_by_devspec()
2382 struct btrfs_device *device; in btrfs_find_device_by_devspec()
2418 struct btrfs_device *device; in btrfs_prepare_sprout()
2482 struct btrfs_device *device; in btrfs_finish_sprout()
2552 struct btrfs_device *device; in btrfs_init_new_device()
2766 struct btrfs_device *device) in btrfs_update_device()
2812 struct btrfs_device *device, u64 new_size) in btrfs_grow_device()
2998 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
4666 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device()
4910 struct btrfs_device *device; in __btrfs_alloc_chunk()
5156 struct btrfs_device *dev = map->stripes[i].dev; in __btrfs_alloc_chunk()
5193 struct btrfs_device *device; in btrfs_finish_chunk_alloc()
5472 struct btrfs_device *srcdev; in find_live_mirror()
6370 struct btrfs_device *dev; in btrfs_end_bio()
6426 static noinline void btrfs_schedule_bio(struct btrfs_device *device, in btrfs_schedule_bio()
6466 struct btrfs_device *dev = bbio->stripes[dev_nr].dev; in submit_stripe_bio()
6508 struct btrfs_device *dev; in btrfs_map_bio()
6590 struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices, in btrfs_find_device()
6594 struct btrfs_device *device; in btrfs_find_device()
6615 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices, in add_missing_dev()
6618 struct btrfs_device *device; in add_missing_dev()
6647 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, in btrfs_alloc_device()
6651 struct btrfs_device *dev; in btrfs_alloc_device()
6831 struct btrfs_device *device) in fill_device_from_item()
6912 struct btrfs_device *device; in read_one_dev()
7134 struct btrfs_device *failing_dev) in btrfs_check_rw_degradable()
7160 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
7287 struct btrfs_device *device; in btrfs_init_devices_late()
7330 struct btrfs_device *device; in btrfs_init_dev_stats()
7380 struct btrfs_device *device) in update_dev_stat_item()
7451 struct btrfs_device *device; in btrfs_run_dev_stats()
7484 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) in btrfs_dev_stat_inc_and_print()
7490 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev) in btrfs_dev_stat_print_on_error()
7504 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev) in btrfs_dev_stat_print_on_load()
7527 struct btrfs_device *dev; in btrfs_get_dev_stats()
7599 struct btrfs_device *curr, *next; in btrfs_commit_device_sizes()
7658 struct btrfs_device *dev; in verify_one_dev_extent()