module/raid: move struct defn from C to H file
In prep for using it as part of a func pointer delcaration in an upcoming patch. Change-Id: I3272c4e0f16a894b52a0601323c7d9148592ca3f Signed-off-by: paul luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467698 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
84bd67048f
commit
42c79b072f
@ -599,18 +599,6 @@ _raid_bdev_submit_reset_request(struct spdk_io_channel *ch, struct spdk_bdev_io
|
||||
_raid_bdev_submit_reset_request_next(bdev_io);
|
||||
}
|
||||
|
||||
/* raid0 IO range */
|
||||
struct raid_bdev_io_range {
|
||||
uint64_t strip_size;
|
||||
uint64_t start_strip_in_disk;
|
||||
uint64_t end_strip_in_disk;
|
||||
uint64_t start_offset_in_strip;
|
||||
uint64_t end_offset_in_strip;
|
||||
uint8_t start_disk;
|
||||
uint8_t end_disk;
|
||||
uint8_t n_disks_involved;
|
||||
};
|
||||
|
||||
static inline void
|
||||
_raid_bdev_get_io_range(struct raid_bdev_io_range *io_range,
|
||||
uint8_t num_base_bdevs, uint64_t strip_size, uint64_t strip_size_shift,
|
||||
|
@ -98,6 +98,18 @@ struct raid_bdev_io {
|
||||
uint8_t base_bdev_io_status;
|
||||
};
|
||||
|
||||
/* raid0 IO range */
|
||||
struct raid_bdev_io_range {
|
||||
uint64_t strip_size;
|
||||
uint64_t start_strip_in_disk;
|
||||
uint64_t end_strip_in_disk;
|
||||
uint64_t start_offset_in_strip;
|
||||
uint64_t end_offset_in_strip;
|
||||
uint8_t start_disk;
|
||||
uint8_t end_disk;
|
||||
uint8_t n_disks_involved;
|
||||
};
|
||||
|
||||
/*
|
||||
* raid_bdev is the single entity structure which contains SPDK block device
|
||||
* and the information related to any raid bdev either configured or
|
||||
|
Loading…
x
Reference in New Issue
Block a user