Lines Matching refs:btrfs_device
222 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
223 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
254 * btrfs_device::name - renames (write side), read is RCU
372 void btrfs_free_device(struct btrfs_device *device)
383 struct btrfs_device *device;
388 struct btrfs_device, dev_list);
408 * Returns a pointer to a new btrfs_device on success; ERR_PTR() on error.
412 static struct btrfs_device *__alloc_device(struct btrfs_fs_info *fs_info)
414 struct btrfs_device *dev;
551 static bool device_matched(const struct btrfs_device *device, const char *path)
599 struct btrfs_device *skip_device)
602 struct btrfs_device *device, *tmp_device;
651 struct btrfs_device *device, fmode_t flags,
820 static noinline struct btrfs_device *device_list_add(const char *path,
824 struct btrfs_device *device;
1020 * Unmount does not free the btrfs_device struct but would zero
1040 struct btrfs_device *device;
1041 struct btrfs_device *orig_dev;
1088 int step, struct btrfs_device **latest_dev)
1090 struct btrfs_device *device, *next;
1136 struct btrfs_device *latest_dev = NULL;
1150 static void btrfs_close_bdev(struct btrfs_device *device)
1163 static void btrfs_close_one_device(struct btrfs_device *device)
1215 struct btrfs_device *device, *tmp;
1266 struct btrfs_device *device;
1267 struct btrfs_device *latest_dev = NULL;
1268 struct btrfs_device *tmp_device;
1300 struct btrfs_device *dev1, *dev2;
1302 dev1 = list_entry(a, struct btrfs_device, dev_list);
1303 dev2 = list_entry(b, struct btrfs_device, dev_list);
1404 struct btrfs_device *btrfs_scan_one_device(const char *path, fmode_t flags,
1409 struct btrfs_device *device = NULL;
1461 static bool contains_pending_extent(struct btrfs_device *device, u64 *start,
1482 static u64 dev_extent_search_start(struct btrfs_device *device, u64 start)
1507 static bool dev_extent_hole_check(struct btrfs_device *device, u64 *hole_start,
1563 static int find_free_dev_extent_start(struct btrfs_device *device,
1709 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes,
1717 struct btrfs_device *device,
1776 struct btrfs_device *device,
1881 * the btrfs_device struct should be fully filled in
1884 struct btrfs_device *device)
1958 static int btrfs_rm_dev_item(struct btrfs_device *device)
2036 static struct btrfs_device * btrfs_find_next_active_device(
2037 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device)
2039 struct btrfs_device *next_device;
2057 void __cold btrfs_assign_next_active_device(struct btrfs_device *device,
2058 struct btrfs_device *next_device)
2136 struct btrfs_device *device;
2282 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)
2309 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev)
2336 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev)
2370 static struct btrfs_device *btrfs_find_device_by_path(
2378 struct btrfs_device *device;
2404 struct btrfs_device *btrfs_find_device_by_devspec(
2408 struct btrfs_device *device;
2444 struct btrfs_device *device;
2514 struct btrfs_device *device;
2584 struct btrfs_device *device;
2812 struct btrfs_device *device)
2858 struct btrfs_device *device, u64 new_size)
3045 struct btrfs_device *device = map->stripes[i].dev;
4660 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size)
5003 struct btrfs_device *device;
5214 struct btrfs_device *dev = map->stripes[i].dev;
5310 struct btrfs_device *device;
5569 struct btrfs_device *srcdev;
6378 struct btrfs_device *dev = btrfs_io_bio(bio)->device;
6425 u64 physical, struct btrfs_device *dev)
6465 struct btrfs_device *dev;
6546 struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices,
6550 struct btrfs_device *device;
6578 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices,
6581 struct btrfs_device *device;
6607 * btrfs_alloc_device - allocate struct btrfs_device
6615 * Return: a pointer to a new &struct btrfs_device on success; ERR_PTR()
6619 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info,
6623 struct btrfs_device *dev;
6795 struct btrfs_device *device)
6875 struct btrfs_device *device;
7098 struct btrfs_device *failing_dev)
7124 struct btrfs_device *dev = map->stripes[i].dev;
7286 struct btrfs_device *device;
7326 static int btrfs_device_init_dev_stats(struct btrfs_device *device,
7370 struct btrfs_device *device;
7399 struct btrfs_device *device)
7470 struct btrfs_device *device;
7503 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index)
7509 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev)
7523 static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev)
7546 struct btrfs_device *dev;
7590 struct btrfs_device *curr, *next;
7631 struct btrfs_device *dev;