diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-04-23 11:35:28 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-05-06 15:02:41 -0700 |
commit | 32d8d2e4300cabb0acbf4b60fa695924be27d0d1 (patch) | |
tree | bd8a6e060e5f96a6efa975b46b346ea80b3da47d /drivers/target | |
parent | ed0b2144c50b03ed926aa1c582178abb661325e2 (diff) | |
download | op-kernel-dev-32d8d2e4300cabb0acbf4b60fa695924be27d0d1.zip op-kernel-dev-32d8d2e4300cabb0acbf4b60fa695924be27d0d1.tar.gz |
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.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 901fb29..2b84521 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -3694,21 +3694,6 @@ out: return -ENOMEM; } -/* Reduce sectors if they are too long for the device */ -static inline sector_t transport_limit_task_sectors( - struct se_device *dev, - unsigned long long lba, - sector_t sectors) -{ - sectors = min_t(sector_t, sectors, dev->se_sub_dev->se_dev_attrib.max_sectors); - - if (dev->transport->get_device_type(dev) == TYPE_DISK) - if ((lba + sectors) > transport_dev_end_lba(dev)) - sectors = ((transport_dev_end_lba(dev) - lba) + 1); - - return sectors; -} - /* * Break up cmd into chunks transport can handle */ |