Commit 542e30ce authored by Stefan Haberland's avatar Stefan Haberland Committed by Jens Axboe

s390/dasd: summarize dasd configuration data in a separate structure

Summarize the dasd configuration data in a separate structure so that
functions that need temporary config data do not need to allocate the
whole eckd_private structure.
Signed-off-by: default avatarStefan Haberland <sth@linux.ibm.com>
Reviewed-by: default avatarJan Hoeppner <hoeppner@linux.ibm.com>
Link: https://lore.kernel.org/r/20211020115124.1735254-6-sth@linux.ibm.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 74e2f211
This diff is collapsed.
...@@ -658,16 +658,19 @@ struct dasd_conf_data { ...@@ -658,16 +658,19 @@ struct dasd_conf_data {
struct dasd_gneq gneq; struct dasd_gneq gneq;
} __packed; } __packed;
struct dasd_eckd_private { struct dasd_conf {
struct dasd_eckd_characteristics rdc_data; u8 *data;
u8 *conf_data; int len;
int conf_len;
/* pointers to specific parts in the conf_data */ /* pointers to specific parts in the conf_data */
struct dasd_ned *ned; struct dasd_ned *ned;
struct dasd_sneq *sneq; struct dasd_sneq *sneq;
struct vd_sneq *vdsneq; struct vd_sneq *vdsneq;
struct dasd_gneq *gneq; struct dasd_gneq *gneq;
};
struct dasd_eckd_private {
struct dasd_eckd_characteristics rdc_data;
struct dasd_conf conf;
struct eckd_count count_area[5]; struct eckd_count count_area[5];
int init_cqr_status; int init_cqr_status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment