Lines Matching refs:btrfs_device
250 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
276 * btrfs_device::name - renames (write side), read is RCU
395 static void btrfs_free_device(struct btrfs_device *device)
406 struct btrfs_device *device;
411 struct btrfs_device, dev_list);
561 static int btrfs_free_stale_devices(dev_t devt, struct btrfs_device *skip_device)
564 struct btrfs_device *device, *tmp_device;
613 struct btrfs_device *device, blk_mode_t flags,
777 static noinline struct btrfs_device *device_list_add(const char *path,
781 struct btrfs_device *device;
974 * Unmount does not free the btrfs_device struct but would zero
994 struct btrfs_device *device;
995 struct btrfs_device *orig_dev;
1046 struct btrfs_device **latest_dev)
1048 struct btrfs_device *device, *next;
1094 struct btrfs_device *latest_dev = NULL;
1108 static void btrfs_close_bdev(struct btrfs_device *device)
1121 static void btrfs_close_one_device(struct btrfs_device *device)
1173 struct btrfs_device *device, *tmp;
1224 struct btrfs_device *device;
1225 struct btrfs_device *latest_dev = NULL;
1226 struct btrfs_device *tmp_device;
1257 const struct btrfs_device *dev1, *dev2;
1259 dev1 = list_entry(a, struct btrfs_device, dev_list);
1260 dev2 = list_entry(b, struct btrfs_device, dev_list);
1361 struct btrfs_device *btrfs_scan_one_device(const char *path, blk_mode_t flags)
1365 struct btrfs_device *device = NULL;
1422 static bool contains_pending_extent(struct btrfs_device *device, u64 *start,
1443 static u64 dev_extent_search_start(struct btrfs_device *device)
1460 static bool dev_extent_hole_check_zoned(struct btrfs_device *device,
1515 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start,
1586 static int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes,
1730 struct btrfs_device *device,
1847 * the btrfs_device struct should be fully filled in
1850 struct btrfs_device *device)
1925 struct btrfs_device *device)
1986 static struct btrfs_device * btrfs_find_next_active_device(
1987 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device)
1989 struct btrfs_device *next_device;
2007 void __cold btrfs_assign_next_active_device(struct btrfs_device *device,
2008 struct btrfs_device *next_device)
2093 struct btrfs_device *device;
2262 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)
2289 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev)
2316 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev)
2414 struct btrfs_device *btrfs_find_device_by_devspec(
2419 struct btrfs_device *device;
2490 struct btrfs_device *device;
2545 struct btrfs_device *device;
2616 struct btrfs_device *device;
2860 struct btrfs_device *device)
2906 struct btrfs_device *device, u64 new_size)
3122 struct btrfs_device *device = map->stripes[i].dev;
4822 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size)
5190 struct btrfs_device *device;
5438 struct btrfs_device *dev = map->stripes[i].dev;
5590 struct btrfs_device *device = map->stripes[i].dev;
5599 struct btrfs_device *device = map->stripes[i].dev;
5831 struct btrfs_device *srcdev;
6514 const struct btrfs_device *device)
6537 struct btrfs_device *btrfs_find_device(const struct btrfs_fs_devices *fs_devices,
6540 struct btrfs_device *device;
6562 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices,
6565 struct btrfs_device *device;
6602 * Return: a pointer to a new &struct btrfs_device on success; ERR_PTR()
6606 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info,
6610 struct btrfs_device *dev;
6719 static struct btrfs_device *handle_missing_device(struct btrfs_fs_info *fs_info,
6722 struct btrfs_device *dev;
6864 struct btrfs_device *device)
6945 struct btrfs_device *device;
7165 struct btrfs_device *failing_dev)
7191 struct btrfs_device *dev = map->stripes[i].dev;
7358 struct btrfs_device *device;
7405 static int btrfs_device_init_dev_stats(struct btrfs_device *device,
7452 struct btrfs_device *device;
7481 struct btrfs_device *device)
7552 struct btrfs_device *device;
7585 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index)
7601 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev)
7625 struct btrfs_device *dev;
7669 struct btrfs_device *curr, *next;
7711 struct btrfs_device *dev;