Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344720
b: refs/heads/master
c: 9e999a6
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Nicholas Bellinger committed Nov 7, 2012
1 parent 2b608d9 commit 4106257
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fd97ccf45be26fb01b3a412f1f6c6b5044b2f16
refs/heads/master: 9e999a6c51fe74a41a76038c64ce038ff9243bfb
4 changes: 2 additions & 2 deletions trunk/drivers/target/target_core_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/target/target_core_iblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/target/target_core_rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/target/target_core_sbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void xdreadwrite_callback(struct se_cmd *cmd)
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;
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/target/target_core_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit 4106257

Please sign in to comment.