target/file: Add fd_do_unmap() helper
authorAsias He <asias@redhat.com>
Mon, 25 Feb 2013 06:03:44 +0000 (14:03 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:24 +0000 (01:05 -0700)
commit43f55bbb144acca55cea50326388d1b648b6fd0f
treed38bf42231db5c1b946ba89c405c039ad7c51c25
parent506427628afeb5d70eefdac1fe4c2a1ffb27df5f
target/file: Add fd_do_unmap() helper

Add helper fd_do_unmap() to remove duplicated code in
fd_execute_write_same_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