Move ocf_io_get_internal() to private header

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2021-09-02 22:01:06 +02:00
parent e31e7283d9
commit fa8e7564f0
2 changed files with 5 additions and 5 deletions

View File

@ -78,11 +78,6 @@ ocf_io_allocator_type_t ocf_io_allocator_get_type_default(void)
* IO internal API * 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, struct ocf_io *ocf_io_new(ocf_volume_t volume, ocf_queue_t queue,
uint64_t addr, uint32_t bytes, uint32_t dir, uint64_t addr, uint32_t bytes, uint32_t dir,
uint32_t io_class, uint64_t flags) uint32_t io_class, uint64_t flags)

View File

@ -22,6 +22,11 @@ struct ocf_io_internal {
struct ocf_io io; 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, int ocf_io_allocator_init(ocf_io_allocator_t allocator, ocf_io_allocator_type_t type,
uint32_t priv_size, const char *name); uint32_t priv_size, const char *name);