
Move helper functions that are used in only one source file to that file. Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
44 lines
716 B
C
44 lines
716 B
C
/*
|
|
* Copyright(c) 2012-2022 Intel Corporation
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef __CASDISK_EXP_OBJ_H__
|
|
#define __CASDISK_EXP_OBJ_H__
|
|
|
|
#include <linux/kobject.h>
|
|
#include <linux/fs.h>
|
|
|
|
struct casdsk_disk;
|
|
|
|
struct casdsk_exp_obj_pt_io_ctx {
|
|
struct casdsk_disk *dsk;
|
|
struct bio *bio;
|
|
};
|
|
|
|
struct casdsk_exp_obj {
|
|
|
|
struct gendisk *gd;
|
|
struct request_queue *queue;
|
|
|
|
struct block_device *locked_bd;
|
|
|
|
struct module *owner;
|
|
|
|
bool activated;
|
|
|
|
struct casdsk_exp_obj_ops *ops;
|
|
|
|
const char *dev_name;
|
|
struct kobject kobj;
|
|
|
|
atomic_t pt_ios;
|
|
atomic_t *pending_rqs;
|
|
};
|
|
|
|
int __init casdsk_init_exp_objs(void);
|
|
void casdsk_deinit_exp_objs(void);
|
|
|
|
void casdsk_exp_obj_free(struct casdsk_disk *dsk);
|
|
|
|
#endif
|