Lines Matching refs:btrfs_device
57 struct btrfs_device { struct
158 btrfs_device_get_##name(const struct btrfs_device *dev) \ argument
171 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
182 btrfs_device_get_##name(const struct btrfs_device *dev) \
193 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
202 btrfs_device_get_##name(const struct btrfs_device *dev) \
208 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
272 struct btrfs_device *latest_dev;
334 struct btrfs_device *device;
360 struct btrfs_device *dev;
405 struct btrfs_device *dev;
513 struct btrfs_device *btrfs_scan_one_device(const char *path,
518 void btrfs_assign_next_active_device(struct btrfs_device *device,
519 struct btrfs_device *this_dev);
520 struct btrfs_device *btrfs_find_device_by_devspec(struct btrfs_fs_info *fs_info,
526 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info,
530 void btrfs_free_device(struct btrfs_device *device);
537 struct btrfs_device *device, u64 new_size);
538 struct btrfs_device *btrfs_find_device(const struct btrfs_fs_devices *fs_devices,
540 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size);
554 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes,
556 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index);
562 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev);
563 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev);
564 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
576 static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, in btrfs_dev_stat_inc()
590 static inline int btrfs_dev_stat_read(struct btrfs_device *dev, in btrfs_dev_stat_read()
596 static inline int btrfs_dev_stat_read_and_reset(struct btrfs_device *dev, in btrfs_dev_stat_read_and_reset()
613 static inline void btrfs_dev_stat_set(struct btrfs_device *dev, in btrfs_dev_stat_set()
631 struct btrfs_device *failing_dev);