Move ocf_io_get_internal() to private header
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
e31e7283d9
commit
fa8e7564f0
@ -78,11 +78,6 @@ ocf_io_allocator_type_t ocf_io_allocator_get_type_default(void)
|
||||
* IO internal API
|
||||
*/
|
||||
|
||||
static struct ocf_io_internal *ocf_io_get_internal(struct ocf_io* io)
|
||||
{
|
||||
return container_of(io, struct ocf_io_internal, io);
|
||||
}
|
||||
|
||||
struct ocf_io *ocf_io_new(ocf_volume_t volume, ocf_queue_t queue,
|
||||
uint64_t addr, uint32_t bytes, uint32_t dir,
|
||||
uint32_t io_class, uint64_t flags)
|
||||
|
@ -22,6 +22,11 @@ struct ocf_io_internal {
|
||||
struct ocf_io io;
|
||||
};
|
||||
|
||||
static inline struct ocf_io_internal *ocf_io_get_internal(struct ocf_io* io)
|
||||
{
|
||||
return container_of(io, struct ocf_io_internal, io);
|
||||
}
|
||||
|
||||
int ocf_io_allocator_init(ocf_io_allocator_t allocator, ocf_io_allocator_type_t type,
|
||||
uint32_t priv_size, const char *name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user