target: Change core_dev_del_lun to take a se_lun instead of unpacked_lun
authorAndy Grover <agrover@redhat.com>
Mon, 30 Jun 2014 23:39:44 +0000 (16:39 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 1 Oct 2014 21:38:48 +0000 (14:38 -0700)
commitcd9d7cbaec8b622eee4edcd8bf481c4047f74915
treeaa6bbdb44254f41e10cc1c817e82cbc0201add0d
parentcc83881f2c57caaf4b14adaffa65595640a59661
target: Change core_dev_del_lun to take a se_lun instead of unpacked_lun

Remove core_tpg_pre_dellun entirely, since we don't need to get/check
a pointer we already have.

Nothing else can return an error, so core_dev_del_lun can return void.

Rename core_tpg_post_dellun to remove_lun - a clearer name, now that
pre_dellun is gone.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_internal.h
drivers/target/target_core_tpg.c