]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
target: rename spc_ops
authorChristoph Hellwig <hch@infradead.org>
Sun, 7 Oct 2012 14:55:50 +0000 (10:55 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 7 Nov 2012 04:55:44 +0000 (20:55 -0800)
These really are sbc_ops, so name them correctly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_rd.c
drivers/target/target_core_sbc.c
include/target/target_core_backend.h

index a89d80dacad2f0d12de945d8ea451b6e7f8ddc0a..571d3645f58aad3cc33013c9cee92aa8f5bd6c3a 100644 (file)
@@ -528,14 +528,14 @@ static sector_t fd_get_blocks(struct se_device *dev)
        return div_u64(dev_size, dev->dev_attrib.block_size);
 }
 
-static struct spc_ops fd_spc_ops = {
+static struct sbc_ops fd_sbc_ops = {
        .execute_rw             = fd_execute_rw,
        .execute_sync_cache     = fd_execute_sync_cache,
 };
 
 static int fd_parse_cdb(struct se_cmd *cmd)
 {
-       return sbc_parse_cdb(cmd, &fd_spc_ops);
+       return sbc_parse_cdb(cmd, &fd_sbc_ops);
 }
 
 static struct se_subsystem_api fileio_template = {
index dd6cd92cd9d80fa3a5b165cea229f7a3730da74a..969eed8bff529e4e865de20e54200eb886a5606a 100644 (file)
@@ -709,7 +709,7 @@ static void iblock_bio_done(struct bio *bio, int err)
        iblock_complete_cmd(cmd);
 }
 
-static struct spc_ops iblock_spc_ops = {
+static struct sbc_ops iblock_sbc_ops = {
        .execute_rw             = iblock_execute_rw,
        .execute_sync_cache     = iblock_execute_sync_cache,
        .execute_write_same     = iblock_execute_write_same,
@@ -718,7 +718,7 @@ static struct spc_ops iblock_spc_ops = {
 
 static int iblock_parse_cdb(struct se_cmd *cmd)
 {
-       return sbc_parse_cdb(cmd, &iblock_spc_ops);
+       return sbc_parse_cdb(cmd, &iblock_sbc_ops);
 }
 
 static struct se_subsystem_api iblock_template = {
index d083f39c4b674fd4c9a1647185704c03d598b309..1b36e67b1153690415114b8ef8c1b71b9bd9649d 100644 (file)
@@ -437,13 +437,13 @@ static sector_t rd_get_blocks(struct se_device *dev)
        return blocks_long;
 }
 
-static struct spc_ops rd_spc_ops = {
+static struct sbc_ops rd_sbc_ops = {
        .execute_rw             = rd_execute_rw,
 };
 
 static int rd_parse_cdb(struct se_cmd *cmd)
 {
-       return sbc_parse_cdb(cmd, &rd_spc_ops);
+       return sbc_parse_cdb(cmd, &rd_sbc_ops);
 }
 
 static struct se_subsystem_api rd_mcp_template = {
index 035193d04fa26ee1de3a954b0fb41cecf829a2a8..a77a19c8d923bd7316dfefc4f6d66ebb28632290 100644 (file)
@@ -313,7 +313,7 @@ out:
        kfree(buf);
 }
 
-int sbc_parse_cdb(struct se_cmd *cmd, struct spc_ops *ops)
+int sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops)
 {
        struct se_device *dev = cmd->se_dev;
        unsigned char *cdb = cmd->t_task_cdb;
index 6c5bfb5ac17fb65b59b3c5e9e5e10660d898c621..1c43955f4cb57aa72e235773d3b06199dc1a4160 100644 (file)
@@ -38,7 +38,7 @@ struct se_subsystem_api {
        unsigned char *(*get_sense_buffer)(struct se_cmd *);
 };
 
-struct spc_ops {
+struct sbc_ops {
        int (*execute_rw)(struct se_cmd *cmd);
        int (*execute_sync_cache)(struct se_cmd *cmd);
        int (*execute_write_same)(struct se_cmd *cmd);
@@ -50,7 +50,7 @@ void  transport_subsystem_release(struct se_subsystem_api *);
 
 void   target_complete_cmd(struct se_cmd *, u8);
 
-int    sbc_parse_cdb(struct se_cmd *cmd, struct spc_ops *ops);
+int    sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops);
 int    spc_parse_cdb(struct se_cmd *cmd, unsigned int *size);
 int    spc_get_write_same_sectors(struct se_cmd *cmd);