summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_file.c
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2013-02-22 09:52:57 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2013-02-23 12:46:14 -0800
commit972b29c8f86093f44e1d781588bd5c5faae3d8e3 (patch)
treeb5da94cd21ebd5486cefbde45cfadb9cfc475442 /drivers/target/target_core_file.c
parent7b745c84a9f4ad62db4b67053fbceb5d706451af (diff)
target: Rename spc_get_write_same_sectors -> sbc_get_write_same_sectors
Trivial, but WRITE SAME is an SBC command so it seems strange for a related function (defined in target_core_sbc.c) to be in the spc_ namespace. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_file.c')
-rw-r--r--drivers/target/target_core_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c
index 94383a56bd74..ca36a38eb274 100644
--- a/drivers/target/target_core_file.c
+++ b/drivers/target/target_core_file.c
@@ -381,7 +381,7 @@ fd_execute_write_same(struct se_cmd *cmd)
struct scatterlist *sg;
struct iovec *iov;
mm_segment_t old_fs;
- sector_t nolb = spc_get_write_same_sectors(cmd);
+ sector_t nolb = sbc_get_write_same_sectors(cmd);
loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size;
unsigned int len, len_tmp, iov_num;
int i, rc;