aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-04-23 11:35:28 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-05-06 18:02:41 -0400
commit32d8d2e4300cabb0acbf4b60fa695924be27d0d1 (patch)
treebd8a6e060e5f96a6efa975b46b346ea80b3da47d /drivers/target
parented0b2144c50b03ed926aa1c582178abb661325e2 (diff)
target: remove the unused transport_limit_task_sectors helper
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 901fb2905aed..2b84521fa0b4 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -3694,21 +3694,6 @@ out:
3694 return -ENOMEM; 3694 return -ENOMEM;
3695} 3695}
3696 3696
3697/* Reduce sectors if they are too long for the device */
3698static inline sector_t transport_limit_task_sectors(
3699 struct se_device *dev,
3700 unsigned long long lba,
3701 sector_t sectors)
3702{
3703 sectors = min_t(sector_t, sectors, dev->se_sub_dev->se_dev_attrib.max_sectors);
3704
3705 if (dev->transport->get_device_type(dev) == TYPE_DISK)
3706 if ((lba + sectors) > transport_dev_end_lba(dev))
3707 sectors = ((transport_dev_end_lba(dev) - lba) + 1);
3708
3709 return sectors;
3710}
3711
3712/* 3697/*
3713 * Break up cmd into chunks transport can handle 3698 * Break up cmd into chunks transport can handle
3714 */ 3699 */