diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-11-24 10:54:10 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:13 -0500 |
commit | dbf5dfe9dbcecf159139eec25ad256738cbc3715 (patch) | |
tree | 1f1703cf4a270beb3e7046244123e62188de53f4 /drivers/s390/scsi/zfcp_aux.c | |
parent | 9d05ce2c0a6704ff84df02cbb3baef94fcac4f5d (diff) |
[SCSI] zfcp: Use common code definitions for FC CT structs
Use common code definitions for FC GPN_FT and GID_PN
instead of inventing private ones. Move the private structs still
required inside zfcp to zfcp_fc header file.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_aux.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index 107d3f2b6e94..58bb17732f56 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/miscdevice.h> | 31 | #include <linux/miscdevice.h> |
32 | #include <linux/seq_file.h> | 32 | #include <linux/seq_file.h> |
33 | #include "zfcp_ext.h" | 33 | #include "zfcp_ext.h" |
34 | #include "zfcp_fc.h" | ||
34 | 35 | ||
35 | #define ZFCP_BUS_ID_SIZE 20 | 36 | #define ZFCP_BUS_ID_SIZE 20 |
36 | 37 | ||
@@ -159,7 +160,7 @@ static int __init zfcp_module_init(void) | |||
159 | int retval = -ENOMEM; | 160 | int retval = -ENOMEM; |
160 | 161 | ||
161 | zfcp_data.gpn_ft_cache = zfcp_cache_hw_align("zfcp_gpn", | 162 | zfcp_data.gpn_ft_cache = zfcp_cache_hw_align("zfcp_gpn", |
162 | sizeof(struct ct_iu_gpn_ft_req)); | 163 | sizeof(struct zfcp_fc_gpn_ft_req)); |
163 | if (!zfcp_data.gpn_ft_cache) | 164 | if (!zfcp_data.gpn_ft_cache) |
164 | goto out; | 165 | goto out; |
165 | 166 | ||
@@ -174,7 +175,7 @@ static int __init zfcp_module_init(void) | |||
174 | goto out_sr_cache; | 175 | goto out_sr_cache; |
175 | 176 | ||
176 | zfcp_data.gid_pn_cache = zfcp_cache_hw_align("zfcp_gid", | 177 | zfcp_data.gid_pn_cache = zfcp_cache_hw_align("zfcp_gid", |
177 | sizeof(struct zfcp_gid_pn_data)); | 178 | sizeof(struct zfcp_fc_gid_pn)); |
178 | if (!zfcp_data.gid_pn_cache) | 179 | if (!zfcp_data.gid_pn_cache) |
179 | goto out_gid_cache; | 180 | goto out_gid_cache; |
180 | 181 | ||
@@ -407,9 +408,9 @@ static int zfcp_allocate_low_mem_buffers(struct zfcp_adapter *adapter) | |||
407 | if (!adapter->pool.status_read_data) | 408 | if (!adapter->pool.status_read_data) |
408 | return -ENOMEM; | 409 | return -ENOMEM; |
409 | 410 | ||
410 | adapter->pool.gid_pn_data = | 411 | adapter->pool.gid_pn = |
411 | mempool_create_slab_pool(1, zfcp_data.gid_pn_cache); | 412 | mempool_create_slab_pool(1, zfcp_data.gid_pn_cache); |
412 | if (!adapter->pool.gid_pn_data) | 413 | if (!adapter->pool.gid_pn) |
413 | return -ENOMEM; | 414 | return -ENOMEM; |
414 | 415 | ||
415 | return 0; | 416 | return 0; |
@@ -429,8 +430,8 @@ static void zfcp_free_low_mem_buffers(struct zfcp_adapter *adapter) | |||
429 | mempool_destroy(adapter->pool.status_read_req); | 430 | mempool_destroy(adapter->pool.status_read_req); |
430 | if (adapter->pool.status_read_data) | 431 | if (adapter->pool.status_read_data) |
431 | mempool_destroy(adapter->pool.status_read_data); | 432 | mempool_destroy(adapter->pool.status_read_data); |
432 | if (adapter->pool.gid_pn_data) | 433 | if (adapter->pool.gid_pn) |
433 | mempool_destroy(adapter->pool.gid_pn_data); | 434 | mempool_destroy(adapter->pool.gid_pn); |
434 | } | 435 | } |
435 | 436 | ||
436 | /** | 437 | /** |