Lines Matching refs:btrfs_device

50 struct btrfs_device {  struct
162 btrfs_device_get_##name(const struct btrfs_device *dev) \ argument
175 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
186 btrfs_device_get_##name(const struct btrfs_device *dev) \
197 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
206 btrfs_device_get_##name(const struct btrfs_device *dev) \
212 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
293 struct btrfs_device *dev;
326 struct btrfs_device *dev;
420 int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start,
450 struct btrfs_device **device);
451 struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info,
458 struct btrfs_device *device, u64 new_size);
459 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid,
461 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size);
464 struct btrfs_device *srcdev,
465 struct btrfs_device **device_out);
476 struct btrfs_device *device, u64 num_bytes,
479 struct btrfs_device *device, u64 num_bytes,
481 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index);
489 struct btrfs_device *srcdev);
491 struct btrfs_device *srcdev);
493 struct btrfs_device *tgtdev);
495 struct btrfs_device *tgtdev);
508 static inline int btrfs_dev_stats_dirty(struct btrfs_device *dev) in btrfs_dev_stats_dirty()
513 static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, in btrfs_dev_stat_inc()
521 static inline int btrfs_dev_stat_read(struct btrfs_device *dev, in btrfs_dev_stat_read()
527 static inline int btrfs_dev_stat_read_and_reset(struct btrfs_device *dev, in btrfs_dev_stat_read_and_reset()
538 static inline void btrfs_dev_stat_set(struct btrfs_device *dev, in btrfs_dev_stat_set()
546 static inline void btrfs_dev_stat_reset(struct btrfs_device *dev, in btrfs_dev_stat_reset()
569 void btrfs_close_one_device(struct btrfs_device *device);