Lines Matching refs:btrfs_device

34 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
37 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache);
38 void btrfs_destroy_dev_zone_info(struct btrfs_device *device);
39 struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *orig_dev);
44 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw,
46 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror);
48 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start,
50 int btrfs_reset_device_zone(struct btrfs_device *device, u64 physical,
52 int btrfs_ensure_empty_zones(struct btrfs_device *device, u64 start, u64 size);
67 int btrfs_zoned_issue_zeroout(struct btrfs_device *device, u64 physical, u64 length);
68 int btrfs_sync_zone_write_pointer(struct btrfs_device *tgt_dev, u64 logical,
70 struct btrfs_device *btrfs_zoned_get_device(struct btrfs_fs_info *fs_info,
88 static inline int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zone()
99 static inline int btrfs_get_dev_zone_info(struct btrfs_device *device, in btrfs_get_dev_zone_info()
105 static inline void btrfs_destroy_dev_zone_info(struct btrfs_device *device) { } in btrfs_destroy_dev_zone_info()
112 struct btrfs_device *orig_dev) in btrfs_clone_dev_zone_info()
138 static inline int btrfs_sb_log_location(struct btrfs_device *device, int mirror, in btrfs_sb_log_location()
145 static inline int btrfs_advance_sb_log(struct btrfs_device *device, int mirror) in btrfs_advance_sb_log()
155 static inline u64 btrfs_find_allocatable_zones(struct btrfs_device *device, in btrfs_find_allocatable_zones()
162 static inline int btrfs_reset_device_zone(struct btrfs_device *device, in btrfs_reset_device_zone()
169 static inline int btrfs_ensure_empty_zones(struct btrfs_device *device, in btrfs_ensure_empty_zones()
213 static inline int btrfs_zoned_issue_zeroout(struct btrfs_device *device, in btrfs_zoned_issue_zeroout()
219 static inline int btrfs_sync_zone_write_pointer(struct btrfs_device *tgt_dev, in btrfs_sync_zone_write_pointer()
226 static inline struct btrfs_device *btrfs_zoned_get_device( in btrfs_zoned_get_device()
282 static inline bool btrfs_dev_is_sequential(struct btrfs_device *device, u64 pos) in btrfs_dev_is_sequential()
292 static inline bool btrfs_dev_is_empty_zone(struct btrfs_device *device, u64 pos) in btrfs_dev_is_empty_zone()
302 static inline void btrfs_dev_set_empty_zone_bit(struct btrfs_device *device, in btrfs_dev_set_empty_zone_bit()
318 static inline void btrfs_dev_set_zone_empty(struct btrfs_device *device, u64 pos) in btrfs_dev_set_zone_empty()
323 static inline void btrfs_dev_clear_zone_empty(struct btrfs_device *device, u64 pos) in btrfs_dev_clear_zone_empty()
347 static inline bool btrfs_check_super_location(struct btrfs_device *device, u64 pos) in btrfs_check_super_location()
356 static inline bool btrfs_can_zone_reset(struct btrfs_device *device, in btrfs_can_zone_reset()