target: Add sbc_execute_unmap() helper
authorAsias He <asias@redhat.com>
Mon, 25 Feb 2013 06:03:46 +0000 (14:03 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:24 +0000 (01:05 -0700)
commit86d7182985d25900929adce14fffd729cc8c6fb8
tree8e5e755c5badf3a09b5b0c4e6c2f76c72c080dcf
parentdbc21c5abbeb4419da5a54157c4b7a0ec0dee185
target: Add sbc_execute_unmap() helper

iblock_execute_unmap() and fd_execute_unmap share a lot of code.
Add sbc_execute_unmap() helper to remove duplicated code for
iblock_execute_unmap() and fd_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_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_sbc.c
include/target/target_core_backend.h