target: rewrite fd_execute_write_same
authorChristoph Hellwig <hch@lst.de>
Sun, 22 Feb 2015 16:48:42 +0000 (08:48 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 Feb 2015 19:20:47 +0000 (11:20 -0800)
commitd4c5dcacfaffb7493d161d5cd0fbb7b1190b7bd5
tree096085d3b2a65238695479053ecc396e02315afa
parent6b9a44d0939ca6235c72b811bd55b462d6a0a553
target: rewrite fd_execute_write_same

With the new bio_vec backed iov_iter helpers we can simply set up
on bio_vec per LBA, all pointing to the same initiator-supplied
buffer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c