target: move write_same to struct spc_ops
authorChristoph Hellwig <hch@infradead.org>
Sun, 17 Jun 2012 22:40:54 +0000 (18:40 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:34:41 +0000 (17:34 -0700)
commit6f974e8ce7b3f661910a49c7c2ba095631f341e9
tree5698f1ed849b92eec547571594a68183c592b590
parentad67f0d9e63ca94661e06a145f05a9302368a826
target: move write_same to struct spc_ops

Add spc_ops->execute_write_same() caller for ->execute_cmd() setup,
and update IBLOCK backends to use it.

(nab: add export of spc_get_write_same_sectors symbol)
(roland: Carry forward: Fix range calculation in WRITE SAME emulation
         when num blocks == 0)

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