diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_file.c | 4 | ||||
-rw-r--r-- | drivers/target/target_core_iblock.c | 4 | ||||
-rw-r--r-- | drivers/target/target_core_rd.c | 4 | ||||
-rw-r--r-- | drivers/target/target_core_sbc.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index a89d80dacad2..571d3645f58a 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c | |||
@@ -528,14 +528,14 @@ static sector_t fd_get_blocks(struct se_device *dev) | |||
528 | return div_u64(dev_size, dev->dev_attrib.block_size); | 528 | return div_u64(dev_size, dev->dev_attrib.block_size); |
529 | } | 529 | } |
530 | 530 | ||
531 | static struct spc_ops fd_spc_ops = { | 531 | static struct sbc_ops fd_sbc_ops = { |
532 | .execute_rw = fd_execute_rw, | 532 | .execute_rw = fd_execute_rw, |
533 | .execute_sync_cache = fd_execute_sync_cache, | 533 | .execute_sync_cache = fd_execute_sync_cache, |
534 | }; | 534 | }; |
535 | 535 | ||
536 | static int fd_parse_cdb(struct se_cmd *cmd) | 536 | static int fd_parse_cdb(struct se_cmd *cmd) |
537 | { | 537 | { |
538 | return sbc_parse_cdb(cmd, &fd_spc_ops); | 538 | return sbc_parse_cdb(cmd, &fd_sbc_ops); |
539 | } | 539 | } |
540 | 540 | ||
541 | static struct se_subsystem_api fileio_template = { | 541 | static struct se_subsystem_api fileio_template = { |
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index dd6cd92cd9d8..969eed8bff52 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -709,7 +709,7 @@ static void iblock_bio_done(struct bio *bio, int err) | |||
709 | iblock_complete_cmd(cmd); | 709 | iblock_complete_cmd(cmd); |
710 | } | 710 | } |
711 | 711 | ||
712 | static struct spc_ops iblock_spc_ops = { | 712 | static struct sbc_ops iblock_sbc_ops = { |
713 | .execute_rw = iblock_execute_rw, | 713 | .execute_rw = iblock_execute_rw, |
714 | .execute_sync_cache = iblock_execute_sync_cache, | 714 | .execute_sync_cache = iblock_execute_sync_cache, |
715 | .execute_write_same = iblock_execute_write_same, | 715 | .execute_write_same = iblock_execute_write_same, |
@@ -718,7 +718,7 @@ static struct spc_ops iblock_spc_ops = { | |||
718 | 718 | ||
719 | static int iblock_parse_cdb(struct se_cmd *cmd) | 719 | static int iblock_parse_cdb(struct se_cmd *cmd) |
720 | { | 720 | { |
721 | return sbc_parse_cdb(cmd, &iblock_spc_ops); | 721 | return sbc_parse_cdb(cmd, &iblock_sbc_ops); |
722 | } | 722 | } |
723 | 723 | ||
724 | static struct se_subsystem_api iblock_template = { | 724 | static struct se_subsystem_api iblock_template = { |
diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c index d083f39c4b67..1b36e67b1153 100644 --- a/drivers/target/target_core_rd.c +++ b/drivers/target/target_core_rd.c | |||
@@ -437,13 +437,13 @@ static sector_t rd_get_blocks(struct se_device *dev) | |||
437 | return blocks_long; | 437 | return blocks_long; |
438 | } | 438 | } |
439 | 439 | ||
440 | static struct spc_ops rd_spc_ops = { | 440 | static struct sbc_ops rd_sbc_ops = { |
441 | .execute_rw = rd_execute_rw, | 441 | .execute_rw = rd_execute_rw, |
442 | }; | 442 | }; |
443 | 443 | ||
444 | static int rd_parse_cdb(struct se_cmd *cmd) | 444 | static int rd_parse_cdb(struct se_cmd *cmd) |
445 | { | 445 | { |
446 | return sbc_parse_cdb(cmd, &rd_spc_ops); | 446 | return sbc_parse_cdb(cmd, &rd_sbc_ops); |
447 | } | 447 | } |
448 | 448 | ||
449 | static struct se_subsystem_api rd_mcp_template = { | 449 | static struct se_subsystem_api rd_mcp_template = { |
diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 035193d04fa2..a77a19c8d923 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c | |||
@@ -313,7 +313,7 @@ out: | |||
313 | kfree(buf); | 313 | kfree(buf); |
314 | } | 314 | } |
315 | 315 | ||
316 | int sbc_parse_cdb(struct se_cmd *cmd, struct spc_ops *ops) | 316 | int sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) |
317 | { | 317 | { |
318 | struct se_device *dev = cmd->se_dev; | 318 | struct se_device *dev = cmd->se_dev; |
319 | unsigned char *cdb = cmd->t_task_cdb; | 319 | unsigned char *cdb = cmd->t_task_cdb; |