Lines Matching refs:btrfs_device

60 struct btrfs_device {  struct
161 btrfs_device_get_##name(const struct btrfs_device *dev) \ argument
174 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
185 btrfs_device_get_##name(const struct btrfs_device *dev) \
196 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
205 btrfs_device_get_##name(const struct btrfs_device *dev) \
211 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
321 struct btrfs_device *dev;
351 struct btrfs_device *dev;
442 struct btrfs_device *btrfs_scan_one_device(const char *path,
447 void btrfs_assign_next_active_device(struct btrfs_device *device,
448 struct btrfs_device *this_dev);
449 struct btrfs_device *btrfs_find_device_by_devspec(struct btrfs_fs_info *fs_info,
452 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info,
455 void btrfs_free_device(struct btrfs_device *device);
461 struct btrfs_device *device, u64 new_size);
462 struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices,
464 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size);
477 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes,
479 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index);
485 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev);
486 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev);
487 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
499 static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, in btrfs_dev_stat_inc()
513 static inline int btrfs_dev_stat_read(struct btrfs_device *dev, in btrfs_dev_stat_read()
519 static inline int btrfs_dev_stat_read_and_reset(struct btrfs_device *dev, in btrfs_dev_stat_read_and_reset()
536 static inline void btrfs_dev_stat_set(struct btrfs_device *dev, in btrfs_dev_stat_set()
578 struct btrfs_device *failing_dev);