target/iblock: Add iblock_do_unmap() helper
authorAsias He <asias@redhat.com>
Mon, 25 Feb 2013 06:03:45 +0000 (14:03 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:24 +0000 (01:05 -0700)
commitdbc21c5abbeb4419da5a54157c4b7a0ec0dee185
tree916011a08bf1d2ac9b09fcecdf8aee1b5c69d984
parent43f55bbb144acca55cea50326388d1b648b6fd0f
target/iblock: Add iblock_do_unmap() helper

Add helper iblock_do_unmap() to remove duplicated code in
iblock_execute_write_same_unmap() and iblock_execute_unmap().

Cc: Christoph Hellwig <hch@lst.de>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c